Wakeup Light with touch user interface, anti-aliased Font, SD card access and RTC usage on STM32F746NG-DISCO board
Dependencies: BSP_DISCO_F746NG_patch_fixed LCD_DISCO_F746NG TS_DISCO_F746NG FATFileSystem TinyJpgDec_interwork mbed-src
Diff: WakeupLight.h
- Revision:
- 3:ecf7f1f8d749
- Parent:
- 2:80026d18fcf3
- Child:
- 6:aa51cc3b9f90
--- a/WakeupLight.h Thu Oct 29 12:59:54 2015 +0000 +++ b/WakeupLight.h Thu Oct 29 18:09:31 2015 +0000 @@ -6,6 +6,11 @@ #include "TS_DISCO_F746NG.h" #include "LCD_DISCO_F746NG.h" +#define COUNT_OF(__ARRAY__) (sizeof(__ARRAY__)/sizeof(__ARRAY__[0])) +#define MIN(X,Y) ((X) < (Y) ? (X) : (Y)) +#define MAX(X,Y) ((X) > (Y) ? (X) : (Y)) +#define ABS(_VALUE_) (((_VALUE_) < 0) ? -(_VALUE_) : (_VALUE_)) + #include "OnBoardLED.h" #include "LED.h" #include "UI.h"