Landtiger LPC1768 C BigLib 1
A self made, custom C library for the LandTiger board.
 
Loading...
Searching...
No Matches
rit_types.h File Reference

Go to the source code of this file.

Macros

#define _RIT_JOB
 
#define RIT_NO_DIVIDER   1
 Tells the RIT that the specified job needs to be executed at exactly the interval of interrupts chosen during initialization.
 

Typedefs

typedef void(* RIT_Job) (void)
 RIT interrupt function pointer for jobs that need to be executed in the RIT interrupt handler.
 

Enumerations

enum  RIT_Error {
  RIT_ERR_OK = 0 , RIT_ERR_NO_MORE_SPACE_FOR_JOBS , RIT_ERR_INT_PRIO_INVALID , RIT_ERR_INVALID_MULTIPLIER ,
  RIT_ERR_JOB_NOT_FOUND , RIT_ERR_DURING_PUSHBACK , RIT_ERR_DURING_REMOVEAT
}
 

Macro Definition Documentation

◆ _RIT_JOB

#define _RIT_JOB

Definition at line 4 of file rit_types.h.

◆ RIT_NO_DIVIDER

#define RIT_NO_DIVIDER   1

Tells the RIT that the specified job needs to be executed at exactly the interval of interrupts chosen during initialization.

Definition at line 8 of file rit_types.h.

Typedef Documentation

◆ RIT_Job

typedef void(* RIT_Job) (void)

RIT interrupt function pointer for jobs that need to be executed in the RIT interrupt handler.

Definition at line 38 of file rit_types.h.

Enumeration Type Documentation

◆ RIT_Error

enum RIT_Error
Enumerator
RIT_ERR_OK 

No errors.

RIT_ERR_NO_MORE_SPACE_FOR_JOBS 

An attempt was made to assign another job to the RIT, but the data structure is full.

RIT_ERR_INT_PRIO_INVALID 

An invalid priority was specified (must be 0 <= prio <= 15). This is not necessarily an error, could be treated as an alert that the custom priority has been ignored in favor of the default value.

RIT_ERR_INVALID_MULTIPLIER 

An invalid multiplier factor was specified (must be > 0).

RIT_ERR_JOB_NOT_FOUND 

The job specified was not found in the handler queue.

RIT_ERR_DURING_PUSHBACK 

An error occurred during the push back of the job in the list.

RIT_ERR_DURING_REMOVEAT 

An error occurred during the removal of the job from the list.

Definition at line 10 of file rit_types.h.

11{
13 RIT_ERR_OK = 0,
17
22
25
28
31
34} RIT_Error;
RIT_Error
Definition rit_types.h:11
@ RIT_ERR_DURING_PUSHBACK
An error occurred during the push back of the job in the list.
Definition rit_types.h:30
@ RIT_ERR_INVALID_MULTIPLIER
An invalid multiplier factor was specified (must be > 0).
Definition rit_types.h:24
@ RIT_ERR_INT_PRIO_INVALID
An invalid priority was specified (must be 0 <= prio <= 15). This is not necessarily an error,...
Definition rit_types.h:21
@ RIT_ERR_OK
No errors.
Definition rit_types.h:13
@ RIT_ERR_JOB_NOT_FOUND
The job specified was not found in the handler queue.
Definition rit_types.h:27
@ RIT_ERR_DURING_REMOVEAT
An error occurred during the removal of the job from the list.
Definition rit_types.h:33
@ RIT_ERR_NO_MORE_SPACE_FOR_JOBS
An attempt was made to assign another job to the RIT, but the data structure is full.
Definition rit_types.h:16