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...)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactor/Cleanup code

bvernoux opened this issue · comments

Refactor following parts:

  • Refactor all Base types in SRC/Peripheral/inc/CH56xSFR.h (see commit 49cf0c6)
    • Base types be replaced by equivalent stdint.h uint8_t ...
    • Refactor all types (in all *.c / *.h) not respecting stdint.h uint8_t ... (like UINT8...)
  • Refactor of SRC/Peripheral/CH56x_debug_log.c / .h (see commits up to cae5f2a)
    • debug_log_buf & debug_log_buf_idx to be passed as parameter in log_init()
    • log_printf()/cprintf() disable/enable interrupts to be used in main code or IRQ