Loading...
Searching...
No Matches
multicore.h File Reference

CPU configuration for the RP2350. More...

Detailed Description

CPU configuration for the RP2350.

Author
Tom Hert git@a.nosp@m.nnsa.nosp@m.nn.eu

Definition in file multicore.h.

#include "periph_cpu.h"
#include "thread_config.h"
+ Include dependency graph for multicore.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define SIO_FIFO_READ_VALID_BIT   0
 Table 37 FIFO_ST, 1 if not empty.
 
#define SIO_FIFO_SEND_READY_BIT   1
 TABLE 37, 1 if not full.
 
#define core1_psm_bit   24
 PSM bit for core 1.
 
typedef void *(* core_1_fn_t) (void *arg)
 The function signature used for any function passed onto core 1.
 
static volatile uint8_t core_1_stack [THREAD_STACKSIZE_SECOND_CORE]
 Stack size for core 1.
 
void core1_reset (void)
 Reset Core 1, putting it back into the reset state.
 
void core1_init (core_1_fn_t function, void *arg)
 Init Core 1.
 
void _core1_trampoline (void)
 This is the internal trampoline setting everything up before the entry function gets executed, it retrieves the required data from the stack and then jumps to the designated function.
 

Macro Definition Documentation

◆ core1_psm_bit

#define core1_psm_bit   24

PSM bit for core 1.

Definition at line 30 of file multicore.h.

◆ SIO_FIFO_READ_VALID_BIT

#define SIO_FIFO_READ_VALID_BIT   0

Table 37 FIFO_ST, 1 if not empty.

Definition at line 26 of file multicore.h.

◆ SIO_FIFO_SEND_READY_BIT

#define SIO_FIFO_SEND_READY_BIT   1

TABLE 37, 1 if not full.

Definition at line 28 of file multicore.h.

Typedef Documentation

◆ core_1_fn_t

typedef void *(* core_1_fn_t) (void *arg)

The function signature used for any function passed onto core 1.

Definition at line 50 of file multicore.h.

Function Documentation

◆ core1_init()

void core1_init ( core_1_fn_t function,
void * arg )

Init Core 1.

Parameters
functionThe function to be loaded onto Core 1
argThe argument to pass onto the the function (NULL if none)

Variable Documentation

◆ core_1_stack

volatile uint8_t core_1_stack[THREAD_STACKSIZE_SECOND_CORE]
static

Stack size for core 1.

Note
If not defined, defaults to THREAD_STACKSIZE_MAIN The stack used by core 1
Size is defined by THREAD_STACKSIZE_SECOND_CORE

Definition at line 44 of file multicore.h.