diff options
Diffstat (limited to 'src/atsamd/spi.c')
-rw-r--r-- | src/atsamd/spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/atsamd/spi.c b/src/atsamd/spi.c index 12c7d680..9c82de1b 100644 --- a/src/atsamd/spi.c +++ b/src/atsamd/spi.c @@ -20,7 +20,7 @@ spi_init(uint32_t ctrla, uint32_t baud) have_run_init = 1; // Setup clock - enable_pclock(SERCOM4_GCLK_ID_CORE, PM_APBCMASK_SERCOM4); + enable_pclock(SERCOM4_GCLK_ID_CORE, ID_SERCOM4); // Configure MISO, MOSI, SCK pins gpio_peripheral(GPIO('A', 12), 'D', 0); |