libpic170x  0.2
Ease of use library for PIC16(L)1705/1709 chips
timer0.h
Go to the documentation of this file.
1 /*
2  Copyright 2018 Paul Konstantin Gerke
3 
4  Licensed under the Apache License, Version 2.0 (the "License");
5  you may not use this file except in compliance with the License.
6  You may obtain a copy of the License at
7 
8  http://www.apache.org/licenses/LICENSE-2.0
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15  */
16 
38 #ifndef TIMER0_H
39 #define TIMER0_H
40 
41 #include <stdlib.h>
42 #include <stdint.h>
43 
49 typedef struct {
52  uint32_t ms;
56  uint16_t us;
57 } Timer0;
58 
63 extern Timer0 pic170x_timer0;
64 
79 void timer0_init(Timer0 *timer0);
80 
93 void timer0_ih(Timer0* timer0);
94 
95 #endif /* TIMER0_H */
96 
Timer0 pic170x_timer0
Definition: timer0.c:22
void timer0_ih(Timer0 *timer0)
Definition: timer0.c:40
void timer0_init(Timer0 *timer0)
Definition: timer0.c:24
uint16_t us
Definition: timer0.h:56
Definition: timer0.h:49
uint32_t ms
Definition: timer0.h:52