Select one of the symbols to view example projects that use it.
 
Outline
#define _PICO_RUNTIME_INITS_H
#include "pico.h"
#include "pico/runtime.h"
#define PICO_RUNTIME_INIT_EARLIEST
#define PICO_RUNTIME_INIT_BOOTROM_RESET
#define PICO_RUNTIME_SKIP_INIT_BOOTROM_RESET
#define PICO_RUNTIME_NO_INIT_BOOTROM_RESET
runtime_init_bootrom_reset();
#define PICO_RUNTIME_INIT_PER_CORE_BOOTROM_RESET
#define PICO_RUNTIME_SKIP_INIT_PER_CORE_BOOTROM_RESET
#define PICO_RUNTIME_NO_INIT_PER_CORE_BOOTROM_RESET
runtime_init_per_core_bootrom_reset();
#define PICO_RUNTIME_INIT_PER_CORE_H3_IRQ_REGISTERS
#define PICO_RUNTIME_SKIP_INIT_PER_CORE_H3_IRQ_REGISTERS
#define PICO_RUNTIME_INIT_EARLY_RESETS
#define PICO_RUNTIME_SKIP_INIT_EARLY_RESETS
#define PICO_RUNTIME_NO_INIT_EARLY_RESETS
runtime_init_early_resets();
#define PICO_RUNTIME_INIT_USB_POWER_DOWN
#define PICO_RUNTIME_SKIP_INIT_USB_POWER_DOWN
#define PICO_RUNTIME_NO_INIT_USB_POWER_DOWN
runtime_init_usb_power_down();
#define PICO_RUNTIME_INIT_PER_CORE_ENABLE_COPROCESSORS
#define PICO_RUNTIME_SKIP_INIT_PER_CORE_ENABLE_COPROCESSORS
#define PICO_RUNTIME_NO_INIT_PER_CORE_ENABLE_COPROCESSORS
runtime_init_per_core_enable_coprocessors();
#define PICO_RUNTIME_INIT_AEABI_MEM_OPS
#define PICO_RUNTIME_INIT_AEABI_BIT_OPS
#define PICO_RUNTIME_INIT_AEABI_FLOAT
#define PICO_RUNTIME_INIT_AEABI_DOUBLE
#define PICO_RUNTIME_INIT_CLOCKS
#define PICO_RUNTIME_SKIP_INIT_CLOCKS
#define PICO_RUNTIME_NO_INIT_CLOCKS
runtime_init_clocks();
clocks_init()
#define PICO_RUNTIME_INIT_POST_CLOCK_RESETS
runtime_init_post_clock_resets();
#define PICO_RUNTIME_INIT_RP2040_GPIO_IE_DISABLE
#define PICO_RUNTIME_SKIP_INIT_RP2040_GPIO_IE_DISABLE
#define PICO_RUNTIME_NO_INIT_RP2040_GPIO_IE_DISABLE
runtime_init_rp2040_gpio_ie_disable();
#define PICO_RUNTIME_INIT_SPIN_LOCKS_RESET
#define PICO_RUNTIME_SKIP_INIT_SPIN_LOCKS_RESET
#define PICO_RUNTIME_NO_INIT_SPIN_LOCKS_RESET
runtime_init_spin_locks_reset();
#define PICO_RUNTIME_INIT_BOOT_LOCKS_RESET
#define PICO_RUNTIME_SKIP_INIT_BOOT_LOCKS_RESET
runtime_init_boot_locks_reset();
#define PICO_RUNTIME_INIT_BOOTROM_LOCKING_ENABLE
#define PICO_RUNTIME_SKIP_INIT_BOOTROM_LOCKING_ENABLE
runtime_init_bootrom_locking_enable();
#define PICO_RUNTIME_INIT_MUTEX
#define PICO_RUNTIME_SKIP_INIT_MUTEX
#define PICO_RUNTIME_NO_INIT_MUTEX
#define PICO_RUNTIME_INIT_PER_CORE_IRQ_PRIORITIES
#define PICO_RUNTIME_INIT_PER_CORE_TLS_SETUP
#define PICO_RUNTIME_INIT_INSTALL_RAM_VECTOR_TABLE
#define PICO_RUNTIME_SKIP_INIT_INSTALL_RAM_VECTOR_TABLE
#define PICO_RUNTIME_NO_INIT_INSTALL_RAM_VECTOR_TABLE
#define PICO_RUNTIME_INIT_DEFAULT_ALARM_POOL
#define PICO_RUNTIME_SKIP_INIT_DEFAULT_ALARM_POOL
#define PICO_RUNTIME_NO_INIT_DEFAULT_ALARM_POOL
#define PICO_RUNTIME_INIT_PER_CORE_INSTALL_STACK_GUARD
#define PICO_RUNTIME_SKIP_INIT_PER_CORE_INSTALL_STACK_GUARD
#define PICO_RUNTIME_NO_INIT_PER_CORE_INSTALL_STACK_GUARD
runtime_init_per_core_install_stack_guard(void *);
runtime_install_stack_guard(void *)
Files
loading...
SourceVuRaspberry Pi Pico SDK and ExamplesPicoSDKsrc/rp2_common/pico_runtime_init/include/pico/runtime_init.h
 
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * Copyright (c) 2024 Raspberry Pi (Trading) Ltd. * * SPDX-License-Identifier: BSD-3-Clause *//* ... */ #ifndef _PICO_RUNTIME_INITS_H #define _PICO_RUNTIME_INITS_H #include "pico.h" #include "pico/runtime.h" #ifdef __cplusplus extern "C" { #endif /** \file pico/runtime_init.h * \defgroup pico_runtime_init pico_runtime_init * * \brief Main runtime initialization functions required to set up the runtime environment before entering main * * The runtime initialization is registration based: * * For each step of the initialization there is a 5 digit ordinal which indicates * the ordering (alphabetic increasing sort of the 5 digits) of the steps. * * e.g. for the step "bootrom_reset", there is: * * \code * #ifndef PICO_RUNTIME_INIT_BOOTROM_RESET * #define PICO_RUNTIME_INIT_BOOTROM_RESET "00050" * #endif * \endcode * * The user can override the order if they wish, by redefining PICO_RUNTIME_INIT_BOOTROM_RESET * * For each step, the automatic initialization may be skipped by defining (in this case) * PICO_RUNTIME_SKIP_INIT_BOOTROM_RESET = 1. The user can then choose to either omit the step * completely or register their own replacement initialization. * * The default method used to perform the initialization is provided, in case the user * wishes to call it manually; in this case: * * \code * void runtime_init_bootrom_reset(void); * \endcode * * If PICO_RUNTIME_NO_INIT_BOOTOROM_RESET define is set (NO vs SKIP above), then the function * is not defined, allowing the user to provide a replacement (and also avoiding * cases where the default implementation won't compile due to missing dependencies) *//* ... */ // must have no dependency on any other initialization code #define PICO_RUNTIME_INIT_EARLIEST "00001" // ----------------------------------------------------------------------------------------------- // Reset of global bootrom state (can be skipped if boot path was via bootrom); not used on RP2040 // ----------------------------------------------------------------------------------------------- // PICO_CONFIG: PICO_RUNTIME_SKIP_INIT_BOOTROM_RESET, Skip calling of `runtime_init_bootrom_reset` function during runtime init, type=bool, default=1 on RP2040, group=pico_runtime_init // PICO_CONFIG: PICO_RUNTIME_NO_INIT_BOOTROM_RESET, Do not include SDK implementation of `runtime_init_bootrom_reset` function, type=bool, default=1 on RP2040, group=pico_runtime_init #ifndef PICO_RUNTIME_INIT_BOOTROM_RESET #define PICO_RUNTIME_INIT_BOOTROM_RESET "00050" #endif #ifndef PICO_RUNTIME_SKIP_INIT_BOOTROM_RESET #if PICO_RP2040 || (!LIB_PICO_MULTICORE && PICO_NO_FLASH) #define PICO_RUNTIME_SKIP_INIT_BOOTROM_RESET 1 #endif/* ... */ #endif #ifndef PICO_RUNTIME_NO_INIT_BOOTROM_RESET #if PICO_RP2040 || (!LIB_PICO_MULTICORE && PICO_NO_FLASH) #define PICO_RUNTIME_NO_INIT_BOOTROM_RESET 1 #endif/* ... */ #endif #ifndef __ASSEMBLER__ void runtime_init_bootrom_reset(void); #endif // --------------------------------------------------------------------------------------- // Non-boot core eset of bootrom state, not needed if only using core 0 not used on RP2040 // --------------------------------------------------------------------------------------- #ifndef PICO_RUNTIME_INIT_PER_CORE_BOOTROM_RESET #define PICO_RUNTIME_INIT_PER_CORE_BOOTROM_RESET "00051" #endif // PICO_CONFIG: PICO_RUNTIME_SKIP_INIT_PER_CORE_BOOTROM_RESET, Skip calling of `runtime_init_per_core_bootrom_reset` function during per-core init, type=bool, default=1 on RP2040, group=pico_runtime_init // PICO_CONFIG: PICO_RUNTIME_NO_INIT_PER_CORE_BOOTROM_RESET, Do not include SDK implementation of `runtime_init_per_core_bootrom_reset` function, type=bool, default=1 on RP2040, group=pico_runtime_init #ifndef PICO_RUNTIME_SKIP_INIT_PER_CORE_BOOTROM_RESET #if PICO_RP2040 #define PICO_RUNTIME_SKIP_INIT_PER_CORE_BOOTROM_RESET 1 #endif/* ... */ #endif #ifndef PICO_RUNTIME_NO_INIT_PER_CORE_BOOTROM_RESET #if PICO_RP2040 #define PICO_RUNTIME_NO_INIT_PER_CORE_BOOTROM_RESET 1 #endif/* ... */ #endif #ifndef __ASSEMBLER__ void runtime_init_per_core_bootrom_reset(void); #endif // --------------------------- // Hazard3 processor IRQ setup // --------------------------- // PICO_CONFIG: PICO_RUNTIME_SKIP_INIT_PER_CORE_H3_IRQ_REGISTERS, Skip calling of `runtime_init_per_core_h3_irq_registers` function during per-core init, type=bool, default=1 on non RISC-V, group=pico_runtime_init #ifndef PICO_RUNTIME_INIT_PER_CORE_H3_IRQ_REGISTERS #define PICO_RUNTIME_INIT_PER_CORE_H3_IRQ_REGISTERS "00060" #endif #ifndef PICO_RUNTIME_SKIP_INIT_PER_CORE_H3_IRQ_REGISTERS #ifndef __riscv #define PICO_RUNTIME_SKIP_INIT_PER_CORE_H3_IRQ_REGISTERS 1 #endif/* ... */ #endif // ------------------------------- // Earliest resets (no clocks yet) // ------------------------------- #ifndef PICO_RUNTIME_INIT_EARLY_RESETS #define PICO_RUNTIME_INIT_EARLY_RESETS "00100" #endif // PICO_CONFIG: PICO_RUNTIME_SKIP_INIT_EARLY_RESETS, Skip calling of `runtime_init_early_resets` function during runtime init, type=bool, default=1 on RP2040, group=pico_runtime_init // PICO_CONFIG: PICO_RUNTIME_NO_INIT_EARLY_RESETS, Do not include SDK implementation of `runtime_init_early_resets` function, type=bool, default=1 on RP2040, group=pico_runtime_init #ifndef PICO_RUNTIME_SKIP_INIT_EARLY_RESETS #define PICO_RUNTIME_SKIP_INIT_EARLY_RESETS 0 #endif #ifndef PICO_RUNTIME_NO_INIT_EARLY_RESETS #define PICO_RUNTIME_NO_INIT_EARLY_RESETS 0 #endif #ifndef __ASSEMBLER__ void runtime_init_early_resets(void); #endif // -------------- // USB power down // -------------- // PICO_CONFIG: PICO_RUNTIME_SKIP_INIT_USB_POWER_DOWN, Skip calling of `runtime_init_usb_power_down` function during runtime init, type=bool, default=0, group=pico_runtime_init // PICO_CONFIG: PICO_RUNTIME_NO_INIT_USB_POWER_DOWN, Do not include SDK implementation of `runtime_init_usb_power_down` function, type=bool, default=0, group=pico_runtime_init #ifndef PICO_RUNTIME_INIT_USB_POWER_DOWN #define PICO_RUNTIME_INIT_USB_POWER_DOWN "00101" #endif #ifndef PICO_RUNTIME_SKIP_INIT_USB_POWER_DOWN #define PICO_RUNTIME_SKIP_INIT_USB_POWER_DOWN 0 #endif #ifndef PICO_RUNTIME_NO_INIT_USB_POWER_DOWN #define PICO_RUNTIME_NO_INIT_USB_POWER_DOWN 0 #endif #ifndef __ASSEMBLER__ void runtime_init_usb_power_down(void); #endif // ------------------------------------ // per core co-processor initialization // ------------------------------------ // PICO_CONFIG: PICO_RUNTIME_SKIP_INIT_PER_CORE_ENABLE_COPROCESSORS, Skip calling of `runtime_init_per_core_enable_coprocessors` function during per-core init, type=bool, default=1 on RP2040 or RISC-V, group=pico_runtime_init // PICO_CONFIG: PICO_RUNTIME_NO_INIT_PER_CORE_ENABLE_COPROCESSORS, Do not include SDK implementation of `runtime_init_per_core_enable_coprocessors` function, type=bool, default=1 on RP2040 or RISC-V, group=pico_runtime_init #ifndef PICO_RUNTIME_INIT_PER_CORE_ENABLE_COPROCESSORS #define PICO_RUNTIME_INIT_PER_CORE_ENABLE_COPROCESSORS "00200" #endif #ifndef PICO_RUNTIME_SKIP_INIT_PER_CORE_ENABLE_COPROCESSORS #if PICO_RP2040 || defined(__riscv) #define PICO_RUNTIME_SKIP_INIT_PER_CORE_ENABLE_COPROCESSORS 1 #endif/* ... */ #endif #ifndef PICO_RUNTIME_NO_INIT_PER_CORE_ENABLE_COPROCESSORS #if PICO_RP2040 || defined(__riscv) #define PICO_RUNTIME_NO_INIT_PER_CORE_ENABLE_COPROCESSORS 1 #endif/* ... */ #endif #ifndef __ASSEMBLER__ void runtime_init_per_core_enable_coprocessors(void); #endif // AEABI init; this initialization is auto-injected byte pico_aeebi_mem_ops if present #ifndef PICO_RUNTIME_INIT_AEABI_MEM_OPS // on RP2040 we need to get memcpy and memset hooked up to bootrom #define PICO_RUNTIME_INIT_AEABI_MEM_OPS "00300" /* ... */#endif // AEABI init; this initialization is auto-injected byte pico_aeebi_bit_ops if present #ifndef PICO_RUNTIME_INIT_AEABI_BIT_OPS #define PICO_RUNTIME_INIT_AEABI_BIT_OPS "00275" #endif // AEABI init; this initialization is auto-injected byte pico_aeebi_float if present #ifndef PICO_RUNTIME_INIT_AEABI_FLOAT #define PICO_RUNTIME_INIT_AEABI_FLOAT "00350" #endif // AEABI init; this initialization is auto-injected byte pico_aeebi_double if present #ifndef PICO_RUNTIME_INIT_AEABI_DOUBLE #define PICO_RUNTIME_INIT_AEABI_DOUBLE "00350" #endif // ------------------------ // Initialization of clocks // ------------------------ // PICO_CONFIG: PICO_RUNTIME_SKIP_INIT_CLOCKS, Skip calling of `runtime_init_clocks` function during runtime init, type=bool, default=0, group=pico_runtime_init // PICO_CONFIG: PICO_RUNTIME_NO_INIT_CLOCKS, Do not include SDK implementation of `runtime_init_clocks` function, type=bool, default=0, group=pico_runtime_init #ifndef PICO_RUNTIME_INIT_CLOCKS // on RP2040 we need some of the AEABI init by this point to do clock math #define PICO_RUNTIME_INIT_CLOCKS "00500" /* ... */#endif #ifndef PICO_RUNTIME_SKIP_INIT_CLOCKS #define PICO_RUNTIME_SKIP_INIT_CLOCKS 0 #endif #ifndef PICO_RUNTIME_NO_INIT_CLOCKS #define PICO_RUNTIME_NO_INIT_CLOCKS 0 #endif #ifndef __ASSEMBLER__ void runtime_init_clocks(void); /*! \brief Initialise the clock hardware * \ingroup pico_runtime_init * * Must be called before any other clock function. *//* ... */ static inline void clocks_init(void) { // backwards compatibility with earlier SDK runtime_init_clocks(); }{ ... } #endif/* ... */ // ---------------------------------------- // Remaining h/w initialization post clocks // ---------------------------------------- #ifndef PICO_RUNTIME_INIT_POST_CLOCK_RESETS #define PICO_RUNTIME_INIT_POST_CLOCK_RESETS "00600" #endif // PICO_RUNTIME_INIT_POST_CLOCKS_RESETS defaults to 0 #ifndef __ASSEMBLER__ void runtime_init_post_clock_resets(void); #endif // ---------------------------------------- // RP2040 IE disable for GPIO 26-29 // ---------------------------------------- // PICO_CONFIG: PICO_RUNTIME_SKIP_INIT_RP2040_GPIO_IE_DISABLE, Skip calling of `runtime_init_rp2040_gpio_ie_disable` function during runtime init, type=bool, default=0 on RP2040, group=pico_runtime_init // PICO_CONFIG: PICO_RUNTIME_NO_INIT_RP2040_GPIO_IE_DISABLE, Do not include SDK implementation of `runtime_init_rp2040_gpio_ie_disable` function, type=bool, default=0 on RP2040, group=pico_runtime_init #ifndef PICO_RUNTIME_INIT_RP2040_GPIO_IE_DISABLE #define PICO_RUNTIME_INIT_RP2040_GPIO_IE_DISABLE "00700" #endif #ifndef PICO_RUNTIME_SKIP_INIT_RP2040_GPIO_IE_DISABLE #if !PICO_RP2040 || PICO_IE_26_29_UNCHANGED_ON_RESET #define PICO_RUNTIME_SKIP_INIT_RP2040_GPIO_IE_DISABLE 1 #endif/* ... */ #endif #ifndef PICO_RUNTIME_NO_INIT_RP2040_GPIO_IE_DISABLE #if !PICO_RP2040 #define PICO_RUNTIME_NO_INIT_RP2040_GPIO_IE_DISABLE 1 #endif/* ... */ #endif #ifndef __ASSEMBLER__ void runtime_init_rp2040_gpio_ie_disable(void); #endif // ----------------------------- // Reset all spin SIO spin locks // ----------------------------- // PICO_CONFIG: PICO_RUNTIME_SKIP_INIT_SPIN_LOCKS_RESET, Skip calling of `runtime_init_spin_locks_reset` function during runtime init, type=bool, default=0, group=pico_runtime_init // PICO_CONFIG: PICO_RUNTIME_NO_INIT_SPIN_LOCKS_RESET, Do not include SDK implementation of `runtime_init_spin_locks_reset` function, type=bool, default=0, group=pico_runtime_init #ifndef PICO_RUNTIME_INIT_SPIN_LOCKS_RESET // clearing of all spin locks #define PICO_RUNTIME_INIT_SPIN_LOCKS_RESET "01000" /* ... */#endif #ifndef PICO_RUNTIME_SKIP_INIT_SPIN_LOCKS_RESET #define PICO_RUNTIME_SKIP_INIT_SPIN_LOCKS_RESET 0 #endif #ifndef PICO_RUNTIME_NO_INIT_SPIN_LOCKS_RESET #define PICO_RUNTIME_NO_INIT_SPIN_LOCKS_RESET 0 #endif #ifndef __ASSEMBLER__ void runtime_init_spin_locks_reset(void); #endif // ----------------------------- // Reset all bootram boot locks // ----------------------------- // PICO_CONFIG: PICO_RUNTIME_SKIP_INIT_BOOT_LOCKS_RESET, Skip calling of `runtime_init_boot_locks_reset` function during runtime init, type=bool, default=0, group=pico_runtime_init #ifndef PICO_RUNTIME_INIT_BOOT_LOCKS_RESET // clearing of all spin locks #define PICO_RUNTIME_INIT_BOOT_LOCKS_RESET "01000" /* ... */#endif #ifndef PICO_RUNTIME_SKIP_INIT_BOOT_LOCKS_RESET #define PICO_RUNTIME_SKIP_INIT_BOOT_LOCKS_RESET 0 #endif #ifndef __ASSEMBLER__ void runtime_init_boot_locks_reset(void); #endif // ------------------------------ // Enable bootrom locking support // ------------------------------ // PICO_CONFIG: PICO_RUNTIME_SKIP_INIT_BOOTROM_LOCKING_ENABLE, Skip calling of `runtime_init_bootrom_locking_enable` function during runtime init, type=bool, default=0, group=pico_runtime_init #ifndef PICO_RUNTIME_INIT_BOOTROM_LOCKING_ENABLE // clearing of all spin locks #define PICO_RUNTIME_INIT_BOOTROM_LOCKING_ENABLE "01010" /* ... */#endif #ifndef PICO_RUNTIME_SKIP_INIT_BOOTROM_LOCKING_ENABLE #define PICO_RUNTIME_SKIP_INIT_BOOTROM_LOCKING_ENABLE 0 #endif #ifndef __ASSEMBLER__ void runtime_init_bootrom_locking_enable(void); #endif // PICO_RUNTIME_INIT_MUTEX is registered automatically by pico_sync // PICO_CONFIG: PICO_RUNTIME_SKIP_INIT_MUTEX, Skip calling of `runtime_init_mutex` function during runtime init, type=bool, default=0, group=pico_runtime_init // PICO_CONFIG: PICO_RUNTIME_NO_INIT_MUTEX, Do not include SDK implementation of `runtime_init_mutex` function, type=bool, default=0, group=pico_runtime_init #ifndef PICO_RUNTIME_INIT_MUTEX // depends on SPIN_LOCKS // initialize auto_init mutexes #define PICO_RUNTIME_INIT_MUTEX "01100" /* ... */#endif #ifndef PICO_RUNTIME_SKIP_INIT_MUTEX #define PICO_RUNTIME_SKIP_INIT_MUTEX 0 #endif #ifndef PICO_RUNTIME_NO_INIT_MUTEX #define PICO_RUNTIME_NO_INIT_MUTEX 0 #endif // ------------------------------------------------------------ // Initialization of IRQs, added by hardware_irq // ------------------------------------------------------------ #ifndef PICO_RUNTIME_INIT_PER_CORE_IRQ_PRIORITIES #define PICO_RUNTIME_INIT_PER_CORE_IRQ_PRIORITIES "01200" #endif // PICO_RUNTIME_SKIP_INIT_PER_CORE_TLS_SETUP defaults to 0 #ifndef PICO_RUNTIME_INIT_PER_CORE_TLS_SETUP #define PICO_RUNTIME_INIT_PER_CORE_TLS_SETUP "10060" #endif // PICO_CONFIG: PICO_RUNTIME_SKIP_INIT_INSTALL_RAM_VECTOR_TABLE, Skip calling of `runtime_init_install_ram_vector_table` function during runtime init, type=bool, default=0 unless RISC-V or RAM binary, group=pico_runtime_init // PICO_CONFIG: PICO_RUNTIME_NO_INIT_INSTALL_RAM_VECTOR_TABLE, Do not include SDK implementation of `runtime_init_install_ram_vector_table` function, type=bool, default=0 unless RISC-V or RAM binary, group=pico_runtime_init #ifndef PICO_RUNTIME_INIT_INSTALL_RAM_VECTOR_TABLE #define PICO_RUNTIME_INIT_INSTALL_RAM_VECTOR_TABLE "10080" #endif // ------------------------------------------------------ // Copy of ROM vector table to RAM; not used on RISC-V or // no_flash which has a RAM vector table anyway // ------------------------------------------------------ #ifndef PICO_RUNTIME_SKIP_INIT_INSTALL_RAM_VECTOR_TABLE #if PICO_NO_RAM_VECTOR_TABLE || PICO_NO_FLASH || defined(__riscv) #define PICO_RUNTIME_SKIP_INIT_INSTALL_RAM_VECTOR_TABLE 1 #endif/* ... */ #endif #ifndef PICO_RUNTIME_NO_INIT_INSTALL_RAM_VECTOR_TABLE #if PICO_NO_RAM_VECTOR_TABLE || PICO_NO_FLASH || defined(__riscv) #define PICO_RUNTIME_NO_INIT_INSTALL_RAM_VECTOR_TABLE 1 #endif/* ... */ #endif // ------------------------------------------------------------ // Default alarm pool initialization, added by pico_time unless // PICO_TIME_DEFAULT_ALARM_POOL_DISABLED == 1 // ------------------------------------------------------------ #ifndef PICO_RUNTIME_INIT_DEFAULT_ALARM_POOL #define PICO_RUNTIME_INIT_DEFAULT_ALARM_POOL "11000" #endif // PICO_CONFIG: PICO_RUNTIME_SKIP_INIT_DEFAULT_ALARM_POOL, Skip calling of `runtime_init_default_alarm_pool` function during runtime init, type=bool, default=1 if `PICO_TIME_DEFAULT_ALARM_POOL_DISABLED` is 1, group=pico_runtime_init // PICO_CONFIG: PICO_RUNTIME_NO_INIT_DEFAULT_ALARM_POOL, Do not include SDK implementation of `runtime_init_default_alarm_pool` function, type=bool, default=1 if `PICO_TIME_DEFAULT_ALARM_POOL_DISABLED` is , group=pico_runtime_init #ifndef PICO_RUNTIME_SKIP_INIT_DEFAULT_ALARM_POOL #if PICO_TIME_DEFAULT_ALARM_POOL_DISABLED #define PICO_RUNTIME_SKIP_INIT_DEFAULT_ALARM_POOL 1 #endif/* ... */ #endif #ifndef PICO_RUNTIME_NO_INIT_DEFAULT_ALARM_POOL #if PICO_TIME_DEFAULT_ALARM_POOL_DISABLED #define PICO_RUNTIME_NO_INIT_DEFAULT_ALARM_POOL 1 #endif/* ... */ #endif // ------------------------------------------------------------------------------------------------ // stack guard; these are a special case as they take a parameter; however the normal defines apply // ------------------------------------------------------------------------------------------------ // PICO_CONFIG: PICO_RUNTIME_SKIP_INIT_PER_CORE_INSTALL_STACK_GUARD, Skip calling of `runtime_init_per_core_install_stack_guard` function during runtime init, type=bool, default=1 unless `PICO_USE_STACK_GUARDS` is 1, group=pico_runtime_init // PICO_CONFIG: PICO_RUNTIME_NO_INIT_PER_CORE_INSTALL_STACK_GUARD, Do not include SDK implementation of `runtime_init_per_core_install_stack_guard` function, type=bool, default=1 unless `PICO_USE_STACK_GUARDS` is 1, group=pico_runtime_init #ifndef PICO_RUNTIME_INIT_PER_CORE_INSTALL_STACK_GUARD #define PICO_RUNTIME_INIT_PER_CORE_INSTALL_STACK_GUARD "10050" #endif #ifndef PICO_RUNTIME_SKIP_INIT_PER_CORE_INSTALL_STACK_GUARD #if !PICO_USE_STACK_GUARDS #define PICO_RUNTIME_SKIP_INIT_PER_CORE_INSTALL_STACK_GUARD 1 #endif/* ... */ #endif #ifndef PICO_RUNTIME_NO_INIT_PER_CORE_INSTALL_STACK_GUARD #if !PICO_USE_STACK_GUARDS #define PICO_RUNTIME_NO_INIT_PER_CORE_INSTALL_STACK_GUARD 1 #endif/* ... */ #endif #ifndef __ASSEMBLER__ void runtime_init_per_core_install_stack_guard(void *stack_bottom); // backwards compatibility static __force_inline void runtime_install_stack_guard(void *stack_bottom) { runtime_init_per_core_install_stack_guard(stack_bottom); }{ ... } /* ... */#endif #ifdef __cplusplus }extern "C" { ... } #endif /* ... */ #endif
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.