PicoSDK
Select one of the symbols to view example projects that use it.
Symbol previews are coming soon...
Outline
#include "pico/lock_core.h"
lock_init(lock_core_t *, uint)
Files
loading...
SourceVu
Raspberry Pi Pico SDK and Examples
PicoSDK
src/common/pico_sync/lock_core.c
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/* ... */
#include
"
pico
/
lock_core.h"
void
lock_init
(
lock_core_t
*
core
,
uint
lock_num
)
{
valid_params_if
(
LOCK_CORE
,
lock_num
<
NUM_SPIN_LOCKS
)
;
core
->
spin_lock
=
spin_lock_instance
(
lock_num
)
;
}
{ ... }
Details
Show:
from
Types:
Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.
spin_lock_instance()
lock_init()
uint
valid_params_if
lock_core::spin_lock
NUM_SPIN_LOCKS
lock_init()::lock_num
lock_init()::core
lock_core_t