cpu_conf.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2025 Tom Hert <git@annsann.eu>
3  * SPDX-FileCopyrightText: 2025 HAW Hamburg
4  * SPDX-License-Identifier: LGPL-2.1-only
5  */
6 
7 #pragma once
8 
18 #include "RP2350.h"
19 #include "core_cm33.h"
20 #include "cpu_conf_common.h"
21 
22 #define CPU_DEFAULT_IRQ_PRIO 1u
23 #define CPU_IRQ_NUMOF 52u
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 /* Table 37 FIFO_ST, 1 if not empty*/
30 #define SIO_FIFO_READ_VALID_BIT 0
31 /* TABLE 37, 1 if not full */
32 #define SIO_FIFO_SEND_READY_BIT 1
33 #define core1_psm_bit 24
34 
38 static volatile uint32_t core_1_stack[16*THREAD_STACKSIZE_DEFAULT];
39 
44 typedef void *(*core_1_fn_t)(void *arg);
45 
51 void core1_init(core_1_fn_t function, void *arg);
52 
58 void _core1_trampoline(void);
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
#define THREAD_STACKSIZE_DEFAULT
Default thread stack size.
Definition: cpu_conf.h:41
void *(* core_1_fn_t)(void *arg)
The function signature used for any function passed onto core 1.
Definition: cpu_conf.h:44
void _core1_trampoline(void)
This is the internal trampoline setting everything up before the entry function gets executed,...
void core1_init(core_1_fn_t function, void *arg)
Init Core 1.
static volatile uint32_t core_1_stack[16 *THREAD_STACKSIZE_DEFAULT]
The stack used by core 1, 16 times the thread stack size.
Definition: cpu_conf.h:38