Skip to content

Commit

Permalink
Fix __ARM_ASM_SYNTAX_UNIFIED__ once more
Browse files Browse the repository at this point in the history
  • Loading branch information
felixjones committed Dec 10, 2023
1 parent cfe98b1 commit 2adf1e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ static void rtc_cmd_arg(const unsigned int cmd, unsigned int data, unsigned int
int wait = (TIMEOUT_CYCLES_WAIT_AFTER_WRITE_PER_BYTE * 7 + 11 + 6) / 12;
__asm__ volatile (
"L1%=:" "\n\t"
#if __ARM_ASM_SYNTAX_UNIFIED__ == 1
#if defined(__ARM_ASM_SYNTAX_UNIFIED__) && __ARM_ASM_SYNTAX_UNIFIED__ == 1
"subs %[wait], %[wait], #1" "\n\t"
#else
"sub %[wait], #1" "\n\t"
Expand All @@ -168,7 +168,7 @@ static void rtc_cmd_arg_datetime(unsigned int cmd, __agbabi_datetime_t datetime,
int wait = (TIMEOUT_CYCLES_WAIT_AFTER_WRITE_PER_BYTE * 7 + 11 + 6) / 12;
__asm__ volatile (
"L1%=:" "\n\t"
#if __ARM_ASM_SYNTAX_UNIFIED__ == 1
#if defined(__ARM_ASM_SYNTAX_UNIFIED__) && __ARM_ASM_SYNTAX_UNIFIED__ == 1
"subs %[wait], %[wait], #1" "\n\t"
#else
"sub %[wait], #1" "\n\t"
Expand Down

0 comments on commit 2adf1e6

Please sign in to comment.