GlobLib
HAL and API libraries for MCUs and hardware.
attiny13a_clock.c
Go to the documentation of this file.
1 
17 #include "attiny13a_clock.h"
18 
19 uint32_t CLOCK_getSpeed(void){
20 
21  //F_CPU is part of the avr header and is set in the makefile.
22  //It should only be changed if the fuses are changed
23  return F_CPU;
24 }
25 
27 
28  return CLOCK_BASE / F_CPU ;
29 }
Header file for attiny13a CLOCK.
uint8_t CLOCK_getSpeedAlternate(void)
Get the current clock divisor.
uint32_t CLOCK_getSpeed(void)
Get the current clock speed of the device.
#define CLOCK_BASE
Maximum clock speed for internal RC oscillator.