Novo
Dependencies: EthernetInterface mbed-rtos mbed sample_handler
Diff: mylibs/globais.h
- Revision:
- 0:71e5f03dd7a0
diff -r 000000000000 -r 71e5f03dd7a0 mylibs/globais.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mylibs/globais.h Tue Jan 16 19:50:00 2018 +0000 @@ -0,0 +1,24 @@ +#ifndef GLOBAIS_H +#define GLOBAIS_H + +/* Includes */ +#include "mbed.h" +#include "rtos.h" + +/* Globais */ +#define ADC_N_BITS 12 +#define ADC_VREF 3.3 + +#define BUFFER_SIZE 500 +#define FS 50000 +#define TS 1/FS +#define TS_us uint32_t(TS*1000000) +#define TS_ms uint32_t(TS*1000) + +/* Ethernet related defines */ +#define ECHO_SERVER_ADDRESS "192.168.201.132" +#define ECHO_SERVER_PORT 5005 +//const char* ECHO_SERVER_ADDRESS = "192.168.201.132"; +//const int ECHO_SERVER_PORT = 5005; + +#endif \ No newline at end of file