vbus_hw.h 658 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. * 2015-01-07 Grissiom init commit
  9. */
  10. #ifndef __VBUS_HW_H__
  11. #define __VBUS_HW_H__
  12. #include <rtthread.h>
  13. #include <board.h>
  14. rt_inline void rt_vbus_tick(unsigned int target_cpu, unsigned int irqnr)
  15. {
  16. __SEV();
  17. }
  18. /* Read memory barrier. */
  19. rt_inline void rt_vbus_smp_rmb(void)
  20. {
  21. __DMB();
  22. }
  23. /* Write memory barrier. */
  24. rt_inline void rt_vbus_smp_wmb(void)
  25. {
  26. __DSB();
  27. }
  28. /* General memory barrier. */
  29. rt_inline void rt_vbus_smp_mb(void)
  30. {
  31. __DSB();
  32. }
  33. #endif /* __VBUS_HW_H__ */