From: Bontor H. <bon...@gm...> - 2014-07-24 03:07:44
|
Hello, I am trying to implement ModBus library on top of Contiki, using freeModBus. In porting the library, some functions needs to be implemented as noninterruptible task (critical section). I tried using /cpu_cpsid()/ and /cpu_cpsie() /in cpu.h but the message just stopped in the middle. Is there any API from Contiki to declare this "critical section", e.g. in freeRTOS you have /taskENTER_CRITICAL /and /taskEXIT_CRITICAL/ Thanks. |