Flipklok
 
Loading...
Searching...
No Matches
timer.h
Go to the documentation of this file.
1/*
2 * timer.h
3 *
4 * Created on: 20 mrt. 2025
5 */
6
7#ifndef TIMER_H_
8#define TIMER_H_
9#include <msp430.h>
10#include "stepperAdvance.h"
11#include "adc.h"
12
13#define clockFreq 32768
14#define capacityTimer 65536
15#define timerDiv 1
16#define timerLength_ms (capacityTimer / timerLength_cycles * 1000)
17#define pwmPeriod_cycles 32 //(about 1 ms)
18
19
20void setupTimer0();
21void setupTimer1();
22
23void wakeUpTimer0();
24void sleepTimer0();
25#endif /* TIMER_H_ */
void setupTimer1()
Definition timer.c:114
void setupTimer0()
Definition timer.c:26
void sleepTimer0()
Definition timer.c:36
void wakeUpTimer0()
Definition timer.c:43