Use iostream for min, max functions

Use iostream for min, max functions as well as for reading / writing to
file.
This commit is contained in:
aaron832
2016-08-16 12:00:43 -03:00
committed by Marcelo Aquino
parent e9a50586ff
commit ad978196f9
+3 -2
View File
@@ -22,16 +22,17 @@
#include "MyHw.h"
#include <stdlib.h>
#include <iostream>
#define MY_SERIALDEVICE Serial
#define min(a,b) ((a)<(b)?(a):(b))
#define max(a,b) ((a)>(b)?(a):(b))
// Define these as macros (do nothing)
#define hwDigitalWrite(__pin, __value)
#define hwWatchdogReset()
#define hwReboot()
using namespace std;
void hwInit();
void hwReadConfigBlock(void* buf, void* adr, size_t length);
void hwWriteConfigBlock(void* buf, void* adr, size_t length);