board.h 655 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2006-2023, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022/12/25 flyingcys first version
  9. */
  10. #ifndef BOARD_H__
  11. #define BOARD_H__
  12. #include <rtconfig.h>
  13. #include "core_rv32.h"
  14. #include "bl_sys.h"
  15. #include "bl_irq.h"
  16. #include "bl808_clock.h"
  17. #ifdef BL808
  18. #include "bl808.h"
  19. #elif defined(BL606P)
  20. #include "bl606p.h"
  21. #endif
  22. extern uint8_t _heap_start;
  23. extern uint8_t _heap_size;
  24. #define RT_HW_HEAP_BEGIN (void*)&_heap_start
  25. #define RT_HW_HEAP_END (void*)(&_heap_start + (rt_ubase_t)&_heap_size)
  26. void rt_hw_board_init(void);
  27. #endif