tdse-tp3_01-lcd_display

Index Commits Files Refs
modules/arm_book_lib.h (665B)
   1 //=====[#include guards - begin]===============================================
   2 
   3 #ifndef _ARM_BOOK_LIB_H_
   4 #define _ARM_BOOK_LIB_H_
   5 
   6 //=====[Libraries]=============================================================
   7 
   8 #include <mbed.h>
   9 
  10 //=====[Declaration of public defines]=========================================
  11 
  12 // Functional states
  13 #ifndef OFF
  14 #define OFF    0
  15 #endif
  16 #ifndef ON
  17 #define ON     (!OFF)
  18 #endif
  19 
  20 // Electrical states
  21 #ifndef LOW
  22 #define LOW    0
  23 #endif
  24 #ifndef HIGH
  25 #define HIGH   (!LOW)
  26 #endif
  27 
  28 #define delay(ms)      thread_sleep_for( ms )
  29 
  30 //=====[#include guards - end]=================================================
  31 
  32 #endif // _ARM_BOOK_LIB_H_