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

@@ -25,8 +25,17 @@
*/
#include "debug_uart.h"
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-prototypes"
#endif
#include <ch32v30x.h>
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#define UART_RINGBUFFER_SIZE_TX 128
#define UART_RINGBUFFER_MASK_TX (UART_RINGBUFFER_SIZE_TX-1)