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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user