Sfoglia il codice sorgente

Only implement HSRUN changes when F_CPU > 120 MHz

teensy4-core
PaulStoffregen 8 anni fa
parent
commit
809482c72e
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. +1
    -1
      teensy3/kinetis.h
  2. +2
    -2
      teensy3/mk20dx128.c

+ 1
- 1
teensy3/kinetis.h Vedi File

@@ -5663,7 +5663,7 @@ extern "C" {
#endif
extern int nvic_execution_priority(void);

#ifdef HAS_KINETIS_HSRUN
#if defined(HAS_KINETIS_HSRUN) && F_CPU > 120000000
extern int kinetis_hsrun_disable(void);
extern int kinetis_hsrun_enable(void);
#else

+ 2
- 2
teensy3/mk20dx128.c Vedi File

@@ -1223,7 +1223,7 @@ int nvic_execution_priority(void)
}


#ifdef HAS_KINETIS_HSRUN
#if defined(HAS_KINETIS_HSRUN) && F_CPU > 120000000
int kinetis_hsrun_disable(void)
{
if (SMC_PMSTAT == SMC_PMSTAT_HSRUN) {
@@ -1312,5 +1312,5 @@ int kinetis_hsrun_enable(void)
}
return 0;
}
#endif // HAS_KINETIS_HSRUN
#endif // HAS_KINETIS_HSRUN && F_CPU > 120000000


Loading…
Annulla
Salva