Refactor/Cleanup code
bvernoux opened this issue · comments
Benjamin Vernoux commented
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