summaryrefslogtreecommitdiff
path: root/bsp/lpc43xx/M4/applications/vbus_hw.h
blob: 0466d2339ccda8894f9632b7f33b44440f159b1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
39
40
/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2015-01-07     Grissiom     init commit
 */

#ifndef __VBUS_HW_H__
#define __VBUS_HW_H__

#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();
}

#endif /* __VBUS_HW_H__ */