stm3210c_eval.h中对LED的配置是什么意思 ,刚搜索到的。谢谢
突然在【stm3210c_eval.h】里看到的,led设置基本都会在led.h中对led对应哪个管脚进行#define,但是突然看到这个里面的定义,是做什么用的,表达了什么意思?刚学比较傻,求好心人告知,谢谢啦!!**********************************************
/** @addtogroup STM3210C_EVAL_LED
* @{
*/
#define LEDn 4
#define LED1_GPIO_PORT GPIOD
#define LED1_GPIO_CLK RCC_APB2Periph_GPIOD
#define LED1_GPIO_PIN GPIO_Pin_7
#define LED2_GPIO_PORT GPIOD
#define LED2_GPIO_CLK RCC_APB2Periph_GPIOD
#define LED2_GPIO_PIN GPIO_Pin_13
#define LED3_GPIO_PORT GPIOD
#define LED3_GPIO_CLK RCC_APB2Periph_GPIOD
#define LED3_GPIO_PIN GPIO_Pin_3
#define LED4_GPIO_PORT GPIOD
#define LED4_GPIO_CLK RCC_APB2Periph_GPIOD
#define LED4_GPIO_PIN GPIO_Pin_4
********************************************************************
LED 时钟端口、 引脚定义
页:
[1]