board.c 788 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. * 2011-02-24 Bernard first implementation
  9. */
  10. #include <rthw.h>
  11. #include <rtthread.h>
  12. #include "board.h"
  13. #include "mb9bf506r.h"
  14. #include "core_cm3.h"
  15. extern const uint32_t SystemFrequency;
  16. /**
  17. * @addtogroup FM3
  18. */
  19. /*@{*/
  20. /**
  21. * This is the timer interrupt service routine.
  22. *
  23. */
  24. void SysTick_Handler(void)
  25. {
  26. /* enter interrupt */
  27. rt_interrupt_enter();
  28. rt_tick_increase();
  29. /* leave interrupt */
  30. rt_interrupt_leave();
  31. }
  32. /**
  33. * This function will initial FM3 Easy Kit board.
  34. */
  35. void rt_hw_board_init()
  36. {
  37. /* init systick */
  38. SysTick_Config(SystemFrequency/RT_TICK_PER_SECOND);
  39. }
  40. /*@}*/