GlobLib
HAL and API libraries for MCUs and hardware.
attiny13a_clock.h
Go to the documentation of this file.
1 #ifndef ATTINY13A_CLOCK_H_
2 #define ATTINY13A_CLOCK_H_
3 
53 #include "attiny13a_gpio.h"
54 #include "attiny13a_debug.h"
55 
56 #define CLOCK_BASE 9.6e6
57 #define CLOCK_DIV_64 F_CPU/64
58 #define CLOCK_DIV_1024 F_CPU/1024
59 
60 
66 uint32_t CLOCK_getSpeed(void);
81 uint8_t CLOCK_getSpeedAlternate(void);
84 #endif
Header file for attiny13a DEBUG.
Header file for attiny13a GPIO.
uint8_t CLOCK_getSpeedAlternate(void)
Get the current clock divisor.
uint32_t CLOCK_getSpeed(void)
Get the current clock speed of the device.