mirror of https://github.com/rusefi/ChibiOS.git
Fixed wrong macro check.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14555 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
0550467881
commit
369b1bca7e
|
@ -93,7 +93,7 @@ void _port_switch(thread_t *ntp, thread_t *otp) {
|
|||
asm volatile ("push r28");
|
||||
asm volatile ("push r29");
|
||||
|
||||
#if defined(_CHIBIOS_RT_)
|
||||
#if defined(__CHIBIOS_RT__)
|
||||
asm volatile ("movw r30, r22");
|
||||
asm volatile ("in r0, 0x3d");
|
||||
asm volatile ("std Z+5, r0");
|
||||
|
@ -107,7 +107,7 @@ void _port_switch(thread_t *ntp, thread_t *otp) {
|
|||
asm volatile ("out 0x3e, r0");
|
||||
#endif
|
||||
|
||||
#if defined(_CHIBIOS_NIL_)
|
||||
#if defined(__CHIBIOS_NIL__)
|
||||
asm volatile ("movw r30, r22");
|
||||
asm volatile ("in r0, 0x3d");
|
||||
asm volatile ("std Z+0, r0");
|
||||
|
|
Loading…
Reference in New Issue