项目上面又要使用STM32F407,有的时候真不想再学习了。
STM32F407共支持4种GPIO速度,在HAL库的定义如下:
view plaincopy to clipboardprint?
#define GPIO_SPEED_FREQ_LOW 0x00000000U
#define GPIO_SPEED_FREQ_MEDIUM 0x00000001U
#define GPIO_SPEED_FREQ_HIGH 0x00000002U
#define GPIO_SPEED_FREQ_VERY_HIGH 0x00000003U
得出结论如下:
GPIO_SPEED_FREQ_LOW:8MHz
GPIO_SPEED_FREQ_MEDIUM:50MHz
GPIO_SPEED_FREQ_HIGH:100MHz
GPIO_SPEED_FREQ_VERY_HIGH:180MHz