CC2640R2F&TI-RTOS 拿到 TI CC2640R2F 开发板 第二件事就是 LED 驱动 ,点个灯
/* * board_led.c * * Created on: 2018年7月3日 * Author: admin */ #include " board_uart.h " #include " board.h " #include " board_led.h " static PIN_State ledBoardPinsState; static PIN_Handle ledBoardPinsHandle = NULL; PIN_Config LedBoardPinsCfg[] = { ledRedBoard | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX, ledBlueBoard | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX, PIN_TERMINATE}; void ledBoardInit( void ) { /* 初始化LED0,2018年7月3日15:36:20 */ /* 打开LED0 */ ledBoardPinsHandle = PIN_open(& ledBoardPinsState, LedBoardPinsCfg); if (ledBoardPinsHandle == NULL)