1
0
Fork 0

Added MCU support for ArteryTek AT32F415 (#23445)

This commit is contained in:
HorrorTroll 2024-11-21 13:28:28 +07:00 committed by GitHub
parent 074bbbfb21
commit 39161b9ee7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
32 changed files with 1065 additions and 63 deletions

View file

@ -142,6 +142,19 @@
# endif
#endif
// AT32 compatibility
#if defined(MCU_AT32)
# define CPU_CLOCK AT32_SYSCLK
# if defined(AT32F415)
# define USE_GPIOV1
# define USE_I2CV1
# define PAL_MODE_ALTERNATE_OPENDRAIN PAL_MODE_AT32_ALTERNATE_OPENDRAIN
# define PAL_MODE_ALTERNATE_PUSHPULL PAL_MODE_AT32_ALTERNATE_PUSHPULL
# define AUDIO_PWM_PAL_MODE PAL_MODE_ALTERNATE_PUSHPULL
# endif
#endif
#if defined(GD32VF103)
/* This chip has the same API as STM32F103, but uses different names for literally the same thing.
* As of 4.7.2021 QMK is tailored to use STM32 defines/names, for compatibility sake