You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
358 B
C

/**
* @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_