Просмотр исходного кода

Only implement HSRUN changes when F_CPU > 120 MHz

teensy4-core
PaulStoffregen 8 лет назад
Родитель
Сommit
809482c72e
2 измененных файлов: 3 добавлений и 3 удалений
  1. +1
    -1
      teensy3/kinetis.h
  2. +2
    -2
      teensy3/mk20dx128.c

+ 1
- 1
teensy3/kinetis.h Просмотреть файл

@@ -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 Просмотреть файл

@@ -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


Загрузка…
Отмена
Сохранить