teste de publish
Dependencies: DS1820 HighSpeedAnalogIn devices mbed
serialModem.h@14:c0162ab2a951, 2017-11-09 (annotated)
- Committer:
- brunofgc
- Date:
- Thu Nov 09 12:53:41 2017 +0000
- Revision:
- 14:c0162ab2a951
- Parent:
- 4:13ff9c81dc10
- Child:
- 37:0e95c85f0160
vers?o com bootloader
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
brunofgc | 0:1c0a769988ee | 1 | #include "mbed.h" |
brunofgc | 0:1c0a769988ee | 2 | #include "cmsis_os.h" //Nucleo do Real Time Operational System |
brunofgc | 0:1c0a769988ee | 3 | #include "main.h" //Funções e variáveis globais |
brunofgc | 14:c0162ab2a951 | 4 | #define maxBufInModem 1900 |
brunofgc | 0:1c0a769988ee | 5 | #define maxBufOutModem 512 |
brunofgc | 0:1c0a769988ee | 6 | |
brunofgc | 0:1c0a769988ee | 7 | namespace serialModem{ |
brunofgc | 0:1c0a769988ee | 8 | //variáveis |
brunofgc | 0:1c0a769988ee | 9 | extern osTimerId timer_pacote; //ticker timer (Timer recursivo ISR) que processa pacotes entrantes da serial PC. |
brunofgc | 0:1c0a769988ee | 10 | extern bool startTimer_pacote; |
brunofgc | 14:c0162ab2a951 | 11 | extern bool processarPacote; |
brunofgc | 0:1c0a769988ee | 12 | |
brunofgc | 0:1c0a769988ee | 13 | //funções |
brunofgc | 0:1c0a769988ee | 14 | void serial_init(); //Função que faz a inicialização do recurso serial uart modem |
brunofgc | 0:1c0a769988ee | 15 | void isr_serial(); //Função que processa os caracteres entrantes da uart modem |
brunofgc | 0:1c0a769988ee | 16 | void chamaProcessaPacote(void const *); |
brunofgc | 0:1c0a769988ee | 17 | void configBaud(); |
brunofgc | 0:1c0a769988ee | 18 | } |