libopencm3/examples/stm32/f1/other/adc_temperature_sensor
Ken Sarkies 7d0611609b Code changes to stm32f1 adc.c and adc.h
remove rcc_set_adc_clk - use rcc version
Added functions:
 - adc_power_on
 - adc_start_conversion_direct
 - adc_set_dual_mode
 - adc_eoc
 - adc_eoc_injected
 - adc_read_regular
 - adc_read_injected
 - adc_set_injected_offset
Tested dual mode scanned regular, but no tests of injected yet.
Changes: "discontinuous" was misspelled.
 - adc_set_discontinuous_mode_regular - added "length" parameter
 - adc_disable_discontinuous_mode_regular - name change
 - adc_enable_discontinuous_mode_injected - name change
 - adc_enable_automatic_injected_group_conversion - disable triggers
 - adc_enable_jeoc_interrupt - name change to match common usage in lib
 - adc_disable_jeoc_interrupt - ditto
 - adc_enable_external_trigger_regular - remove incorrect test on parameter
 - adc_enable_external_trigger_injected - ditto
 - adc_set_sample_time - name change to match function's purpose
 - adc_set_conversion_time_on_all_channels - ditto
 - adc_set_injected_sequence - changed order of register loading (ref Barlow's issue)
 - adc_enable_analog_watchdog_on_all_channels - flipped AWDSGL
 - adc_enable_analog_watchdog_on_selected_channel - ditto
added aliases for expected commonly used functions to avoid sudden user code breakage

In adc.h, corrected errors in SQR names
added "deprecated" compiler warnings to adc_on and to aliases defined in adc.c
2012-10-05 13:50:42 +09:30
..
Makefile License change of the library to LGPL, version 3 or later. 2012-03-02 14:44:49 -08:00
README other/adc_temperature_sensor: Cosmetics. 2011-11-12 17:53:05 +01:00
adc.c Code changes to stm32f1 adc.c and adc.h 2012-10-05 13:50:42 +09:30
adc.ld License change of the library to LGPL, version 3 or later. 2012-03-02 14:44:49 -08:00

README

------------------------------------------------------------------------------
README
------------------------------------------------------------------------------

This example program sends some characters on USART1.
Afterwards it read out the internal temperature sensor of the STM32 and
sends the value read out from the ADC to the USART1.

The terminal settings for the receiving device/PC are 115200 8n1.