• Placing suffix u with unsigned variables
    I was reading on misra website that for assigning 0 to unsigned variable, 'u' must be suffixed. For example: uint8_t my_cnt = 0U; 1. Does that even on declaring array I should use this.Like...
  • Asm/C preprocessor does not like Long Constants.
    Hi, I have a problem with the way your preprocessor works. This problem occurs in both assembly and in C. The reason we started trying to do this in C was that the assembler had a problem and while...
  • disabling an interrupt like in a task
    hello, I have a task that needs to query the value of a global variable that is also accessed in an ISR. it is a mistake to have the task scheduler preempt my task while the interrupt like is disabled...
  • would like to use #if
    if ((&x - &y) != 1889) // 1889 IS FIXED NUMBER do not change { // do not bypass/change, see comments above while (1) // do not bypass/change, see comments above { // do not bypass/change, see comments...
  • Importing constants
    How to import to a *.c file a constant defined in a *.asm file with EQU directive ?