Browse Source

Only implement HSRUN changes when F_CPU > 120 MHz

teensy4-core
PaulStoffregen 8 years ago
parent
commit
809482c72e
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      teensy3/kinetis.h
  2. +2
    -2
      teensy3/mk20dx128.c

+ 1
- 1
teensy3/kinetis.h View File

#endif #endif
extern int nvic_execution_priority(void); 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_disable(void);
extern int kinetis_hsrun_enable(void); extern int kinetis_hsrun_enable(void);
#else #else

+ 2
- 2
teensy3/mk20dx128.c View File

} }




#ifdef HAS_KINETIS_HSRUN
#if defined(HAS_KINETIS_HSRUN) && F_CPU > 120000000
int kinetis_hsrun_disable(void) int kinetis_hsrun_disable(void)
{ {
if (SMC_PMSTAT == SMC_PMSTAT_HSRUN) { if (SMC_PMSTAT == SMC_PMSTAT_HSRUN) {
} }
return 0; return 0;
} }
#endif // HAS_KINETIS_HSRUN
#endif // HAS_KINETIS_HSRUN && F_CPU > 120000000



Loading…
Cancel
Save