TI-RTOS示例程序 gpiointerrupt_MSP_EXP430FR5994_TI中 GPIO_write(Board_LED0, Board_LED_ON);函数应该是让P1.0输出高电平,但是Board_LED0是怎么映射到P1.0的 ?通过查看定义只能知道其映射到下面这个枚举变量的MSP_EXP430FR5994_LED1变量。
typedef enum MSP_EXP430FR5994_GPIOName {
MSP_EXP430FR5994_S1 = 0,
MSP_EXP430FR5994_S2,
MSP_EXP430FR5994_LED1,
MSP_EXP430FR5994_LED2,
MSP_EXP430FR5994_S1 = 0,
MSP_EXP430FR5994_S2,
MSP_EXP430FR5994_LED1,
MSP_EXP430FR5994_LED2,
MSP_EXP430FR5994_GPIOCOUNT
} MSP_EXP430FR5994_GPIOName;
} MSP_EXP430FR5994_GPIOName;
HG:
http://www.deyisupport.com/question_answer/microcontrollers/msp430/f/55/p/146554/414832.aspx#414832