/* * @fn nm_bsp_init * @brief Initialize BSP * @return 0 in case of success and -1 in case of failure * @author M.S.M * @date 11 July 2012 * @version 1.0 */ sint8 nm_bsp_init(void) { gpfIsr = NULL; init_chip_pins(); nm_bsp_reset(); return M2M_SUCCESS; }
/* * @fn nm_bsp_init * @brief Initialize BSP * @return 0 in case of success and -1 in case of failure */ sint8 nm_bsp_init(void) { gpfIsr = NULL; /* Initialize chip IOs. */ init_chip_pins(); /* Perform chip reset. */ nm_bsp_reset(); return 0; }
/* * @fn nm_bsp_init * @brief Initialize BSP * @return 0 in case of success and -1 in case of failure */ sint8 nm_bsp_init(void) { gpfIsr = NULL; /* Initialize chip IOs. */ init_chip_pins(); /* Make sure a 1ms Systick is configured. */ if (!(SysTick->CTRL & SysTick_CTRL_ENABLE_Msk && SysTick->CTRL & SysTick_CTRL_TICKINT_Msk)) { delay_init(); } /* Perform chip reset. */ nm_bsp_reset(); return 0; }
/* * @fn nm_bsp_init * @brief Initialize BSP * @return 0 in case of success and -1 in case of failure */ sint8 nm_bsp_init(void) { // gpfIsr = NULL; /* Initialize chip IOs. */ init_chip_pins(); /* Make sure a 1ms Systick is configured. */ // if (!(SysTick->CTRL & SysTick_CTRL_ENABLE_Msk && SysTick->CTRL & SysTick_CTRL_TICKINT_Msk)) { // delay_init(); // } /* Perform chip reset. */ nm_bsp_reset(); //system_interrupt_enable_global(); return M2M_SUCCESS; }
/* * @fn nm_bsp_init * @brief Initialize BSP * @return 0 in case of success and -1 in case of failure */ sint8 nm_bsp_init(void) { gpfIsr = NULL; /* Initialize chip IOs. */ init_chip_pins(); /* TODO: Set timer? */ /* Make sure a 1ms Systick is configured. */ /* if (!(SysTick->CTRL & SysTick_CTRL_ENABLE_Msk && SysTick->CTRL & SysTick_CTRL_TICKINT_Msk)) { delay_init(); } */ /* Perform chip reset. */ nm_bsp_reset(); /* Enable glabal interrupt */ sei(); return M2M_SUCCESS; }