Skip to content

Commit

Permalink
boards/samd5x: GCLK source for ADC must not exceed 100 MHz
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Oct 22, 2024
1 parent 33b1cac commit 419fc6e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ extern "C" {
*/

/* ADC Default values */
#define ADC_PRESCALER ADC_CTRLA_PRESCALER_DIV128
#define ADC_GCLK_SRC SAM0_GCLK_PERIPH /**< clock used for ADC */
#define ADC_PRESCALER ADC_CTRLA_PRESCALER_DIV8

#define ADC_NEG_INPUT ADC_INPUTCTRL_MUXNEG(0x18u)
#define ADC_REF_DEFAULT ADC_REFCTRL_REFSEL_INTVCC1
Expand Down
3 changes: 2 additions & 1 deletion boards/adafruit-itsybitsy-m4/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ static const sam0_common_usb_config_t sam_usbdev_config[] = {
*/

/* ADC Default values */
#define ADC_PRESCALER ADC_CTRLA_PRESCALER_DIV128
#define ADC_GCLK_SRC SAM0_GCLK_PERIPH /**< clock used for ADC */
#define ADC_PRESCALER ADC_CTRLA_PRESCALER_DIV8

#define ADC_NEG_INPUT ADC_INPUTCTRL_MUXNEG(0x18u)
#define ADC_REF_DEFAULT ADC_REFCTRL_REFSEL_INTVCC1
Expand Down
3 changes: 2 additions & 1 deletion boards/adafruit-pybadge/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ static const sam0_common_usb_config_t sam_usbdev_config[] = {
*/

/* ADC Default values */
#define ADC_PRESCALER ADC_CTRLA_PRESCALER_DIV128
#define ADC_GCLK_SRC SAM0_GCLK_PERIPH /**< clock used for ADC */
#define ADC_PRESCALER ADC_CTRLA_PRESCALER_DIV8

#define ADC_NEG_INPUT ADC_INPUTCTRL_MUXNEG(0x18u)
#define ADC_REF_DEFAULT ADC_REFCTRL_REFSEL_INTVCC1
Expand Down
3 changes: 2 additions & 1 deletion boards/same54-xpro/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ static const sam0_common_usb_config_t sam_usbdev_config[] = {
*/

/* ADC Default values */
#define ADC_PRESCALER ADC_CTRLA_PRESCALER_DIV128
#define ADC_GCLK_SRC SAM0_GCLK_PERIPH /**< clock used for ADC */
#define ADC_PRESCALER ADC_CTRLA_PRESCALER_DIV8

#define ADC_NEG_INPUT ADC_INPUTCTRL_MUXNEG(0x18u)
#define ADC_REF_DEFAULT ADC_REFCTRL_REFSEL_INTVCC1
Expand Down

0 comments on commit 419fc6e

Please sign in to comment.