summaryrefslogtreecommitdiff
path: root/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1_FreedomStudio/freedom-metal/src/lock.c
blob: 9e04230a36126371e29b96854c997d12c087d862 (plain)
1
2
3
4
5
6
7
8
/* Copyright 2019 SiFive, Inc */
/* SPDX-License-Identifier: Apache-2.0 */

#include <metal/lock.h>

extern __inline__ int metal_lock_init(struct metal_lock *lock);
extern __inline__ int metal_lock_take(struct metal_lock *lock);
extern __inline__ int metal_lock_give(struct metal_lock *lock);