Go to the source code of this file.
◆ IRONSIDE_CALL_ID_CPUCONF_V0
#define IRONSIDE_CALL_ID_CPUCONF_V0 2 |
◆ IRONSIDE_CPUCONF_ERROR_MESSAGE_TOO_LARGE
#define IRONSIDE_CPUCONF_ERROR_MESSAGE_TOO_LARGE (2) |
The boot message is too large to fit in the buffer.
◆ IRONSIDE_CPUCONF_ERROR_WRONG_CPU
#define IRONSIDE_CPUCONF_ERROR_WRONG_CPU (1) |
An invalid or unsupported processor ID was specified.
◆ IRONSIDE_CPUCONF_SERVICE_MSG_MAX_SIZE
◆ IRONSIDE_CPUCONF_SERVICE_RETCODE_IDX
#define IRONSIDE_CPUCONF_SERVICE_RETCODE_IDX 0 |
◆ anonymous enum
Enumerator |
---|
IRONSIDE_CPUCONF_SERVICE_CPU_PARAMS_IDX | |
IRONSIDE_CPUCONF_SERVICE_VECTOR_TABLE_IDX | |
IRONSIDE_CPUCONF_SERVICE_MSG_0 | |
IRONSIDE_CPUCONF_SERVICE_MSG_1 | |
IRONSIDE_CPUCONF_SERVICE_MSG_2 | |
IRONSIDE_CPUCONF_SERVICE_MSG_3 | |
IRONSIDE_CPUCONF_NUM_ARGS | |
◆ ironside_cpuconf()
int ironside_cpuconf |
( |
NRF_PROCESSORID_Type |
cpu, |
|
|
const void * |
vector_table, |
|
|
bool |
cpu_wait, |
|
|
const uint8_t * |
msg, |
|
|
size_t |
msg_size |
|
) |
| |
Boot a local domain CPU.
- Parameters
-
cpu | The CPU to be booted |
vector_table | Pointer to the vector table used to boot the CPU. |
cpu_wait | When this is true, the CPU will WAIT even if the CPU has clock. |
msg | A message that can be placed in radiocore's boot report. |
msg_size | Size of the message in bytes. |
- Note
- cpu_wait is only intended to be enabled for debug purposes and it is only supported that a debugger resumes the CPU.
-
the call always sends IRONSIDE_CPUCONF_SERVICE_MSG_MAX_SIZE message bytes. If the given msg_size is less than that, the remaining bytes are set to zero.
- Return values
-
0 | on success or if the CPU has already booted. |
Positive | non-0 error status if reported by IRONside call. |
-IRONSIDE_CPUCONF_ERROR_WRONG_CPU | if cpu is unrecognized |
-IRONSIDE_CPUCONF_ERROR_MESSAGE_TOO_LARGE | if msg_size is greater than IRONSIDE_CPUCONF_SERVICE_MSG_MAX_SIZE. |