board.h 629 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2019, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2019-05-05 jg1uaa the first version
  9. */
  10. #ifndef __BOARD_H__
  11. #define __BOARD_H__
  12. #define CPU_CLOCK 48000000 // Hz
  13. void rt_hw_board_init(void);
  14. void NVIC_EnableIRQ(rt_int32_t irqno);
  15. void NVIC_DisableIRQ(rt_int32_t irqno);
  16. rt_uint32_t NVIC_GetPendingIRQ(rt_int32_t irqno);
  17. void NVIC_SetPendingIRQ(rt_int32_t irqno);
  18. void NVIC_ClearPendingIRQ(rt_int32_t irqno);
  19. void NVIC_SetPriority(rt_int32_t irqno, rt_uint32_t priority);
  20. #endif /* __BOARD_H__ */