vbus_hw.h 663 B

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