diff options
| author | Stefan Kerkmann | 2024-02-20 11:34:24 +0100 |
|---|---|---|
| committer | GitHub | 2024-02-20 11:34:24 +0100 |
| commit | 61fa6949fbb537f54d48a4fc0218ff2b6873e940 (patch) | |
| tree | 400f8f4920888097c0e22c68cb5fa742b0e340c8 /platforms/chibios/platform.mk | |
| parent | 865a8f42a6128dfc09a24fe749b0d78d8c69b70e (diff) | |
[Core] Allow ChibiOS `SIO` driver for `UART` driver (#22839)
* onekey: stm32f3_disco: add usart pins and activate peripheral
Signed-off-by: Stefan Kerkmann <karlk90@pm.me>
* chibios: uart: change SD1 prefix to UART
Signed-off-by: Stefan Kerkmann <karlk90@pm.me>
* chibios: uart: add SIO driver and RP2040 compatibility
Signed-off-by: Stefan Kerkmann <karlk90@pm.me>
Co-authored-by: Sergey Vlasov <sigprof@gmail.com>
* Update platforms/chibios/drivers/uart.h
Co-authored-by: Joel Challis <git@zvecr.com>
---------
Signed-off-by: Stefan Kerkmann <karlk90@pm.me>
Co-authored-by: Sergey Vlasov <sigprof@gmail.com>
Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'platforms/chibios/platform.mk')
| -rw-r--r-- | platforms/chibios/platform.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/platforms/chibios/platform.mk b/platforms/chibios/platform.mk index f38a888012..a2178412f3 100644 --- a/platforms/chibios/platform.mk +++ b/platforms/chibios/platform.mk @@ -330,6 +330,17 @@ ifeq ($(strip $(USE_CHIBIOS_CONTRIB)),yes) endif # +# Extract supported HAL drivers +############################################################################## + +define add_lld_driver_define + $(eval driver := $(word 2,$(subst /LLD/, ,$(1)))) + $(eval OPT_DEFS += -DCHIBIOS_HAL_$(driver)) +endef + +$(foreach dir,$(EXTRAINCDIRS),$(if $(findstring /LLD/,$(dir)),$(call add_lld_driver_define,$(dir)))) + +# # Project, sources and paths ############################################################################## |