teste de publish
Dependencies: DS1820 HighSpeedAnalogIn devices mbed
serialModem.h@38:07d3907b74e5, 2018-06-08 (annotated)
- Committer:
- brunofgc
- Date:
- Fri Jun 08 22:14:21 2018 +0000
- Revision:
- 38:07d3907b74e5
- Parent:
- 37:0e95c85f0160
teste de publish para compilar no mbed-cli
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 | 38:07d3907b74e5 | 4 | #define maxBufInModem 1400 |
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 | } |