FreeRTOS book update from 1.0.1

meandmyself wrote on Friday, March 20, 2009:

Regarding the book is there any update that includes the new handling of ISRs?

The version of the FreeRTOS book we have is 1.0.1

thanks

rtel wrote on Friday, March 20, 2009:

The book is currently at revision 1.0.5 but really the only things to change are minor typos and references.

Which new ISR handling are you referring to.  Nothing in that respect has changed.

Regards.

meandmyself wrote on Friday, March 20, 2009:

the construction of an ISR seems to be different than the one described in the book. Maybe it is only just processor dependent…

===============================================
See "an example of an ISR with context switching capabilities" on the following page and all will be clear: http://www.freertos.org/portsam7iar.html

In the book, some examples for ISRs are declared using __interrupt so no need for an assembly file with the code:

        CAN_int:
          portSAVE_CONTEXT      ; Call portSAVE_CONTEXT macro first
          bl  CAN_int_C         ; Then call the function written in the C file.
          portRESTORE_CONTEXT   ; Call portRESTORE_CONTEXT last.

rtel wrote on Friday, March 20, 2009:

The actual syntax required is dependent mainly on the compiler being used.  I think it says this in the book already…

Regards.