1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 20:35:33 +03:00

Simplified platform.h (#12355)

As targets are limited to MCU now, we can use this fact to remove the #ifdef statements related to MCU. This is implied by the target.h and can be used for including MCU platform specific includes.
This commit is contained in:
J Blackman 2023-02-15 02:50:47 +11:00 committed by GitHub
parent 2dbbd1882c
commit 25b3b58385
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 36 additions and 34 deletions

View file

@ -124,7 +124,6 @@
#define USE_PERSISTENT_MSC_RTC
#define USE_MCO
#define USE_DMA_SPEC
#define USE_TIMER_MGMT
#define USE_PERSISTENT_OBJECTS
#define USE_CUSTOM_DEFAULTS_ADDRESS
#define USE_LATE_TASK_STATISTICS
@ -148,7 +147,6 @@
#define USE_PERSISTENT_MSC_RTC
#define USE_MCO
#define USE_DMA_SPEC
#define USE_TIMER_MGMT
#define USE_PERSISTENT_OBJECTS
#define USE_CUSTOM_DEFAULTS_ADDRESS
#define USE_LATE_TASK_STATISTICS
@ -168,7 +166,6 @@
#define USE_ADC_INTERNAL
#define USE_USB_CDC_HID
#define USE_DMA_SPEC
#define USE_TIMER_MGMT
#define USE_PERSISTENT_OBJECTS
#define USE_DMA_RAM
#define USE_USB_MSC
@ -187,7 +184,6 @@
#define USE_USB_CDC_HID
#define USE_MCO
#define USE_DMA_SPEC
#define USE_TIMER_MGMT
#define USE_LATE_TASK_STATISTICS
#endif
@ -255,3 +251,6 @@ extern uint8_t _dmaram_end__;
#define DMA_RAM_W
#define DMA_RAM_RW
#endif
#define USE_TIMER_MGMT
#define USE_TIMER_AF