diff options
| author | mux <freelancer.c@gmail.com> | 2014-01-14 19:57:51 +0200 |
|---|---|---|
| committer | mux <freelancer.c@gmail.com> | 2014-01-14 19:57:51 +0200 |
| commit | 3591285091c781f8c25115660d53873af04e3bf6 (patch) | |
| tree | 93df6658ed7570abc69510e7c5be765ce2c40eb3 /stm/adc.h | |
| parent | b4e374f1389a7be114594a50681a767d30b8ae2d (diff) | |
Implement initial ADC support
* Add simple ADC driver, with support for ADC1 and all channels.
* Export MicroPython ADC object with read_channel function.
* Add stm32f4xx_adc.c and adc.c to Makefile.
Diffstat (limited to 'stm/adc.h')
| -rw-r--r-- | stm/adc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stm/adc.h b/stm/adc.h new file mode 100644 index 000000000..5805aef42 --- /dev/null +++ b/stm/adc.h @@ -0,0 +1 @@ +mp_obj_t pyb_ADC(mp_obj_t resolution); |
