teste de publish
Dependencies: DS1820 HighSpeedAnalogIn devices mbed
serialModem.h@37:0e95c85f0160, 2018-06-07 (annotated)
- Committer:
- brunofgc
- Date:
- Thu Jun 07 16:19:52 2018 +0000
- Revision:
- 37:0e95c85f0160
- Parent:
- 14:c0162ab2a951
- Child:
- 38:07d3907b74e5
Vers?o 06/06/2018 com release ainda "mole"
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 | 37:0e95c85f0160 | 4 | #define maxBufInModem 2048 |
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 | } |