board.h 872 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) 2006-2018, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018-11-16 bluebear233 first version
  9. */
  10. #ifndef __BOARD_H__
  11. #define __BOARD_H__
  12. // <o> Internal SRAM memory size[Kbytes] <8-64>
  13. #define SRAM_SIZE (160)
  14. #define SRAM_END (0x20000000 + SRAM_SIZE * 1024)
  15. #define RT_UART_485_MODE 1
  16. #define RT_UART_FLOW_CTS_CTRL 2
  17. #define RT_UART_FLOW_RTS_CTRL 3
  18. #define RT_UART_CLEAR_BUF 4
  19. void rt_hw_pdma_init(void);
  20. void rt_hw_uart_handle(void);
  21. void rt_hw_sc_init(void);
  22. void rt_hw_usart_init(void);
  23. void rt_hw_uusart_init(void);
  24. void rt_hw_io_init(void);
  25. void phy_error_led(void);
  26. unsigned char *eth_get_default_mac(void);
  27. void eth_set_mac(const unsigned char * mac);
  28. void wdt_reload(void);
  29. unsigned int get_uid(void);
  30. #endif /* BOARD_H_ */