]> rtime.felk.cvut.cz Git - mirosot.git/blob - bth_tests/bluetooth/fake_pkt_controll.c
Added bth_test application. Not finished.
[mirosot.git] / bth_tests / bluetooth / fake_pkt_controll.c
1 /*******************************************************************
2   bluetooth library
3
4   h2638_pkt_control.c - fce for TPU operation
5
6   Copyright (C) 2006 by Petr Kovacik petr_kovacik@gmail.com
7
8  *******************************************************************/
9
10 #include <stdlib.h>
11 #include "hci.h"
12 #include "bth_h8s2638.h"
13
14
15 long int timer;
16
17 /**
18  * Starts TPU channel 1
19 */
20 void bth_start_TPU_counter(void)
21 {
22 };
23
24
25 /**
26  * Stop TPU 1
27  */
28 void bth_stop_TPU_counter(void)
29 {
30 };
31
32
33 /**
34  * Reset TPU 1
35  */
36 void bth_clear_TPU_counter(void)
37 {
38 };
39
40 /**
41  * Returns the number of timer interrupts
42  */
43 long int bth_get_timer(void)
44 {
45   return timer;
46 };
47
48 /**
49  * Zeroes the timer variable
50  */
51 void bth_nul_timer(void)
52 {
53   timer=0;
54 };
55
56
57 /**
58  * Timer initialization - HW 1-timer overflow; 2-???Dosazeni citace hodnoty TIER1_TGIEAm
59  */
60 void bth_init_pkt_controll(void)
61 {
62 };
63