/************************************************************************************************** * @fn macLowLevelInit * * @brief Initialize low-level MAC. Called only once on system power-up. * * @param none * * @return none ************************************************************************************************** */ void macLowLevelInit(void) { /* initialize mcu before anything else */ MAC_RADIO_MCU_INIT(); /* software initialziation */ macRadioInit(); macRxOnOffInit(); macRxInit(); macTxInit(); macBackoffTimerInit(); }
/************************************************************************************************** * @fn macLowLevelInit * * @brief Initialize low-level MAC. Called only once on system power-up. * * @param none * * @return none ************************************************************************************************** */ MAC_INTERNAL_API void macLowLevelInit(void) { /* initialize mcu before anything else */ MAC_RADIO_MCU_INIT(); /* initialize (override) beacon margin timing table */ #if !defined ( HAL_CLOCK_CRYSTAL ) { uint8 i; for (i = 0; i < sizeof(macBeaconMarginDCO)/sizeof(macBeaconMarginDCO[0]); i++) { macBeaconMargin[i] = macBeaconMarginDCO[i]; } } #endif /* software initialziation */ macRadioInit(); macRxOnOffInit(); macRxInit(); macTxInit(); macBackoffTimerInit(); }