protegemed, aquisição via A/D simples utilizando interrupção do timer
Dependencies: EthernetInterface NTPClient mbed-rtos mbed
Fork of ptgm_semDMA by
Headers/ntpc.h@0:fac116e94d44, 2016-01-05 (annotated)
- Committer:
- rebonatto
- Date:
- Tue Jan 05 11:47:35 2016 +0000
- Revision:
- 0:fac116e94d44
Vers?o est?vel sem DMA e FFT. 128 amostras.
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 | #include "NTPClient.h" |
rebonatto | 0:fac116e94d44 | 6 | |
rebonatto | 0:fac116e94d44 | 7 | static NTPClient ntpClient; |
rebonatto | 0:fac116e94d44 | 8 | |
rebonatto | 0:fac116e94d44 | 9 | class ntpc |
rebonatto | 0:fac116e94d44 | 10 | { |
rebonatto | 0:fac116e94d44 | 11 | |
rebonatto | 0:fac116e94d44 | 12 | protected: |
rebonatto | 0:fac116e94d44 | 13 | |
rebonatto | 0:fac116e94d44 | 14 | static void ntpcDo(); |
rebonatto | 0:fac116e94d44 | 15 | |
rebonatto | 0:fac116e94d44 | 16 | public: |
rebonatto | 0:fac116e94d44 | 17 | |
rebonatto | 0:fac116e94d44 | 18 | static void ntpc_Thread(void const* arg); |
rebonatto | 0:fac116e94d44 | 19 | |
rebonatto | 0:fac116e94d44 | 20 | }; |