/************************************************************************************************** * @fn BSP_InitDrivers * * @brief Initialize all enabled BSP drivers. * * @param none * * @return none ************************************************************************************************** */ void BSP_InitDrivers(void) { /* * Enable GPIO peripherals used by SPI, LEDs, buttons and radio interface * here. */ #ifdef MRFI_CC2520 MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOC); MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOE); MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF); MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOG); MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOH); MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOJ); #else MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOE); MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF); MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOJ); MAP_SysCtlPeripheralEnable(MOD2_CONNECTION ? SYSCTL_PERIPH_GPIOG: SYSCTL_PERIPH_GPIOH); #endif #if (!defined BSP_NO_LEDS) BSP_InitLeds(); #endif #if (!defined BSP_NO_BUTTONS) BSP_InitButtons(); #endif }
/************************************************************************************************** * @fn BSP_InitDrivers * * @brief Initialize all enabled BSP drivers. * * @param none * * @return none ************************************************************************************************** */ void BSP_InitDrivers(void) { #if (!defined BSP_NO_LEDS) BSP_InitLeds(); #endif #if (!defined BSP_NO_BUTTONS) BSP_InitButtons(); #endif }