issues
search
hydrausb3
/
hydrausb3_fw
HydraUSB3 (WCH CH569) open source test firmware / examples / libraries to experiment with streaming / high-speed protocols (USB2 HS, USB3 SS, HSPI, SerDes...)
Apache License 2.0
75
stars
12
forks
source link
Refactor/Cleanup code
#4
Closed
bvernoux
closed
2 years ago
bvernoux
commented
2 years ago
Refactor following parts:
[x] Refactor all Base types in
SRC/Peripheral/inc/CH56xSFR.h
(see commit
https://github.com/hydrausb3/hydrausb3_fw/commit/49cf0c6f4c391e08515409a72cd2f30622650dbd
)
[x] Base types be replaced by equivalent stdint.h uint8_t ...
[x] Refactor all types (in all
.c /
.h) not respecting stdint.h uint8_t ... (like UINT8...)
[x] Refactor of SRC/Peripheral/CH56x_debug_log.c / .h (see commits up to
https://github.com/hydrausb3/hydrausb3_fw/commit/cae5f2a4f4b0609d8d75f1b82457dc1870a6f9ff
)
[x] debug_log_buf & debug_log_buf_idx to be passed as parameter in log_init()
[x] log_printf()/cprintf() disable/enable interrupts to be used in main code or IRQ
Refactor following parts: