board.h 853 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * File : board.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2009, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2009-09-22 Bernard add board.h to this bsp
  13. * 2010-02-04 Magicoe add board.h to LPC176x bsp
  14. */
  15. #ifndef __BOARD_H__
  16. #define __BOARD_H__
  17. #include "rtdef.h"
  18. #define LB900 1
  19. #define LM600 2
  20. #define LM201R 3
  21. #define LM201P 4
  22. #define LM101 5
  23. #define PLATFORM LM201R
  24. #define ENTER_KEY 0x1d
  25. #define UP_KEY 0x1b
  26. #define DOWN_KEY 0x17
  27. #define LEFT_KEY 0x0f
  28. #define RIGHT_KEY 0x1e
  29. void rt_hw_board_init(void);
  30. rt_uint8_t get_key(void);
  31. #endif