Major change for adding funconfig.
* No more needing to decide between printf and UART in code. * Better debugprintf input * Unified code for all clock sources. * TINYVECTOR now saves like another 120 bytes of space. * None of the `Makefile`s except `bootloader` need anything extra * All configuration via `funconfig.h` * Sane defaults. * `SystemInit()` also initializes debugging (UART or SWIO depending on configuration) * Tunable timeout on debug printf. * Configurable UART baud rate. * `funconfig.h` is automatically included by `ch32v003fun.h` * Paves the way for other, non-003 processors.
Showing
- ch32v003fun/ch32v003fun.c 96 additions, 64 deletionsch32v003fun/ch32v003fun.c
- ch32v003fun/ch32v003fun.h 109 additions, 68 deletionsch32v003fun/ch32v003fun.h
- examples/GPIO/GPIO.c 1 addition, 5 deletionsexamples/GPIO/GPIO.c
- examples/GPIO/Makefile 0 additions, 3 deletionsexamples/GPIO/Makefile
- examples/GPIO/funconfig.h 8 additions, 0 deletionsexamples/GPIO/funconfig.h
- examples/MCOtest/MCOtest.c 1 addition, 2 deletionsexamples/MCOtest/MCOtest.c
- examples/MCOtest/Makefile 0 additions, 2 deletionsexamples/MCOtest/Makefile
- examples/MCOtest/funconfig.h 8 additions, 0 deletionsexamples/MCOtest/funconfig.h
- examples/adc_dma_opamp/Makefile 0 additions, 2 deletionsexamples/adc_dma_opamp/Makefile
- examples/adc_dma_opamp/adc_dma_opamp.c 1 addition, 6 deletionsexamples/adc_dma_opamp/adc_dma_opamp.c
- examples/adc_dma_opamp/funconfig.h 7 additions, 0 deletionsexamples/adc_dma_opamp/funconfig.h
- examples/adc_polled/Makefile 0 additions, 2 deletionsexamples/adc_polled/Makefile
- examples/adc_polled/adc_polled.c 1 addition, 7 deletionsexamples/adc_polled/adc_polled.c
- examples/adc_polled/funconfig.h 7 additions, 0 deletionsexamples/adc_polled/funconfig.h
- examples/blink/blink.bin 0 additions, 0 deletionsexamples/blink/blink.bin
- examples/blink/blink.c 1 addition, 4 deletionsexamples/blink/blink.c
- examples/blink/funconfig.h 7 additions, 0 deletionsexamples/blink/funconfig.h
- examples/bootload/bootload.c 2 additions, 2 deletionsexamples/bootload/bootload.c
- examples/bootload/funconfig.h 8 additions, 0 deletionsexamples/bootload/funconfig.h
- examples/cpp_virtual_methods/Makefile 2 additions, 2 deletionsexamples/cpp_virtual_methods/Makefile
Loading
Please register or sign in to comment