Updated README.

This commit is contained in:
imi415 2022-03-29 16:19:12 +08:00
parent b5badc857a
commit 83a9bbbc96
Signed by untrusted user: imi415
GPG Key ID: 885EC2B5A8A6F8A7
5 changed files with 14 additions and 3 deletions

View File

@ -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"

View File

@ -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`

4
include/board.h Normal file
View File

@ -0,0 +1,4 @@
#ifndef BOARD_H
#define BOARD_H
#endif

5
src/board.c Normal file
View File

@ -0,0 +1,5 @@
#include "ch32v30x_conf.h"
void BOARD_LED_Init(void) {
}

View File

@ -2,7 +2,7 @@
#include <stdio.h>
#include <debug.h>
#include "debug.h"
int main(void) {