teste de publish
Dependencies: DS1820 HighSpeedAnalogIn devices mbed
diversos.h
- Committer:
- brunofgc
- Date:
- 2018-06-08
- Revision:
- 38:07d3907b74e5
- Parent:
- 25:a6da63ed025b
File content as of revision 38:07d3907b74e5:
#ifndef _diversos_h_ #define _diversos_h_ #include "mbed.h" #include "serialPC.h" #include "funcoesSDCard.h" #include "main.h" #include "devices.h" #define tamBufferCommands 1024 #include <cstdlib> #define maxTentativasEnvioDados 5 #ifndef enderecoControladoraVirtual #define enderecoControladoraVirtual 0 #endif /* // On reset, indicate a watchdog reset or a pushbutton reset on LED 4 or 3 if ((LPC_WDT->WDMOD >> 2) & 1) myled4 = 1; else myled3 = 1; */ class WatchdogTimer { public: //void WatchdogTimer(void); // Load timeout value in watchdog timer and enable void kick(float); // "kick" or "feed" the dog - reset the watchdog timer // by writing this required bit pattern void kick(); }; namespace eventosRTC{ //Variaveis extern bool segundos; extern bool minutos; //extern bool hora_completa; extern bool rotina10Segundos; extern char rotinaEnvioDeDados; extern bool rotina1hora; extern bool rotina1segundo; //Funções } namespace diversos{ //Variaveis extern WatchdogTimer wdt; extern char msg[200]; //Funções uint32_t memAvailable(); void progressBar(uint32_t,uint32_t); void strReplace(char *, char *, char *); void urldecode2(char *, const char *); void processaPulsosEDs(); //double stringToFloat(char *,uint16_t); //Ponteiro pra string e max tam da string por segurança } namespace commands{ //Variaveis extern char buffer[tamBufferCommands]; //Funções void exec(uint8_t); } #endif