dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

Initcall Macros. More...

Data Structures

struct  initmodule_t
 

Macros

#define __define_module_initcall(level, ifn, sfn)
 
#define MODULE_HIPRI_INITCALL(ifn, sfn)   __define_module_initcall("a_module", ifn, sfn)
 
#define MODULE_INITCALL(ifn, sfn)   __define_module_initcall("module", ifn, sfn)
 
#define MODULE_INITIALISE_ALL(wdgfn)
 
#define MODULE_TASKCREATE_ALL
 
#define MODULE_INITCALL(ifn, sfn)
 
#define MODULE_HIPRI_INITCALL(ifn, sfn)
 
#define MODULE_INITSYSTEM_DECLS
 
#define MODULE_INITIALISE_ALL(wdgfn)
 
#define MODULE_TASKCREATE_ALL
 

Typedefs

typedef int32_t(* initcall_t )(void)
 
typedef int32_t(* initcall_t )(void)
 

Variables

initmodule_t __module_initcall_start []
 
initmodule_t __module_initcall_end []
 
initmodule_t__module_initcall_start
 
initmodule_t__module_initcall_end
 
initmodule_t__module_hipriinitcall_start
 
initmodule_t__module_hipriinitcall_end
 

Detailed Description

Initcall Macros.

Macro Definition Documentation

#define __define_module_initcall (   level,
  ifn,
  sfn 
)
Value:
static initmodule_t __initcall_##fn __attribute__((__used__)) \
__attribute__((__section__(".initcall." level))) = { .fn_minit = ifn, .fn_tinit = sfn };
struct _msp_pid_item level
Definition: msp_messages.h:103
typedef __attribute__
Definition: serial_4way.h:43

Definition at line 62 of file pios_initcall.h.

#define MODULE_HIPRI_INITCALL (   ifn,
  sfn 
)
Value:
static void _add_init_fn(void) __attribute__((constructor)); \
static void _add_init_fn(void) { \
}
initcall_t fn_tinit
Definition: pios_initcall.h:48
initcall_t fn_minit
Definition: pios_initcall.h:47
initmodule_t * __module_hipriinitcall_end

Definition at line 54 of file pios_initcall.h.

#define MODULE_HIPRI_INITCALL (   ifn,
  sfn 
)    __define_module_initcall("a_module", ifn, sfn)

Definition at line 66 of file pios_initcall.h.

#define MODULE_INITCALL (   ifn,
  sfn 
)
Value:
static void _add_init_fn(void) __attribute__((constructor)); \
static void _add_init_fn(void) { \
}
initcall_t fn_tinit
Definition: pios_initcall.h:48
initcall_t fn_minit
Definition: pios_initcall.h:47
initmodule_t __module_initcall_end[]

Definition at line 46 of file pios_initcall.h.

#define MODULE_INITCALL (   ifn,
  sfn 
)    __define_module_initcall("module", ifn, sfn)

Definition at line 67 of file pios_initcall.h.

#define MODULE_INITIALISE_ALL (   wdgfn)
Value:
{ \
if (fn->fn_minit) \
(fn->fn_minit)(); \
(wdgfn)(); \
} \
}
initmodule_t __module_initcall_start[]
if(BaroAltitudeHandle()!=NULL)
initmodule_t __module_initcall_end[]

Definition at line 69 of file pios_initcall.h.

#define MODULE_INITIALISE_ALL (   wdgfn)
Value:
{ \
if (fn->fn_minit) \
(fn->fn_minit)(); \
(wdgfn)(); \
} ; \
if (fn->fn_minit) \
(fn->fn_minit)(); \
(wdgfn)(); \
} \
}
initmodule_t __module_initcall_start[]
initmodule_t * __module_hipriinitcall_end
if(BaroAltitudeHandle()!=NULL)
initmodule_t * __module_hipriinitcall_start
initmodule_t __module_initcall_end[]

Definition at line 70 of file pios_initcall.h.

#define MODULE_INITSYSTEM_DECLS
Value:
static initmodule_t __module_initcalls[256]; \
static initmodule_t __module_hipriinitcalls[256]; \
initmodule_t *__module_initcall_start = __module_initcalls; \
initmodule_t *__module_initcall_end = __module_initcalls; \
initmodule_t *__module_hipriinitcall_start = __module_hipriinitcalls; \
initmodule_t *__module_hipriinitcall_end = __module_hipriinitcalls;
initmodule_t __module_initcall_start[]
initmodule_t * __module_hipriinitcall_end
initmodule_t * __module_hipriinitcall_start
initmodule_t __module_initcall_end[]

Definition at line 62 of file pios_initcall.h.

#define MODULE_TASKCREATE_ALL
Value:
if (fn->fn_tinit) \
(fn->fn_tinit)(); }
initmodule_t __module_initcall_start[]
initmodule_t __module_initcall_end[]

Definition at line 77 of file pios_initcall.h.

#define MODULE_TASKCREATE_ALL
Value:
{ \
if (fn->fn_tinit) \
(fn->fn_tinit)(); \
} \
if (fn->fn_tinit) \
(fn->fn_tinit)(); \
} \
}
initmodule_t __module_initcall_start[]
initmodule_t * __module_hipriinitcall_end
if(BaroAltitudeHandle()!=NULL)
initmodule_t * __module_hipriinitcall_start
initmodule_t __module_initcall_end[]

Definition at line 83 of file pios_initcall.h.

Typedef Documentation

typedef int32_t(* initcall_t)(void)

Definition at line 35 of file pios_initcall.h.

typedef int32_t(* initcall_t)(void)

Definition at line 45 of file pios_initcall.h.

Variable Documentation

initmodule_t * __module_hipriinitcall_end
initmodule_t* __module_hipriinitcall_start
initmodule_t * __module_initcall_end
initmodule_t __module_initcall_end[]
initmodule_t* __module_initcall_start
initmodule_t __module_initcall_start[]