• interrupts messin' with vsprintf ?
    I have a 1ms fixed time interrupt scanning and debouncing a couple of switches, and a 1200 baud port receiving blocks of 17 chars 4 times a sec. Asynchronously at 5 times/sec, I'm assembling an 8 character...
  • Can a function know whether it executes on interrupt context or not?
    Hello, I am busy writing an RTOS with a preemptive scheduler. I have written a mutex which works fine, but, of course, I cannot use that mutex (a one that loops until the lock is released by another...
  • A question about context switching
    Hello, There is an issue related to context switches that I do not understand. I have written the most simple interrupt handler: void foo() interrupt 0x20 using f_regs { } The generated assembly...
  • Saving context before a switch
    Hello, I am working with an xc167. Currently I use a round-robin schedular, but I want to write my own preemptive schedular. I have browsed through the user manual, but it is still not 100% clear to...
  • Full context Vs Reduced Context
    Hi Experts, There is code pieces on Full context and reduced context in the RTX code. What this is actually intended for ?