diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-01-15 10:12:32 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-01-28 20:02:16 -0500 |
commit | 40b5de168048e88e6ded1259a18fb2830e8c149e (patch) | |
tree | 5b729eac15b43476169d818e0d328fc6e24ef071 /src/atsamd/i2c.c | |
parent | ed1334c24bc40f4baf370462496787b9ff2d703d (diff) | |
download | kutter-40b5de168048e88e6ded1259a18fb2830e8c149e.tar.gz kutter-40b5de168048e88e6ded1259a18fb2830e8c149e.tar.xz kutter-40b5de168048e88e6ded1259a18fb2830e8c149e.zip |
atsamd: Pass the power management id to enable_pclock()
Pass the power management id instead of the APBCMASK bit to the
enable_pclock() function.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/atsamd/i2c.c')
-rw-r--r-- | src/atsamd/i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/atsamd/i2c.c b/src/atsamd/i2c.c index 801c0e32..71376322 100644 --- a/src/atsamd/i2c.c +++ b/src/atsamd/i2c.c @@ -23,7 +23,7 @@ i2c_init(void) have_run_init = 1; // Setup clock - enable_pclock(SERCOM3_GCLK_ID_CORE, PM_APBCMASK_SERCOM3); + enable_pclock(SERCOM3_GCLK_ID_CORE, ID_SERCOM3); // Configure SDA, SCL pins gpio_peripheral(GPIO('A', 22), 'C', 0); |