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