1 /* 2 * File : board.h 3 * This file is part of RT-Thread RTOS 4 * COPYRIGHT (C) 2006, RT-Thread Develop 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://openlab.rt-thread.com/license/LICENSE 9 * 10 * Change Logs: 11 * Date Author Notes 12 * 2006-10-08 Bernard add board.h to this bsp 13 */ 14 15 #ifndef __BOARD_H__ 16 #define __BOARD_H__ 17 18 #include <rthw.h> 19 #include <rtthread.h> 20 21 22 #define MCK 48054857 23 #define BR 115200 /* Baud Rate */ 24 #define BRD (MCK/16/BR) /* Baud Rate Divisor */ 25 26 #define RT_UART_RX_BUFFER_SIZE 128 27 28 void rt_hw_board_led_on(int n); 29 void rt_hw_board_led_off(int n); 30 void rt_hw_board_init(void); 31 32 #endif 33