cpu/stm32/adc_f4: add support for stm32f7
This commit is contained in:
parent
71fe6685b5
commit
63252d17c0
@ -32,6 +32,20 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
#define STM32_BOOTLOADER_ADDR (0x1FF00000)
|
#define STM32_BOOTLOADER_ADDR (0x1FF00000)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Override the ADC resolution configuration
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
#define HAVE_ADC_RES_T
|
||||||
|
typedef enum {
|
||||||
|
ADC_RES_6BIT = 0x03000000, /**< ADC resolution: 6 bit */
|
||||||
|
ADC_RES_8BIT = 0x02000000, /**< ADC resolution: 8 bit */
|
||||||
|
ADC_RES_10BIT = 0x01000000, /**< ADC resolution: 10 bit */
|
||||||
|
ADC_RES_12BIT = 0x00000000, /**< ADC resolution: 12 bit */
|
||||||
|
ADC_RES_14BIT = 1, /**< ADC resolution: 14 bit (not supported) */
|
||||||
|
ADC_RES_16BIT = 2 /**< ADC resolution: 16 bit (not supported)*/
|
||||||
|
} adc_res_t;
|
||||||
|
/** @} */
|
||||||
#endif /* ndef DOXYGEN */
|
#endif /* ndef DOXYGEN */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
@ -11,8 +11,12 @@ endif
|
|||||||
|
|
||||||
# Select the specific implementation for `periph_adc`
|
# Select the specific implementation for `periph_adc`
|
||||||
ifneq (,$(filter periph_adc,$(USEMODULE)))
|
ifneq (,$(filter periph_adc,$(USEMODULE)))
|
||||||
|
ifneq (,$(filter $(CPU_FAM),f4 f7))
|
||||||
|
SRC += adc_f4_f7.c
|
||||||
|
else
|
||||||
SRC += adc_$(CPU_FAM).c
|
SRC += adc_$(CPU_FAM).c
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# Select the correct implementation for `periph_gpio`
|
# Select the correct implementation for `periph_gpio`
|
||||||
ifneq (,$(filter periph_gpio,$(USEMODULE)))
|
ifneq (,$(filter periph_gpio,$(USEMODULE)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user