STM32: analog_out: generalize code for multiple instance handling
Moving some code in common to be able to manage several ADC instances,
or several channels of an instance.

The change involves:
- moving dac_s structure definition to common_object.h
- create TARGET_STM/analogout_api.c and move fully common analog_out
functions in there
- rename analogout_api.c of each target family into analogout_device.c
to keep platform specific code
- update analogout_device.c to rely on obj->handle and obj->channel
- align analogout_init function as much as possible between families in
analogout_device.c files
ls
1 parent b51d676 commit 024b3da5f187a26198c0d8910bac82386449401b
@Laurent MEUNIER Laurent MEUNIER authored on 12 Jun 2017
Showing 60 changed files
View
targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/objects.h
View
targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/objects.h
View
targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/objects.h
View
targets/TARGET_STM/TARGET_STM32F0/analogout_api.c 100644 → 0
View
targets/TARGET_STM/TARGET_STM32F0/analogout_device.c 0 → 100644
View
targets/TARGET_STM/TARGET_STM32F0/common_objects.h
View
targets/TARGET_STM/TARGET_STM32F2/analogout_api.c 100644 → 0
View
targets/TARGET_STM/TARGET_STM32F2/analogout_device.c 0 → 100644
View
targets/TARGET_STM/TARGET_STM32F2/objects.h
View
targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F302x8/objects.h
View
targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303x8/objects.h
View
targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xC/objects.h
View
targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xE/objects.h
View
targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F334x8/objects.h
View
targets/TARGET_STM/TARGET_STM32F3/analogout_api.c 100644 → 0
View
targets/TARGET_STM/TARGET_STM32F3/analogout_device.c 0 → 100644
View
targets/TARGET_STM/TARGET_STM32F3/common_objects.h
View
targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/objects.h
View
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407xG/objects.h
View
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F410xB/objects.h
View
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F429xI/objects.h
View
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F437xG/objects.h
View
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/objects.h
View
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F446xE/objects.h
View
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F469xI/objects.h
View
targets/TARGET_STM/TARGET_STM32F4/analogout_api.c 100644 → 0
View
targets/TARGET_STM/TARGET_STM32F4/analogout_device.c 0 → 100644
View
targets/TARGET_STM/TARGET_STM32F4/common_objects.h
View
targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/objects.h
View
targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F756xG/objects.h
View
targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F767xI/objects.h
View
targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F769xI/objects.h
View
targets/TARGET_STM/TARGET_STM32F7/analogout_api.c 100644 → 0
View
targets/TARGET_STM/TARGET_STM32F7/analogout_device.c 0 → 100644
View
targets/TARGET_STM/TARGET_STM32F7/common_objects.h
View
targets/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/objects.h
View
targets/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L072CZ_LRWAN1/objects.h
View
targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/objects.h
View
targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/objects.h
View
targets/TARGET_STM/TARGET_STM32L0/analogout_api.c 100644 → 0
View
targets/TARGET_STM/TARGET_STM32L0/analogout_device.c 0 → 100644
View
targets/TARGET_STM/TARGET_STM32L0/common_objects.h
View
targets/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/PeripheralPins.c
View
targets/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/objects.h
View
targets/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/PeripheralPins.c
View
targets/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/objects.h
View
targets/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/PeripheralPins.c
View
targets/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/objects.h
View
targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/PeripheralPins.c
View
targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/objects.h
View
targets/TARGET_STM/TARGET_STM32L1/analogout_api.c 100644 → 0
View
targets/TARGET_STM/TARGET_STM32L1/analogout_device.c 0 → 100644
View
targets/TARGET_STM/TARGET_STM32L1/common_objects.h
View
targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L432xC/objects.h
View
targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/objects.h
View
targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L486xG/objects.h
View
targets/TARGET_STM/TARGET_STM32L4/analogout_api.c 100644 → 0
View
targets/TARGET_STM/TARGET_STM32L4/analogout_device.c 0 → 100644
View
targets/TARGET_STM/TARGET_STM32L4/common_objects.h
View
targets/TARGET_STM/analogout_api.c 0 → 100644