diff options
| author | Ha Thach <[email protected]> | 2024-06-14 20:34:32 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-06-14 20:34:32 +0700 |
| commit | 0ac0c37078d5cc9bbfb76d4091ffb07343cfd7f9 (patch) | |
| tree | b30205e5f498825af09dd7244313dc6f56e7ea00 /src/portable/st | |
| parent | ba2f2299c34491aa8c354e00fa3f9d222e30db89 (diff) | |
| parent | 2be72a97b8fd4d08ca20a9b8815f2042c4ef7520 (diff) | |
Merge pull request #2674 from hathach/add-ch32v103
Add ch32v103 (not working yet)
Diffstat (limited to 'src/portable/st')
| -rw-r--r-- | src/portable/st/stm32_fsdev/fsdev_ch32.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/portable/st/stm32_fsdev/fsdev_ch32.h b/src/portable/st/stm32_fsdev/fsdev_ch32.h index 85fe3266c..f63a80d56 100644 --- a/src/portable/st/stm32_fsdev/fsdev_ch32.h +++ b/src/portable/st/stm32_fsdev/fsdev_ch32.h @@ -36,11 +36,21 @@ #include "common/tusb_compiler.h" -#if CFG_TUSB_MCU == OPT_MCU_CH32V20X - #include <ch32v20x.h> +// https://github.com/openwch/ch32v307/pull/90 +// https://github.com/openwch/ch32v20x/pull/12 +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-prototypes" +#endif -#elif CFG_TUSB_MCU == OPT_MCU_CH32F20X +#if CFG_TUSB_MCU == OPT_MCU_CH32F20X #include <ch32f20x.h> +#elif CFG_TUSB_MCU == OPT_MCU_CH32V20X + #include <ch32v20x.h> +#endif + +#ifdef __GNUC__ +#pragma GCC diagnostic pop #endif #define FSDEV_PMA_SIZE (512u) |
