board.h 500 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2018, Synopsys, Inc.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #ifndef __BOARD_H__
  7. #define __BOARD_H__
  8. #include "emsk_hardware.h"
  9. #define BOARD_OS_TIMER_ID 0
  10. #define BOARD_OS_TIMER_INTNO 16
  11. #define BOARD_CPU_CLOCK 25000000
  12. #if defined(__GNUC__)
  13. extern int __start_heap;
  14. #define HEAP_BEGIN ((void*)&__start_heap)
  15. #endif
  16. extern int __end_heap;
  17. #define HEAP_END (void*)(&__end_heap)
  18. void rt_hw_board_init();
  19. int rt_hw_uart_init(void);
  20. #endif