board.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 "mb9bf506r.h"
  18. /*LEDs*/
  19. #define LED1 (1UL<<10)
  20. #define LED2 (1UL<<11)
  21. #define LED3 (1UL<<12)
  22. #define LED_MASK (LED1 | LED2 | LED3)
  23. #define LED_PFR (FM3_GPIO->PFR3)
  24. #define LED_DDR (FM3_GPIO->DDR3)
  25. #define LED_PDOR (FM3_GPIO->PDOR3)
  26. //Internal SRAM memory size[Kbytes] <8-64>
  27. //MB9BF500 : 32
  28. //MB9BF504 : 32
  29. //MB9BF505 : 48
  30. //MB9BF506 : 64
  31. #define FM3_SRAM_SIZE 32
  32. #define FM3_SRAM_END (0x1FFFC000 + FM3_SRAM_SIZE * 1024)
  33. void rt_hw_led_on(int n);
  34. void rt_hw_led_off(int n);
  35. void rt_hw_board_init(void);
  36. #endif