Versão estável sem DMA e FFT. 128 amostras.

Dependencies:   EthernetInterface NTPClient mbed-rtos mbed

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?

UserRevisionLine numberNew contents of line
rebonatto 0:fac116e94d44 1 /*
rebonatto 0:fac116e94d44 2 * Settings.h
rebonatto 0:fac116e94d44 3 *
rebonatto 0:fac116e94d44 4 * Created on: 19/jan/2015
rebonatto 0:fac116e94d44 5 * Author: Marcos A. Lucas
rebonatto 0:fac116e94d44 6 */
rebonatto 0:fac116e94d44 7
rebonatto 0:fac116e94d44 8 #ifndef PMEDRESET_H
rebonatto 0:fac116e94d44 9 #define PMEDRESET_H
rebonatto 0:fac116e94d44 10
rebonatto 0:fac116e94d44 11 #include "mbed.h"
rebonatto 0:fac116e94d44 12 #include "Settings.h"
rebonatto 0:fac116e94d44 13
rebonatto 0:fac116e94d44 14 #include "PmedLog.h"
rebonatto 0:fac116e94d44 15
rebonatto 0:fac116e94d44 16 extern "C" void mbed_reset();
rebonatto 0:fac116e94d44 17
rebonatto 0:fac116e94d44 18 static void Pmed_reset();
rebonatto 0:fac116e94d44 19 static void Pmed_reset(const char* value);
rebonatto 0:fac116e94d44 20
rebonatto 0:fac116e94d44 21
rebonatto 0:fac116e94d44 22 static void Pmed_reset()
rebonatto 0:fac116e94d44 23 {
rebonatto 0:fac116e94d44 24 Pmed_reset(PMEDLOG_RESET);
rebonatto 0:fac116e94d44 25 }
rebonatto 0:fac116e94d44 26
rebonatto 0:fac116e94d44 27 static void Pmed_reset(const char* value)
rebonatto 0:fac116e94d44 28 {
rebonatto 0:fac116e94d44 29 char entry[80];
rebonatto 0:fac116e94d44 30
rebonatto 0:fac116e94d44 31 entry[0] = '\0';
rebonatto 0:fac116e94d44 32 strcat(entry, "RESET : ");
rebonatto 0:fac116e94d44 33 strcat(entry, value);
rebonatto 0:fac116e94d44 34 PmedLog::WriteEntry(entry);
rebonatto 0:fac116e94d44 35 wait(1);
rebonatto 0:fac116e94d44 36 mbed_reset();
rebonatto 0:fac116e94d44 37 }
rebonatto 0:fac116e94d44 38
rebonatto 0:fac116e94d44 39 #endif //#ifndef PMEDRESET_H
rebonatto 0:fac116e94d44 40