why do i hafta go around in circles? i can't use delay or delay_ms or ellapsedmilis because all three timers are busy and can't be interrupted.
but this:
for (t = 0; t<10000; t++){ for (x = 0; x<10000; x++){} }
shouldn't be a nightmare. but nooooooooo, gcc won't stand for it.
so there's this file, C:\Program Files (x86)\Arduino\hardware\arduino\avr\platform.txt, that supposedly i can edit and tell gcc to getthehelloutamyway!
and it has this paragraph:
# Default "compiler.path" is correct, change only if you want to override the initial value
compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects
compiler.c.elf.flags={compiler.warning_flags} -Os -flto -fuse-linker-plugin -Wl,--gc-sections
compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
compiler.elf2hex.flags=-O ihex -R .eeprom
where the -O option appears no less than 5 times. can someone who speaks gcc tell me what to do here?
thanx, CrazyInLA
but this:
for (t = 0; t<10000; t++){ for (x = 0; x<10000; x++){} }
shouldn't be a nightmare. but nooooooooo, gcc won't stand for it.
so there's this file, C:\Program Files (x86)\Arduino\hardware\arduino\avr\platform.txt, that supposedly i can edit and tell gcc to getthehelloutamyway!
and it has this paragraph:
# Default "compiler.path" is correct, change only if you want to override the initial value
compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects
compiler.c.elf.flags={compiler.warning_flags} -Os -flto -fuse-linker-plugin -Wl,--gc-sections
compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
compiler.elf2hex.flags=-O ihex -R .eeprom
where the -O option appears no less than 5 times. can someone who speaks gcc tell me what to do here?
thanx, CrazyInLA