summaryrefslogtreecommitdiff
path: root/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1_GCC/freedom-metal/src/lock.c
blob: 0df162aa424e99a521f2f7d613fc676a4e9598e0 (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);