protegemed, aquisição via A/D simples utilizando interrupção do timer
Dependencies: EthernetInterface NTPClient mbed-rtos mbed
Fork of ptgm_semDMA by
Codes/TelnetCommands/telnet_reset.cpp@1:8129536051df, 2016-01-13 (annotated)
- Committer:
- viniciushl
- Date:
- Wed Jan 13 18:53:25 2016 +0000
- Revision:
- 1:8129536051df
- Parent:
- 0:fac116e94d44
Alterada captura para aquisi??o simples do A/D utilizando interrup??o do timer;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rebonatto | 0:fac116e94d44 | 1 | #include "TelnetServer.h" |
rebonatto | 0:fac116e94d44 | 2 | #include "Pmed_reset.h" |
rebonatto | 0:fac116e94d44 | 3 | |
rebonatto | 0:fac116e94d44 | 4 | char *header_msg_reset = "Resetting..."; |
rebonatto | 0:fac116e94d44 | 5 | |
rebonatto | 0:fac116e94d44 | 6 | |
rebonatto | 0:fac116e94d44 | 7 | int TelnetServer::ResetCommand(TCPSocketConnection *conn,char** argv,int argc) |
rebonatto | 0:fac116e94d44 | 8 | { |
rebonatto | 0:fac116e94d44 | 9 | |
rebonatto | 0:fac116e94d44 | 10 | conn->send(header_msg_reset,strlen(header_msg_reset)); |
rebonatto | 0:fac116e94d44 | 11 | |
rebonatto | 0:fac116e94d44 | 12 | conn->close(); |
rebonatto | 0:fac116e94d44 | 13 | |
rebonatto | 0:fac116e94d44 | 14 | delete conn; |
rebonatto | 0:fac116e94d44 | 15 | |
rebonatto | 0:fac116e94d44 | 16 | Pmed_reset(PMEDLOG_RESETTELNET); |
rebonatto | 0:fac116e94d44 | 17 | |
rebonatto | 0:fac116e94d44 | 18 | return 0; |
rebonatto | 0:fac116e94d44 | 19 | } |