vbus_hw.h 658 字节
Newer Older
G
Grissiom 已提交
1
/*
mysterywolf's avatar
mysterywolf 已提交
2 3
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
4
 * SPDX-License-Identifier: Apache-2.0
5
 *
G
Grissiom 已提交
6 7
 * Change Logs:
 * Date           Author       Notes
8
 * 2015-01-07     Grissiom     init commit
G
Grissiom 已提交
9 10
 */

D
David Lin 已提交
11 12 13
#ifndef __VBUS_HW_H__
#define __VBUS_HW_H__

G
Grissiom 已提交
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
#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();
}
D
David Lin 已提交
39 40

#endif /* __VBUS_HW_H__ */