protegemed, aquisição via A/D simples utilizando interrupção do timer
Dependencies: EthernetInterface NTPClient mbed-rtos mbed
Fork of ptgm_semDMA by
Headers/TftpServer.h@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 "mbed.h" |
rebonatto | 0:fac116e94d44 | 2 | #include "rtos.h" |
rebonatto | 0:fac116e94d44 | 3 | |
rebonatto | 0:fac116e94d44 | 4 | #include "EthernetInterface.h" |
rebonatto | 0:fac116e94d44 | 5 | |
rebonatto | 0:fac116e94d44 | 6 | |
rebonatto | 0:fac116e94d44 | 7 | |
rebonatto | 0:fac116e94d44 | 8 | |
rebonatto | 0:fac116e94d44 | 9 | class TftpServer |
rebonatto | 0:fac116e94d44 | 10 | { |
rebonatto | 0:fac116e94d44 | 11 | |
rebonatto | 0:fac116e94d44 | 12 | public: |
rebonatto | 0:fac116e94d44 | 13 | |
rebonatto | 0:fac116e94d44 | 14 | static void TftpServerThread(void const *arg); |
rebonatto | 0:fac116e94d44 | 15 | |
rebonatto | 0:fac116e94d44 | 16 | static void TftpDoRead(Endpoint remote,char *buffer,int length); |
rebonatto | 0:fac116e94d44 | 17 | static void TftpDoWrite(Endpoint remote,char *buffer,int length); |
rebonatto | 0:fac116e94d44 | 18 | |
rebonatto | 0:fac116e94d44 | 19 | }; |