summaryrefslogtreecommitdiff
path: root/atmel-samd/main.c
diff options
context:
space:
mode:
authorTony DiCola <tony@tonydicola.com>2016-10-13 04:59:43 +0000
committerTony DiCola <tony@tonydicola.com>2016-10-13 04:59:43 +0000
commit903bc8d04edef0e60fd755e8b9e46ef6a8ec2584 (patch)
treee2273674fa85bb3f848abbf20eb1ca50d1562f15 /atmel-samd/main.c
parent011056af15f6107b9ef35fdf19a3f715b55f55d5 (diff)
atmel-samd: Implement time.ticks_ms function using SysTick timer, add global interrupt enable/disable functions.
Diffstat (limited to 'atmel-samd/main.c')
-rw-r--r--atmel-samd/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/atmel-samd/main.c b/atmel-samd/main.c
index d04983afe..77a0f53fd 100644
--- a/atmel-samd/main.c
+++ b/atmel-samd/main.c
@@ -316,6 +316,9 @@ void samd21_init(void) {
board_init();
+ // SysTick millisecond timer initialization.
+ SysTick_Config(system_cpu_clock_get_hz() / 1000);
+
// Uncomment to init PIN_PA17 for debugging.
// struct port_config pin_conf;
// port_get_config_defaults(&pin_conf);