浏览代码

Only implement HSRUN changes when F_CPU > 120 MHz

teensy4-core
PaulStoffregen 8 年前
父节点
当前提交
809482c72e
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. +1
    -1
      teensy3/kinetis.h
  2. +2
    -2
      teensy3/mk20dx128.c

+ 1
- 1
teensy3/kinetis.h 查看文件

#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 查看文件

} }




#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



正在加载...
取消
保存