2015-01-06 18:50:22 +08:00
|
|
|
/*
|
2021-03-17 02:26:35 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
|
|
*
|
2018-10-22 11:02:14 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2021-04-09 10:52:34 +08:00
|
|
|
*
|
2015-01-06 18:50:22 +08:00
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
2015-01-08 17:16:26 +08:00
|
|
|
* 2015-01-07 Grissiom init commit
|
2015-01-06 18:50:22 +08:00
|
|
|
*/
|
|
|
|
|
2020-11-26 23:34:12 +08:00
|
|
|
#ifndef __VBUS_HW_H__
|
|
|
|
#define __VBUS_HW_H__
|
|
|
|
|
2015-01-06 18:50:22 +08:00
|
|
|
#include <rtthread.h>
|
|
|
|
#include <board.h>
|
|
|
|
|
|
|
|
rt_inline void rt_vbus_tick(unsigned int target_cpu, unsigned int irqnr)
|
|
|
|
{
|
|
|
|
__SEV();
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Read memory barrier. */
|
|
|
|
rt_inline void rt_vbus_smp_rmb(void)
|
|
|
|
{
|
|
|
|
__DMB();
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Write memory barrier. */
|
|
|
|
rt_inline void rt_vbus_smp_wmb(void)
|
|
|
|
{
|
|
|
|
__DSB();
|
|
|
|
}
|
|
|
|
|
|
|
|
/* General memory barrier. */
|
|
|
|
rt_inline void rt_vbus_smp_mb(void)
|
|
|
|
{
|
|
|
|
__DSB();
|
|
|
|
}
|
2020-11-26 23:34:12 +08:00
|
|
|
|
|
|
|
#endif /* __VBUS_HW_H__ */
|