Device drivers vs. embOS

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Device drivers vs. embOS

    I've got a more general question,

    I've writen a large amount of device drivers (UART, SPI, CAN, etc...) in the past. All of them use there specific interrupt system (thru VIC) to get serviced in time. They are not writen with any OS in mind, they only use the compiler specific instructions to enable/disable the interrupts and push/pop the registers on stack.

    If I want to utilize embOS as my main operating system, then what is the risk hence amount of work involved in doing so keeping in mind that I want to re-use most of my devices drivers.


  • Basically you should be able to leave the interrupt service routines as they are.
    Only if these routines need to call embOS functions (such as OS_SignalEvent),
    they need small modifications; they need to comply with whatever the manual
    says for the processor you are using (sounds like an ARM7).
    The required changes for this type of ISR should not be major either.
    An easy way too see what needs to be done is to look at the tickhandler
    (usually in RTOSInit.c)