Versión de Firmware con funciones de RAM incorporadas.

Dependencies:   mbed

Fork of VmRecorderV1dot1 by virtualmech

Committer:
JuanManuelAmador
Date:
Mon Jun 15 15:34:27 2015 +0000
Revision:
0:3d456b8ce449
prueba

Who changed what in which revision?

UserRevisionLine numberNew contents of line
JuanManuelAmador 0:3d456b8ce449 1 #ifndef GLOBALDEFS_H
JuanManuelAmador 0:3d456b8ce449 2 #define GLOBALDEFS_H
JuanManuelAmador 0:3d456b8ce449 3
JuanManuelAmador 0:3d456b8ce449 4 /// SPI frequency for method DogMLCD::Flush()
JuanManuelAmador 0:3d456b8ce449 5 #define DOGMLCD_MHZ 18000000
JuanManuelAmador 0:3d456b8ce449 6 // Wait time after changing state of A0 in uS
JuanManuelAmador 0:3d456b8ce449 7 #define DOGMLCD_TIME 8
JuanManuelAmador 0:3d456b8ce449 8
JuanManuelAmador 0:3d456b8ce449 9 #ifndef BOUND
JuanManuelAmador 0:3d456b8ce449 10 #define BOUND(a,b,c) if( a < b ) a = b; else if( a > c ) a = c;
JuanManuelAmador 0:3d456b8ce449 11 #endif
JuanManuelAmador 0:3d456b8ce449 12 #ifndef SWAP
JuanManuelAmador 0:3d456b8ce449 13 #define SWAP(a,b) { int c = a; a = b; b = c; }
JuanManuelAmador 0:3d456b8ce449 14 #endif
JuanManuelAmador 0:3d456b8ce449 15 #ifndef ORDER
JuanManuelAmador 0:3d456b8ce449 16 #define ORDER(a,b) if( a > b ) { int c = a; a = b; b = c; }
JuanManuelAmador 0:3d456b8ce449 17 #endif
JuanManuelAmador 0:3d456b8ce449 18
JuanManuelAmador 0:3d456b8ce449 19 const unsigned char DOGMLCD_on[] = { 1, 2, 4, 8, 16, 32, 64, 128 };
JuanManuelAmador 0:3d456b8ce449 20 const unsigned char DOGMLCD_off[]= { 254, 253, 251, 247, 239, 223, 191, 127 };
JuanManuelAmador 0:3d456b8ce449 21
JuanManuelAmador 0:3d456b8ce449 22 /// Bit mpath operation (raster)
JuanManuelAmador 0:3d456b8ce449 23 typedef enum{ poke, wipe, inv } doggy_op;
JuanManuelAmador 0:3d456b8ce449 24
JuanManuelAmador 0:3d456b8ce449 25 #endif