Chibios ADC setup for ATSAM3S
Posted: Wed Mar 13, 2019 2:03 am
This is my first attempt at using ChibiOS (any RTOS for that matter), so please bare with me. I am looking for support on how to get the ADC configured to simply read the voltage of a proximity sensor. I am using a Matrix Creator board, which contains a ATSAM3S2C MCU running ChibiOS (kernel 2.4.2). I have been digging through the source files and found the adc_lld template files. Do I need to write my ads_lld.c file for my specific MCU? Or Does ChibiOS already have some code developed to setup the ADC? Any help is greatly appreciated!