NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ninja_sched.h File Reference
#include <stdbool.h>
Include dependency graph for ninja_sched.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cfTaskInfo_t
 
struct  cfTask_s
 
struct  ninja_sched
 

Macros

#define LOAD_PERCENTAGE_ONE   100
 

Typedefs

typedef struct cfTask_s cfTask_t
 

Enumerations

enum  cfTaskPriority_e {
  TASK_PRIORITY_IDLE = 0, TASK_PRIORITY_LOW = 1, TASK_PRIORITY_MEDIUM = 3, TASK_PRIORITY_HIGH = 5,
  TASK_PRIORITY_REALTIME = 6, TASK_PRIORITY_MAX = 255
}
 
enum  cfTaskId_e {
  TASK_SYSTEM = 0, TASK_GYROPID, TASK_ACCEL, TASK_SERIAL,
  TASK_BEEPER, TASK_BATTERY, TASK_RX, TASK_COMPASS,
  TASK_TRANSPONDER, TASK_COUNT, TASK_NONE = TASK_COUNT, TASK_SELF
}
 

Functions

void ninja_sched_init (struct ninja_sched *self, const struct system_calls_time *time, const struct config *config)
 
void ninja_sched_run (struct ninja_sched *self)
 
void ninja_sched_get_task_info (struct ninja_sched *self, cfTaskId_e taskId, cfTaskInfo_t *taskInfo)
 
uint16_t ninja_sched_get_load (struct ninja_sched *self)
 

Macro Definition Documentation

#define LOAD_PERCENTAGE_ONE   100

Typedef Documentation

typedef struct cfTask_s cfTask_t

Enumeration Type Documentation

enum cfTaskId_e
Enumerator
TASK_SYSTEM 
TASK_GYROPID 
TASK_ACCEL 
TASK_SERIAL 
TASK_BEEPER 
TASK_BATTERY 
TASK_RX 
TASK_COMPASS 
TASK_TRANSPONDER 
TASK_COUNT 
TASK_NONE 
TASK_SELF 
Enumerator
TASK_PRIORITY_IDLE 
TASK_PRIORITY_LOW 
TASK_PRIORITY_MEDIUM 
TASK_PRIORITY_HIGH 
TASK_PRIORITY_REALTIME 
TASK_PRIORITY_MAX