37 lines
872 B
C
37 lines
872 B
C
/*
|
|
* Copyright (c) 2006-2018, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2018-11-16 bluebear233 first version
|
|
*/
|
|
|
|
#ifndef __BOARD_H__
|
|
#define __BOARD_H__
|
|
|
|
// <o> Internal SRAM memory size[Kbytes] <8-64>
|
|
#define SRAM_SIZE (160)
|
|
#define SRAM_END (0x20000000 + SRAM_SIZE * 1024)
|
|
|
|
#define RT_UART_485_MODE 1
|
|
#define RT_UART_FLOW_CTS_CTRL 2
|
|
#define RT_UART_FLOW_RTS_CTRL 3
|
|
#define RT_UART_CLEAR_BUF 4
|
|
|
|
void rt_hw_pdma_init(void);
|
|
void rt_hw_uart_handle(void);
|
|
void rt_hw_sc_init(void);
|
|
void rt_hw_usart_init(void);
|
|
void rt_hw_uusart_init(void);
|
|
void rt_hw_io_init(void);
|
|
void phy_error_led(void);
|
|
|
|
unsigned char *eth_get_default_mac(void);
|
|
void eth_set_mac(const unsigned char * mac);
|
|
void wdt_reload(void);
|
|
unsigned int get_uid(void);
|
|
|
|
#endif /* BOARD_H_ */
|