Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
launchpad.h File Reference
#include <stdio.h>
#include <adc.h>
Include dependency graph for launchpad.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BOTAO   BIT3
 
#define APERTA   1
 
#define SOLTA   0
 
#define LED1   BIT0
 
#define LED2   BIT6
 
#define VERM   BIT0
 
#define VERD   BIT6
 
#define ALTO   1
 
#define BAIXO   0
 
#define PIN_TX   BIT1
 
#define PIN_RX   BIT2
 
#define T_100US   100 /* 100us period*/
 

Functions

void desabWDT ()
 Desable Watchdog. More...
 
void botao ()
 Enable the button. More...
 
void hled (unsigned char numled)
 Enable LED. More...
 
char readbotao ()
 
void waitbton (unsigned char sinal)
 
void ligled (char numled)
 
void desled (char numled)
 
void alterled (unsigned volatile numled)
 
void dly_coxa (int numcic)
 
void dco1mhz ()
 
void hserial ()
 
char getchar ()
 
int putchar (int caracter)
 
void wsserial (char *st)
 
void setMultitimes ()
 

Macro Definition Documentation

#define ALTO   1

Definition at line 16 of file launchpad.h.

#define APERTA   1

Definition at line 6 of file launchpad.h.

#define BAIXO   0

Definition at line 17 of file launchpad.h.

#define BOTAO   BIT3

Definition at line 5 of file launchpad.h.

#define LED1   BIT0

Definition at line 10 of file launchpad.h.

#define LED2   BIT6

Definition at line 11 of file launchpad.h.

#define PIN_RX   BIT2

Definition at line 21 of file launchpad.h.

#define PIN_TX   BIT1

Definition at line 20 of file launchpad.h.

#define SOLTA   0

Definition at line 7 of file launchpad.h.

#define T_100US   100 /* 100us period*/

Definition at line 25 of file launchpad.h.

#define VERD   BIT6

Definition at line 14 of file launchpad.h.

#define VERM   BIT0

Definition at line 13 of file launchpad.h.

Function Documentation

void alterled ( unsigned volatile  numled)

Definition at line 76 of file launchpad.c.

void botao ( )

Enable the button.

Enable the button without the interruption support

Definition at line 18 of file launchpad.c.

void dco1mhz ( )

Definition at line 95 of file launchpad.c.

void desabWDT ( )

Desable Watchdog.

Call to desable the Whatchdog

Definition at line 9 of file launchpad.c.

void desled ( char  numled)

Definition at line 70 of file launchpad.c.

void dly_coxa ( int  numcic)

Definition at line 82 of file launchpad.c.

char getchar ( )
void hled ( unsigned char  numled)

Enable LED.

Enable LED n, making this port a output port

Parameters
numledLED to be enabled. Can assume the values:
  • LED1
  • LED2

Definition at line 33 of file launchpad.c.

void hserial ( )
void ligled ( char  numled)

Definition at line 64 of file launchpad.c.

int putchar ( int  caracter)
char readbotao ( )

Definition at line 40 of file launchpad.c.

void setMultitimes ( )
void waitbton ( unsigned char  sinal)

Definition at line 53 of file launchpad.c.

void wsserial ( char *  st)