Procházet zdrojové kódy

Merge pull request #373 from FrankBoesing/patch-1

while(1); -> while (1) asm ("WFI");
teensy4-core
Paul Stoffregen před 6 roky
rodič
revize
9f4d02ced9
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 4 přidání a 5 odebrání
  1. +4
    -5
      teensy4/startup.c

+ 4
- 5
teensy4/startup.c Zobrazit soubor

#else #else
if ( F_CPU_ACTUAL >= 600000000 ) if ( F_CPU_ACTUAL >= 600000000 )
set_arm_clock(100000000); set_arm_clock(100000000);
while (1) {
}
while (1) asm ("WFI");
#endif #endif
} }


__attribute__((weak)) __attribute__((weak))
void _exit(int status) void _exit(int status)
{ {
while (1);
while (1) asm ("WFI");
} }


__attribute__((weak)) __attribute__((weak))
void __cxa_pure_virtual() void __cxa_pure_virtual()
{ {
while (1);
while (1) asm ("WFI");
} }


__attribute__((weak)) __attribute__((weak))
__attribute__((weak)) __attribute__((weak))
void abort(void) void abort(void)
{ {
while (1) ;
while (1) asm ("WFI");
} }

Načítá se…
Zrušit
Uložit