Carga Dinâmica  0.1
Sistemas de Instrumentação Electrónica
led.h
Go to the documentation of this file.
1 /* ************************************************************************** */
6 /* ************************************************************************** */
7 
8 #ifndef _LED_H /* Guard against multiple inclusion */
9 #define _LED_H
10 
11 // ****************************************************************************
12 //includes
13 #include <stdio.h>
14 #include <stdlib.h>
15 #include <stdint.h>
16 #include <xc.h>
17 
18 #include "uart.h"
19 #include "interrup.h"
20 
21 // ****************************************************************************
22 //define's
23 #define LED0 LATDbits.LATD12
24 #define LED1 LATEbits.LATE9
25 #define LED2 LATDbits.LATD2
26 #define LED3 LATAbits.LATA3
27 
28 //**************************************************************************
39 void initLed();
40 
41 //**************************************************************************
50 void debugLed();
51 
52 
53 
54 #endif /* _EXAMPLE_FILE_NAME_H */
55 
56 /* *****************************************************************************
57  End of File
58  */
Configure uart1.
void initLed()
void debugLed()
Esta função serve para testar cada led independente. Eles começam todos apagados e quando o utilizador ...
configuratoin for i2c