board.h 1.1 KB
Newer Older
B
bernard.xiong@gmail.com 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/*
 * File      : board.h
 * This file is part of RT-Thread RTOS
 * COPYRIGHT (C) 2009, RT-Thread Development Team
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 * http://www.rt-thread.org/license/LICENSE
 *
 * Change Logs:
 * Date           Author       Notes
 * 2009-09-22     Bernard      add board.h to this bsp
 * 2010-02-04     Magicoe      add board.h to LPC176x bsp
 */

#ifndef __BOARD_H__
#define __BOARD_H__

19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
#include "mb9bf506r.h"

/*LEDs*/
#define LED1        (1UL<<10)
#define LED2        (1UL<<11)
#define LED3        (1UL<<12)
#define LED_MASK    (LED1 | LED2 | LED3)

#define LED_PFR     (FM3_GPIO->PFR3)
#define LED_DDR     (FM3_GPIO->DDR3)
#define LED_PDOR    (FM3_GPIO->PDOR3)

//Internal SRAM memory size[Kbytes] <8-64>
//MB9BF500 : 32
//MB9BF504 : 32
//MB9BF505 : 48
//MB9BF506 : 64
#define FM3_SRAM_SIZE         32
37
#define FM3_SRAM_END          (0x1FFFC000 + FM3_SRAM_SIZE * 1024)
38 39 40

void rt_hw_led_on(int n);
void rt_hw_led_off(int n);
B
bernard.xiong@gmail.com 已提交
41 42 43
void rt_hw_board_init(void);

#endif