C Microkernel Realtime eXecutive
Realtime Operating System for Cortex-M based microcontrollers
 
Loading...
Searching...
No Matches
Named constants for errors

Types of errors system calls in CMRX can return. More...

Macros

#define E_OK   0
 No error. Operation completed successfully.
 
#define E_OUT_OF_RANGE   1
 Object ID passed by the caller is out of range.
 
#define E_OUT_OF_STACKS   2
 There is no stack space to be allocated for the thread.
 
#define E_TASK_RUNNING   3
 Internal error. Suggests that operation is made on thread that is already running while the semantics of the operation suggests is should not be.
 
#define E_INVALID_ADDRESS   4
 Internal error. Invalid address has been passed by the caller.
 
#define E_MISALIGNED   5
 Internal error. MPU region is misaligned and can't be configured into the hardware.
 
#define E_WRONG_SIZE   6
 Internal error. MPU region size is wrong.
 
#define E_BUSY   7
 Object is busy and can't complete the requested operation.
 
#define E_DEADLK   8
 Deadlock detected.
 
#define E_NOTAVAIL   9
 Object or service is not available.
 
#define E_INVALID   10
 Caller passed generally invalid argument.
 
#define E_IN_TOO_DEEP   11
 RPC call cannot be dispatched because this thread is already too deep in the RPC call tree.
 
#define E_OUT_OF_NOTIFICATIONS   12
 Too many pending notifications for differnt objects.
 
#define E_YIELD   13
 Scheduler yield is required.
 
#define E_TIMEOUT   14
 Operation timed out.
 
#define E_ACCESS   15
 Access denied.
 
#define E_OK_NO_WAIT   16
 No error.
 
#define E_OUT_OF_THREADS   0xFF
 Internal error. No more free threads.
 

Detailed Description

Types of errors system calls in CMRX can return.

Macro Definition Documentation

◆ E_ACCESS

#define E_ACCESS   15

Access denied.

◆ E_BUSY

#define E_BUSY   7

Object is busy and can't complete the requested operation.

◆ E_DEADLK

#define E_DEADLK   8

Deadlock detected.

◆ E_IN_TOO_DEEP

#define E_IN_TOO_DEEP   11

RPC call cannot be dispatched because this thread is already too deep in the RPC call tree.

◆ E_INVALID

#define E_INVALID   10

Caller passed generally invalid argument.

◆ E_INVALID_ADDRESS

#define E_INVALID_ADDRESS   4

Internal error. Invalid address has been passed by the caller.

◆ E_MISALIGNED

#define E_MISALIGNED   5

Internal error. MPU region is misaligned and can't be configured into the hardware.

◆ E_NOTAVAIL

#define E_NOTAVAIL   9

Object or service is not available.

◆ E_OK

#define E_OK   0

No error. Operation completed successfully.

◆ E_OK_NO_WAIT

#define E_OK_NO_WAIT   16

No error.

Operation completed successfully with no waiting.

Note
This error code is only reported where there is possibility of waiting and it makes sense to report waited/not waited state.

◆ E_OUT_OF_NOTIFICATIONS

#define E_OUT_OF_NOTIFICATIONS   12

Too many pending notifications for differnt objects.

◆ E_OUT_OF_RANGE

#define E_OUT_OF_RANGE   1

Object ID passed by the caller is out of range.

◆ E_OUT_OF_STACKS

#define E_OUT_OF_STACKS   2

There is no stack space to be allocated for the thread.

◆ E_OUT_OF_THREADS

#define E_OUT_OF_THREADS   0xFF

Internal error. No more free threads.

◆ E_TASK_RUNNING

#define E_TASK_RUNNING   3

Internal error. Suggests that operation is made on thread that is already running while the semantics of the operation suggests is should not be.

◆ E_TIMEOUT

#define E_TIMEOUT   14

Operation timed out.

◆ E_WRONG_SIZE

#define E_WRONG_SIZE   6

Internal error. MPU region size is wrong.

◆ E_YIELD

#define E_YIELD   13

Scheduler yield is required.