1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #18688 from benpicco/cpu/sam0_common-muxpos

cpu/sam0_common: ADC keep muxpos as legacy define
This commit is contained in:
Dylan Laduranty 2022-10-05 16:56:26 +02:00 committed by GitHub
commit 1a1b41bea5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -772,7 +772,11 @@ static inline bool cpu_woke_from_backup(void)
* @brief ADC Channel Configuration
*/
typedef struct {
uint32_t inputctrl; /**< ADC channel pin multiplexer value */
union {
uint32_t inputctrl; /**< ADC channel pin multiplexer value */
uint32_t muxpos; /**< ADC channel pin multiplexer value
@deprecated, use inputctrl instead */
};
#ifdef ADC0
Adc *dev; /**< ADC device descriptor */
#endif