Closed ckflight closed 4 months ago
#define ADC1_DMA_OPT 1
is a valid define.recommend inspecting some other config.h files. someone with deeper understanding will have to reply with more specifics, as i do not know all the technicals.
Check https://betaflight.com/docs/development/manufacturer/creating-configuration
Can do it manually or use
make CKFLIGHF4 EXTRA_FLAGS="-DUSE_TIMER_MAP_PRINT"
Thank you so much for your help, contributions and corrections.
I have created config.h file after completing the CUST-CKFLIGHTF4.config file. reference: https://github.com/betaflight/unified-targets/pull/1326
However, I do not fully understand the timer mapping and ADC_DMA_OPT line:
B5, B6, B7 and A2 are motor dshot pins which requires timer and dma. C8 is RGB Led strip pin which requires dshot like protocol so timer and dma is needed as well. B0 is buzzer pin which requires timer for 4KHz pwm but dma might not be needed (i did not add dma line for this)
As a result how should i set timer mapping lines for config.h file. 4th is the same number of dma pin "pin number" "number". 2nd column is the pin numbe and 1st is for indexing. 3rd column is the part i do not understand.
Also Battery and Current adc is available on board how should i set this line: