2630的工程,应用程序和协议栈是分开的,
比如说应用程序里的board_led里面的LED和协议栈里的hal_led
他们是怎么关联的?比我我再board_led里修改了LED对应的IO口,或者增加了LED数量,
可是我在hal_led里面没有找到LED对应的IO口定义?
Alvin Chen:
C:\ti\simplelink\zstack_home_1_02_02a_44539\Projects\zstack\common\CC26xx\SmartRF06 里面board_led.c 写的很清楚建议你自己去看.
static PIN_Config ledPinTable[] = { #if defined (MODULE_CC26XX_7X7)Board_LED1 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX, /* LED1 initially off */Board_LED2 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX, /* LED2 initially off */ #elif defined (MODULE_CC26XX_5X5)/* Board_LED1 and Board_LED2 are not connected to MODULE_CC26XX_5X5. */ #elif defined (MODULE_CC26XX_4X4)/* Board_LED1 and Board_LED2 are not connected to MODULE_CC26XX_4X4. */ #elif #error "Must define either 'MODULE_CC26XX_7X7', 'MODULE_CC26XX_5X5', or 'MODULE_CC26XX_4X4'." #endif /* MODULE_CC26XX_7X7 */Board_LED3 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX, /* LED3 initially off */Board_LED4 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX, /* LED4 initially off */PIN_TERMINATE /* Terminate list*/ };