Merge pull request #603 from siddacious/SAMD51G_support
Added SAMD51G support as per issue #597
This commit is contained in:
commit
3e79638b9c
|
@ -251,7 +251,11 @@ PIN(PB07, EXTINT_CHANNEL(7), NO_ADC, ADC_INPUT(9),
|
||||||
PIN(PB08, EXTINT_CHANNEL(8), ADC_INPUT(2), ADC_INPUT(0), TOUCH(1),
|
PIN(PB08, EXTINT_CHANNEL(8), ADC_INPUT(2), ADC_INPUT(0), TOUCH(1),
|
||||||
NO_SERCOM,
|
NO_SERCOM,
|
||||||
SERCOM(4, 0),
|
SERCOM(4, 0),
|
||||||
|
#ifdef TC4
|
||||||
TC(TC4, 0),
|
TC(TC4, 0),
|
||||||
|
#else
|
||||||
|
NO_TIMER,
|
||||||
|
#endif
|
||||||
NO_TIMER,
|
NO_TIMER,
|
||||||
NO_TIMER);
|
NO_TIMER);
|
||||||
#endif
|
#endif
|
||||||
|
@ -259,7 +263,11 @@ PIN(PB08, EXTINT_CHANNEL(8), ADC_INPUT(2), ADC_INPUT(0), TOUCH(1),
|
||||||
PIN(PB09, EXTINT_CHANNEL(9), ADC_INPUT(3), ADC_INPUT(1), TOUCH(2),
|
PIN(PB09, EXTINT_CHANNEL(9), ADC_INPUT(3), ADC_INPUT(1), TOUCH(2),
|
||||||
NO_SERCOM,
|
NO_SERCOM,
|
||||||
SERCOM(4, 1),
|
SERCOM(4, 1),
|
||||||
|
#ifdef TC4
|
||||||
TC(TC4, 1),
|
TC(TC4, 1),
|
||||||
|
#else
|
||||||
|
NO_TIMER,
|
||||||
|
#endif
|
||||||
NO_TIMER,
|
NO_TIMER,
|
||||||
NO_TIMER);
|
NO_TIMER);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -119,12 +119,13 @@ safe_mode_t port_init(void) {
|
||||||
// port_pin_set_output_level(MICROPY_HW_LED1, false);
|
// port_pin_set_output_level(MICROPY_HW_LED1, false);
|
||||||
|
|
||||||
// Output clocks for debugging.
|
// Output clocks for debugging.
|
||||||
#ifdef SAMD51
|
// not supported by SAMD51G; uncomment for SAMD51J or update for 51G
|
||||||
gpio_set_pin_function(PIN_PA10, GPIO_PIN_FUNCTION_M); // GCLK4, D3
|
// #ifdef SAMD51
|
||||||
gpio_set_pin_function(PIN_PA11, GPIO_PIN_FUNCTION_M); // GCLK5, A4
|
// gpio_set_pin_function(PIN_PA10, GPIO_PIN_FUNCTION_M); // GCLK4, D3
|
||||||
gpio_set_pin_function(PIN_PB14, GPIO_PIN_FUNCTION_M); // GCLK0, D5
|
// gpio_set_pin_function(PIN_PA11, GPIO_PIN_FUNCTION_M); // GCLK5, A4
|
||||||
gpio_set_pin_function(PIN_PB15, GPIO_PIN_FUNCTION_M); // GCLK1, D6
|
// gpio_set_pin_function(PIN_PB14, GPIO_PIN_FUNCTION_M); // GCLK0, D5
|
||||||
#endif
|
// gpio_set_pin_function(PIN_PB15, GPIO_PIN_FUNCTION_M); // GCLK1, D6
|
||||||
|
// #endif
|
||||||
|
|
||||||
// Init the nvm controller.
|
// Init the nvm controller.
|
||||||
// struct nvm_config config_nvm;
|
// struct nvm_config config_nvm;
|
||||||
|
|
Loading…
Reference in New Issue