diff options
Diffstat (limited to 'tmk_core')
| -rw-r--r-- | tmk_core/common/chibios/chibios_config.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tmk_core/common/chibios/chibios_config.h b/tmk_core/common/chibios/chibios_config.h index c35f58955..f06594802 100644 --- a/tmk_core/common/chibios/chibios_config.h +++ b/tmk_core/common/chibios/chibios_config.h | |||
| @@ -48,4 +48,12 @@ | |||
| 48 | # define USE_I2CV1_CONTRIB // for some reason a bunch of ChibiOS-Contrib boards only have clock_speed | 48 | # define USE_I2CV1_CONTRIB // for some reason a bunch of ChibiOS-Contrib boards only have clock_speed |
| 49 | # define USE_GPIOV1 | 49 | # define USE_GPIOV1 |
| 50 | # endif | 50 | # endif |
| 51 | #endif \ No newline at end of file | 51 | #endif |
| 52 | |||
| 53 | #if defined(HT32) | ||
| 54 | # define CPU_CLOCK HT32_CK_SYS_FREQUENCY | ||
| 55 | # define PAL_MODE_ALTERNATE PAL_HT32_MODE_AF | ||
| 56 | # define PAL_OUTPUT_TYPE_OPENDRAIN (PAL_HT32_MODE_OD | PAL_HT32_MODE_DIR) | ||
| 57 | # define PAL_OUTPUT_TYPE_PUSHPULL PAL_HT32_MODE_DIR | ||
| 58 | # define PAL_OUTPUT_SPEED_HIGHEST 0 | ||
| 59 | #endif | ||
