vbus_hw.h 590 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. * Change Logs:
  6. * Date Author Notes
  7. * 2015-01-07 Grissiom init commit
  8. */
  9. #include <rtthread.h>
  10. #include <board.h>
  11. rt_inline void rt_vbus_tick(unsigned int target_cpu, unsigned int irqnr)
  12. {
  13. __SEV();
  14. }
  15. /* Read memory barrier. */
  16. rt_inline void rt_vbus_smp_rmb(void)
  17. {
  18. __DMB();
  19. }
  20. /* Write memory barrier. */
  21. rt_inline void rt_vbus_smp_wmb(void)
  22. {
  23. __DSB();
  24. }
  25. /* General memory barrier. */
  26. rt_inline void rt_vbus_smp_mb(void)
  27. {
  28. __DSB();
  29. }