use stock core_riscv.h for ch32 v2 v3

This commit is contained in:
hathach
2024-06-14 12:51:28 +07:00
parent ba2f2299c3
commit 2ed027f2bd
12 changed files with 78 additions and 952 deletions

View File

@@ -1,6 +1,18 @@
#include <stdio.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
#include "ch32v20x.h"
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#include "bsp/board_api.h"
#include "board.h"