GlobLib
HAL and API libraries for MCUs and hardware.
Main Page
Common
ATTINY13A
STM32F103CB
Modules
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
26
uint8_t
CLOCK_getSpeedAlternate
(
void
){
27
28
return
CLOCK_BASE
/ F_CPU ;
29
}
attiny13a_clock.h
Header file for attiny13a CLOCK.
CLOCK_getSpeedAlternate
uint8_t CLOCK_getSpeedAlternate(void)
Get the current clock divisor.
Definition:
attiny13a_clock.c:26
CLOCK_getSpeed
uint32_t CLOCK_getSpeed(void)
Get the current clock speed of the device.
Definition:
attiny13a_clock.c:19
CLOCK_BASE
#define CLOCK_BASE
Maximum clock speed for internal RC oscillator.
Definition:
attiny13a_clock.h:56
lib
attiny13a_clock.c
Generated by
1.8.11