Interrupt Handling in multi-threaded CTL environment

Comments

1 comment

  • Avatar
    Mark

    I've added my USART handling code.

    The USART IRQ handler  (USART2_IRQHandler) replaces the defalt system one (this just happens my magic, cos the original is a weak reference)

    **This IRQ handler is called regardless of CTL threads/tasking etc.**

    All you need to do is pass the USART data to you app code somehow, I use a CTL byte queue for this, as it handles all issues regarding queueing and sharing of the buffer. All the other stuff is just my wrapper.

     

    cheers

    Mark

    0
    Comment actions Permalink

Please sign in to leave a comment.