board.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2017-09-14 Haley first implementation
  9. */
  10. #ifndef __BOARD_H_
  11. #define __BOARD_H_
  12. #include <rtthread.h>
  13. // <o> Internal SRAM memory size[Kbytes] <8-256>
  14. // <i>Default: 256
  15. #define AM_SRAM_SIZE 256
  16. #define AM_SRAM_END (0x10000000 + AM_SRAM_SIZE * 1024)
  17. /* USART driver select. */
  18. #define RT_USING_UART0
  19. //#define RT_USING_UART1
  20. /* ADC driver select. */
  21. #define RT_USING_ADC
  22. /* I2C driver select. */
  23. #define RT_USING_I2C0
  24. //#define RT_USING_I2C2
  25. //#define RT_USING_I2C4
  26. /* SMBUS driver select. */
  27. //#define RT_USING_SMBUS
  28. /* SPI driver select. */
  29. #define RT_USING_SPI1
  30. /* LED driver select. */
  31. #define RT_USING_LED0
  32. //#define RT_USING_LED1
  33. //#define RT_USING_LED2
  34. //#define RT_USING_LED3
  35. /* PWM driver select. */
  36. //#define RT_USING_PWM
  37. /* PDM driver select. */
  38. //#define RT_USING_PDM
  39. void rt_hw_board_init(void);
  40. #endif /* __BOARD_H__ */