|
QP/C
|
QK/C port to QK for a "generic" C compiler. More...
#include "qk.h"Go to the source code of this file.
Defines | |
| #define | QK_EXT_SAVE(act_) (FPU_save((FPU_context *)(act_)->thread)) |
| Define the method for saving the extended context (e.g., the context of a floating-point co-processor). | |
| #define | QK_EXT_RESTORE(act_) (FPU_restore((FPU_context *)(act_)->thread)) |
| Define the method for restoring the extended context (e.g., the context of a floating-point co-processor). | |
| #define | QK_TLS(act_) (impure_ptr = (reent *)(act_)->thread) |
| Define the method for switching the Thread-Local-Storage for for a given thread. | |
| #define | QK_ISR_ENTRY() |
| Define the ISR entry sequence, if the compiler supports writing interrupts in C. | |
| #define | QK_ISR_EXIT() |
| Define the ISR exit sequence, if the compiler supports writing interrupts in C. | |
QK/C port to QK for a "generic" C compiler.
Definition in file qk_port.h.
| #define QK_EXT_RESTORE | ( | act_ | ) | (FPU_restore((FPU_context *)(act_)->thread)) |
Define the method for restoring the extended context (e.g., the context of a floating-point co-processor).
| #define QK_EXT_SAVE | ( | act_ | ) | (FPU_save((FPU_context *)(act_)->thread)) |
Define the method for saving the extended context (e.g., the context of a floating-point co-processor).
Definition at line 57 of file qk_port.h.
Referenced by QK_schedExt_().
| #define QK_ISR_ENTRY | ( | ) |
do { \ ++QK_intNest_; \ QF_QS_ISR_ENTRY(QK_intNest_, QK_currPrio_); \ } while (0)
Define the ISR entry sequence, if the compiler supports writing interrupts in C.
| #define QK_ISR_EXIT | ( | ) |
do { \ send End-Of-Interrupt instruction to the Interrupt Controller; \ QF_QS_ISR_EXIT(QK_intNest_, QK_currPrio_); \ --QK_intNest_; \ if (QK_intNest_ == (uint8_t)0) { \ QK_scheduleExt_(); \ } \ } while (0)
Define the ISR exit sequence, if the compiler supports writing interrupts in C.
| #define QK_TLS | ( | act_ | ) | (impure_ptr = (reent *)(act_)->thread) |
Define the method for switching the Thread-Local-Storage for for a given thread.
Definition at line 87 of file qk_port.h.
Referenced by QK_sched_(), and QK_schedExt_().
1.7.6.1