aboutsummaryrefslogtreecommitdiffstats
path: root/include/clock.h
blob: 77ab7e921a309a8aece8a846a4004a911e4406e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
 * @file clock.h
 * Basic clock utilities
 */

#ifndef CLOCK_H_
#define CLOCK_H_

#include <stdint.h>

/**
 * Sets HCLK (system clock) to 80MHz, the maximum.
 * @param none
 */
extern void clock_init(void);

/**
 * Sleeps for given amount of milliseconds.
 * @param ms number of milliseconds to sleep for
 */
void delay(uint32_t ms);

#endif // CLOCK_H_