Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
launchpad.h
Go to the documentation of this file.
1 #ifndef _H_LAUNCHPAD
2 #define _H_LAUNCHPAD
3 
4 /* defines do botão s2 da launchpad */
5 #define BOTAO BIT3
6 #define APERTA 1
7 #define SOLTA 0
8 
9 /* defines do led */
10 #define LED1 BIT0
11 #define LED2 BIT6
12 
13 #define VERM BIT0
14 #define VERD BIT6
15 
16 #define ALTO 1
17 #define BAIXO 0
18 
19 /* defines serial uart */
20 #define PIN_TX BIT1
21 #define PIN_RX BIT2
22 
23 //<<<<<<< HEAD
24 // defines timer
25 #define T_100US 100 /* 100us period*/
26 
27 //=======
28 #include <stdio.h>
29 #include <adc.h>
30 //>>>>>>> ba77d88a5df4e5eb8f02948ffb69751eea2dfb1b
31 
32 /* Desabilita WDT */
33 extern
34 void desabWDT();
35 
36 /* habilita botão sem interrupção */
37 extern
38 void botao();
39 
40 /* habilitar led n */
41 extern
42 void hled(unsigned char numled);
43 
44 /* sensibilidade ao botão */
45 extern
46 char readbotao();
47 
48 /* Esperar equanto botão não/é pressionado */
49 extern
50 void waitbton(unsigned char sinal);
51 
52 /* Acender led */
53 extern
54 void ligled(char numled);
55 
56 /* Apagar led */
57 extern
58 void desled(char numled);
59 
60 /* Alternar led */
61 extern
62 void alterled(unsigned volatile numled);
63 
64 /* delay coxa! -- count 1000 */
65 extern
66 void dly_coxa(int numcic);
67 
68 /* configurar clock em 1MHz */
69 extern
70 void dco1mhz();
71 
72 extern
73 void hserial();
74 
75 /* le um char da uart */
76 extern
77 char getchar();
78 
79 extern
80 int putchar(int caracter);
81 
82 extern
83 void wsserial(char *st);
84 
85 void setMultitimes();
86 
87 #endif
88 
void ligled(char numled)
Definition: launchpad.c:64
void desabWDT()
Desable Watchdog.
Definition: launchpad.c:9
void alterled(unsigned volatile numled)
Definition: launchpad.c:76
void hled(unsigned char numled)
Enable LED.
Definition: launchpad.c:33
void desled(char numled)
Definition: launchpad.c:70
void hserial()
void dco1mhz()
Definition: launchpad.c:95
void wsserial(char *st)
void botao()
Enable the button.
Definition: launchpad.c:18
void dly_coxa(int numcic)
Definition: launchpad.c:82
char getchar()
void setMultitimes()
void waitbton(unsigned char sinal)
Definition: launchpad.c:53
char readbotao()
Definition: launchpad.c:40
int putchar(int caracter)