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:
		@ -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"
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user