Added ".syntax unified"

Otherwise gcc complains. I've tested this to work with the normal CMakeLists.txt provided in a few examples.
This commit is contained in:
foopub 2021-02-26 15:56:51 +00:00 committed by Graham Sanderson
parent be7a655824
commit a0481b2e02

View File

@ -78,6 +78,7 @@ bool clock_configure(enum clock_index clk_index, uint32_t src, uint32_t auxsrc,
// necessarily running, nor is timer... so, 3 cycles per loop: // necessarily running, nor is timer... so, 3 cycles per loop:
uint delay_cyc = configured_freq[clk_sys] / configured_freq[clk_index] + 1; uint delay_cyc = configured_freq[clk_sys] / configured_freq[clk_index] + 1;
asm volatile ( asm volatile (
".syntax unified \n\t"
"1: \n\t" "1: \n\t"
"subs %0, #1 \n\t" "subs %0, #1 \n\t"
"bne 1b" "bne 1b"