Skip to content

Commit

Permalink
Now that the MCU directory needs to be included in the search path fo…
Browse files Browse the repository at this point in the history
…r includes, no need for target.h entry if filenaming is consistent.
  • Loading branch information
blckmn committed Feb 21, 2023
1 parent da0dea9 commit 3e1b4c1
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/main/drivers/at32/dma_reqmap_mcu.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
#define MAX_PERIPHERAL_DMA_OPTIONS 14
#define MAX_TIMER_DMA_OPTIONS 22

#define USE_DMA_MUX
#define USE_DMA_MUX
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions src/main/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
#include "config.h"
#endif

// MCU specific platform from drivers/XX
#include "platform_mcu.h"

#include "target.h"
#include "target/common_post.h"
#include "target/common_defaults_post.h"
2 changes: 0 additions & 2 deletions src/main/target/AT32F435/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

#pragma once

#include "drivers/at32/platform_at32.h"

#define TARGET_BOARD_IDENTIFIER "A435"

#define USBD_PRODUCT_STRING "Betaflight AT32F435"
Expand Down
2 changes: 0 additions & 2 deletions src/main/target/STM32F405/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

#pragma once

#include "drivers/stm32/platform_stm32.h"

#define TARGET_BOARD_IDENTIFIER "S405"

#define USBD_PRODUCT_STRING "Betaflight STM32F405"
Expand Down
2 changes: 0 additions & 2 deletions src/main/target/STM32F411/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

#pragma once

#include "drivers/stm32/platform_stm32.h"

#define TARGET_BOARD_IDENTIFIER "S411"

#define USBD_PRODUCT_STRING "Betaflight STM32F411"
Expand Down
2 changes: 0 additions & 2 deletions src/main/target/STM32F745/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

#pragma once

#include "drivers/stm32/platform_stm32.h"

#define TARGET_BOARD_IDENTIFIER "S745"

#define USBD_PRODUCT_STRING "Betaflight STM32F745"
Expand Down
2 changes: 0 additions & 2 deletions src/main/target/STM32F7X2/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

#pragma once

#include "drivers/stm32/platform_stm32.h"

#define TARGET_BOARD_IDENTIFIER "S7X2"

#define USBD_PRODUCT_STRING "Betaflight STM32F7x2"
Expand Down
2 changes: 0 additions & 2 deletions src/main/target/STM32G47X/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

#pragma once

#include "drivers/stm32/platform_stm32.h"

#define TARGET_BOARD_IDENTIFIER "SG47"

#define USBD_PRODUCT_STRING "Betaflight STM32G47x"
Expand Down
2 changes: 0 additions & 2 deletions src/main/target/STM32H723/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

#pragma once

#include "drivers/stm32/platform_stm32.h"

#ifndef TARGET_BOARD_IDENTIFIER
#define TARGET_BOARD_IDENTIFIER "SH72"
#endif
Expand Down
2 changes: 0 additions & 2 deletions src/main/target/STM32H730/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@

#pragma once

#include "drivers/stm32/platform_stm32.h"

#ifndef TARGET_BOARD_IDENTIFIER
#define TARGET_BOARD_IDENTIFIER "S730"
#endif
Expand Down
2 changes: 0 additions & 2 deletions src/main/target/STM32H743/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

#pragma once

#include "drivers/stm32/platform_stm32.h"

#define TARGET_BOARD_IDENTIFIER "SH74"

#define USBD_PRODUCT_STRING "Betaflight STM32H743"
Expand Down
2 changes: 0 additions & 2 deletions src/main/target/STM32H750/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@

#pragma once

#include "drivers/stm32/platform_stm32.h"

#ifndef TARGET_BOARD_IDENTIFIER
#define TARGET_BOARD_IDENTIFIER "S750"
#endif
Expand Down

0 comments on commit 3e1b4c1

Please sign in to comment.