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:
Giovanni Di Sirio 2021-06-14 17:24:26 +00:00
parent 0550467881
commit 369b1bca7e
1 changed files with 2 additions and 2 deletions

View File

@ -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");