From 83a9bbbc96a084d457d5a30c3b3fccf8071e5a09 Mon Sep 17 00:00:00 2001 From: imi415 Date: Tue, 29 Mar 2022 16:19:12 +0800 Subject: [PATCH] Updated README. --- CMakeLists.txt | 1 + README.md | 5 +++-- include/board.h | 4 ++++ src/board.c | 5 +++++ src/main.c | 2 +- 5 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 include/board.h create mode 100644 src/board.c diff --git a/CMakeLists.txt b/CMakeLists.txt index 893f6d1..a09b683 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,6 +45,7 @@ set(TARGET_C_SOURCES "BSP/Peripheral/src/ch32v30x_tim.c" "BSP/Peripheral/src/ch32v30x_usart.c" "BSP/Peripheral/src/ch32v30x_wwdg.c" + "src/board.c" "src/ch32v30x_it.c" "src/main.c" "src/syscalls.c" diff --git a/README.md b/README.md index 0956394..f7be033 100644 --- a/README.md +++ b/README.md @@ -26,10 +26,11 @@ The first file is used for CH32V303 devices, which lacks of the following periph * USBHS * DVP -** Change the startup file to the correct version for the hardware in use. ** +*** Change the startup file to the correct version for the hardware in use. *** ### Compilers -These MCUs uses something called "RISC-V4A" core with Chinese documentation provided. +These MCUs uses something called "RISC-V4F" core with Chinese documentation provided: +* Implemented RV32IMAFC ABI Here is the list of features proprietary or incompatible with upstream toolchain: * Fast IRQ handlers: uses a special attribute of `interrupt`, which value is `WCH-Interrupt-fast` \ No newline at end of file diff --git a/include/board.h b/include/board.h new file mode 100644 index 0000000..1f7acd4 --- /dev/null +++ b/include/board.h @@ -0,0 +1,4 @@ +#ifndef BOARD_H +#define BOARD_H + +#endif \ No newline at end of file diff --git a/src/board.c b/src/board.c new file mode 100644 index 0000000..518671d --- /dev/null +++ b/src/board.c @@ -0,0 +1,5 @@ +#include "ch32v30x_conf.h" + +void BOARD_LED_Init(void) { + +} \ No newline at end of file diff --git a/src/main.c b/src/main.c index 65f80a5..5e6a0da 100644 --- a/src/main.c +++ b/src/main.c @@ -2,7 +2,7 @@ #include -#include +#include "debug.h" int main(void) {