void Mcu_Init(const Mcu_ConfigType *configPtr) { VALIDATE( ( NULL != configPtr ), MCU_INIT_SERVICE_ID, MCU_E_PARAM_CONFIG ); memset(&Mcu_Global.stats,0,sizeof(Mcu_Global.stats)); Irq_Enable(); Mcu_Global.config = configPtr; Mcu_Global.initRun = 1; }
/** * @ingroup mailbox * * Send a mailmsg to a mailbox. * @param box the number of the mailbox to send to * @param mailmsg the mailmsg to send * @return OK if the mailmsg was enqueued, otherwise SYSERR */ syscall mailboxSend(mailbox box, int mailmsg) { char* s = NULL; Irq_Disable(); hcd_xfer_mailbox_flag = TRUE; hcd_xfer_req = mailmsg; Irq_Enable(); /*s = "set\r\n"; mini_uart_sendstr(s);*/ return OK; }
void StartOS( AppModeType Mode ) { memset(knl_alarm_cb,0u,sizeof(knl_alarm_cb)); knl_bitmap = 0u; StartupHook(); Irq_Enable(); for(;;) { (void)Schedule(); } }
void Mcu_Init(const Mcu_ConfigType *configPtr) { VALIDATE( ( NULL != configPtr ), MCU_INIT_SERVICE_ID, MCU_E_PARAM_CONFIG ); #if !defined(USE_SIMULATOR) Mcu_CheckCpu(); #endif memset(&Mcu_Global.stats,0,sizeof(Mcu_Global.stats)); Irq_Enable(); Mcu_Global.config = configPtr; Mcu_Global.initRun = 1; }
void Os_ArchFirstCall( void ) { // IMPROVEMENT: make switch here... for now just call func. Irq_Enable(); Os_Sys.currTaskPtr->constPtr->entry(); }