
Features
Arduino-compatible Headers ![]() Morpho Headers - Giving access to all STM32 pins ![]() Nucleo-F072RB开发板,把STM32F072RBT6所有IO的资源的引出来,注意观看上面两种图,描述了整个板子的开发资源, 其分为两种接口,Arduino Headers 与 Morpho Headers 。 红色 如
![]() 蓝色 如
![]() 深绿色 如
![]() 米色 如
![]() 橙色 如
![]() 黄色 如
![]() 浅绿色 如
![]() 紫色 如
![]() mbed统一管脚定义会出现在hal目录对应MCU下的PinNames.h中 可以查看到一些常用的定义: // Generic signals namings LED1 = PA_5, LED2 = PA_5, LED3 = PA_5, LED4 = PA_5, USER_BUTTON = PC_13, SERIAL_TX = PA_2, SERIAL_RX = PA_3, USBTX = PA_2, USBRX = PA_3, I2C_SCL = PB_8, I2C_SDA = PB_9, SPI_MOSI = PA_7, SPI_MISO = PA_6, SPI_SCK = PA_5, SPI_CS = PB_6, PWM_OUT = PB_3, 在PeripheralNames.h 定义了一些标准外设,在mbed编程是用不到,但可以了解一下资源情况 typedef enum { ADC_1 = (int)ADC1_BASE } ADCName; typedef enum { DAC_1 = (int)DAC_BASE } DACName; typedef enum { UART_1 = (int)USART1_BASE, UART_2 = (int)USART2_BASE, UART_3 = (int)USART3_BASE, UART_4 = (int)USART4_BASE } UARTName; #define STDIO_UART_TX PA_2 #define STDIO_UART_RX PA_3 #define STDIO_UART UART_2 typedef enum { SPI_1 = (int)SPI1_BASE, SPI_2 = (int)SPI2_BASE } SPIName; typedef enum { I2C_1 = (int)I2C1_BASE, I2C_2 = (int)I2C2_BASE } I2CName; typedef enum { PWM_1 = (int)TIM1_BASE, PWM_2 = (int)TIM2_BASE, PWM_3 = (int)TIM3_BASE, PWM_14 = (int)TIM14_BASE, PWM_15 = (int)TIM15_BASE, PWM_16 = (int)TIM16_BASE, PWM_17 = (int)TIM17_BASE } PWMName; MCU与引脚资源分配情况,如下图所示 ![]() ![]() ![]() 硬件连接时还要注意以下事项 Shields support notes
具体的相关硬件资源可以查看手册: UM1724 User manual STM32 Nucleo boards.pdf |
呵呵,我也差不错,了解几个符号罢了