Skip to content

Commit

Permalink
Fix asm keyword to be portable
Browse files Browse the repository at this point in the history
Replace asm with __asm__ to allow compilation with -std=c99
  • Loading branch information
facchinm committed May 23, 2018
1 parent 52ed8fd commit 188a5cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Projects/Multi/Applications/LoRa/AT_Slave/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ static inline void runPassthrough() {
// PA6 -> PA2
// PB12 -> PB15

asm volatile (
__asm__ volatile (
"LDR R0, =0x50000014\n\t" //GPIOA_BSRR
"LDR R1, =0x50000414\n\t" //GPIOB_BSRR
"LDR R2, =0x50000010\n\t" //GPIOA_IDR
Expand Down

0 comments on commit 188a5cd

Please sign in to comment.