type.h 775 B

123456789101112131415161718192021222324252627282930313233
  1. /*****************************************************************************
  2. * type.h: Type definition Header file for NXP LPC17xx Family
  3. * Microprocessors
  4. *
  5. * Copyright(C) 2009, NXP Semiconductor
  6. * All rights reserved.
  7. *
  8. * History
  9. * 2009.05.25 ver 1.00 Prelimnary version, first Release
  10. *
  11. ******************************************************************************/
  12. #include <stdint.h>
  13. #ifndef __TYPE_H__
  14. #define __TYPE_H__
  15. #ifndef NULL
  16. #define NULL ((void *)0)
  17. #endif
  18. #ifndef FALSE
  19. #define FALSE (0)
  20. #endif
  21. #ifndef TRUE
  22. #define TRUE (1)
  23. #endif
  24. typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus;
  25. typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState;
  26. #endif /* __TYPE_H__ */