You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
362 B
21 lines
362 B
9 years ago
|
#pragma once
|
||
|
#include "common.h"
|
||
|
|
||
|
// don't forget to implement the handler:
|
||
|
// void SysTick_Handler(void)
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Set up and start systick
|
||
|
* @param prescaller divider (eg. for 1ms @ 16MHz: 16000)
|
||
|
*/
|
||
|
void systick_setup(uint32_t prescaller);
|
||
|
|
||
|
|
||
|
/** Enable (start) systick */
|
||
|
void systick_enable(void);
|
||
|
|
||
|
|
||
|
/** Disable (stop) systick */
|
||
|
void systick_disable(void);
|