1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

OP-423: Change capital on macro to be uppercase for consistency.

This commit is contained in:
Mathieu Rondonneau 2011-06-24 22:03:03 -07:00
parent dcd2774103
commit de55c56427
18 changed files with 21 additions and 21 deletions

View File

@ -88,7 +88,7 @@ int32_t AHRSCommsInitialize(void)
return 0;
}
module_initcall(AHRSCommsInitialize, 0, AHRSCommsStart, 0, MODULE_EXEC_NOORDER_FLAG);
MODULE_INITCALL(AHRSCommsInitialize, 0, AHRSCommsStart, 0, MODULE_EXEC_NOORDER_FLAG);
/**
* Module thread, should not return.

View File

@ -116,7 +116,7 @@ int32_t ActuatorInitialize()
return 0;
}
module_initcall(ActuatorInitialize, 0, ActuatorStart, 0, MODULE_EXEC_NOORDER_FLAG);
MODULE_INITCALL(ActuatorInitialize, 0, ActuatorStart, 0, MODULE_EXEC_NOORDER_FLAG);
/**
* @brief Main Actuator module task

View File

@ -90,7 +90,7 @@ int32_t AltitudeInitialize()
return 0;
}
module_initcall(AltitudeInitialize, 0, AltitudeStart, 0, MODULE_EXEC_NOORDER_FLAG);
MODULE_INITCALL(AltitudeInitialize, 0, AltitudeStart, 0, MODULE_EXEC_NOORDER_FLAG);
/**
* Module thread, should not return.
*/

View File

@ -131,7 +131,7 @@ int32_t AttitudeInitialize(void)
return 0;
}
module_initcall(AttitudeInitialize, 0, AttitudeStart, 0, MODULE_EXEC_NOORDER_FLAG);
MODULE_INITCALL(AttitudeInitialize, 0, AttitudeStart, 0, MODULE_EXEC_NOORDER_FLAG);
/**
* Module thread, should not return.

View File

@ -75,7 +75,7 @@ static void onTimer(UAVObjEvent* ev);
* Initialise the module, called on startup
* \returns 0 on success or -1 if initialisation failed
*/
module_initcall(BatteryInitialize, 0);
MODULE_INITCALL(BatteryInitialize, 0, 0, 0, MODULE_EXEC_NOORDER_FLAG);
int32_t BatteryInitialize(void)
{
static UAVObjEvent ev;

View File

@ -59,4 +59,4 @@ void ExampleInitialize(void)
{
ExampleModEventInitialize();
}
module_initcall(ExampleInitialize, 0, ExampleStart, 0, MODULE_EXEC_NOORDER_FLAG);
MODULE_INITCALL(ExampleInitialize, 0, ExampleStart, 0, MODULE_EXEC_NOORDER_FLAG);

View File

@ -88,7 +88,7 @@ static void resetTask(UAVObjEvent *);
* \note
*
*/
module_initcall(FirmwareIAPInitialize, 0, 0, 0, MODULE_EXEC_NOORDER_FLAG);
MODULE_INITCALL(FirmwareIAPInitialize, 0, 0, 0, MODULE_EXEC_NOORDER_FLAG);
int32_t FirmwareIAPInitialize()
{
const struct pios_board_info * bdinfo = &pios_board_info_blob;

View File

@ -86,7 +86,7 @@ int32_t FlightPlanInitialize()
return 0;
}
module_initcall(FlightPlanInitialize, 0, FlightPlanStart, 0, MODULE_EXEC_NOORDER_FLAG);
MODULE_INITCALL(FlightPlanInitialize, 0, FlightPlanStart, 0, MODULE_EXEC_NOORDER_FLAG);
/**
* Module task
*/

View File

@ -129,7 +129,7 @@ int32_t GPSInitialize(void)
return 0;
}
module_initcall(GPSInitialize, 0, GPSStart, 0, MODULE_EXEC_NOORDER_FLAG);
MODULE_INITCALL(GPSInitialize, 0, GPSStart, 0, MODULE_EXEC_NOORDER_FLAG);
// ****************
/**

View File

@ -105,7 +105,7 @@ int32_t GuidanceInitialize()
return 0;
}
module_initcall(GuidanceInitialize, 0, GuidanceStart, 0, MODULE_EXEC_NOORDER_FLAG);
MODULE_INITCALL(GuidanceInitialize, 0, GuidanceStart, 0, MODULE_EXEC_NOORDER_FLAG);
static float northVelIntegral = 0;
static float eastVelIntegral = 0;

View File

@ -170,7 +170,7 @@ int32_t ManualControlInitialize()
//ManualControlStart();
return 0;
}
module_initcall(ManualControlInitialize, 0, ManualControlStart, 0, MODULE_EXEC_NOORDER_FLAG);
MODULE_INITCALL(ManualControlInitialize, 0, ManualControlStart, 0, MODULE_EXEC_NOORDER_FLAG);
/**
* Module task

View File

@ -121,7 +121,7 @@ int32_t StabilizationInitialize()
return 0;
}
module_initcall(StabilizationInitialize, 0, StabilizationStart, 0, MODULE_EXEC_NOORDER_FLAG);
MODULE_INITCALL(StabilizationInitialize, 0, StabilizationStart, 0, MODULE_EXEC_NOORDER_FLAG);
/**
* Module task

View File

@ -111,7 +111,7 @@ int32_t SystemModInitialize(void)
return 0;
}
module_initcall(SystemModInitialize, 0, 0, 0, MODULE_EXEC_FIRST_FLAG);
MODULE_INITCALL(SystemModInitialize, 0, 0, 0, MODULE_EXEC_FIRST_FLAG);
/**
* System task, periodically executes every SYSTEM_UPDATE_PERIOD_MS
*/

View File

@ -143,7 +143,7 @@ int32_t TelemetryInitialize(void)
return 0;
}
module_initcall(TelemetryInitialize, 0, TelemetryStart, 0, MODULE_EXEC_LAST_FLAG);
MODULE_INITCALL(TelemetryInitialize, 0, TelemetryStart, 0, MODULE_EXEC_LAST_FLAG);
/**
* Register a new object, adds object to local list and connects the queue depending on the object's

View File

@ -38,8 +38,8 @@
* and we cannot define a linker script for each of them atm
*/
#define uavobj_initcall(fn)
#define module_initcall(ifn, iparam, sfn, sparam, flags)
#define UAVOBJ_INITCALL(fn)
#define MODULE_INITCALL(ifn, iparam, sfn, sparam, flags)
#define MODULE_TASKCREATE_ALL();

View File

@ -38,8 +38,8 @@
* and we cannot define a linker script for each of them atm
*/
#define uavobj_initcall(fn)
#define module_initcall(ifn, iparam, sfn, sparam, flags)
#define UAVOBJ_INITCALL(fn)
#define MODULE_INITCALL(ifn, iparam, sfn, sparam, flags)
#define MODULE_TASKCREATE_ALL();

View File

@ -73,8 +73,8 @@ extern initmodule_t __module_initcall_start[], __module_initcall_end[];
static initmodule_t __initcall_##fn __attribute__((__used__)) \
__attribute__((__section__(".initcall" level ".init"))) = { .flag = param, .param_minit = iparam, .fn_minit = ifn, .param_tinit = sparam, .fn_tinit = sfn }
#define uavobj_initcall(fn) __define_initcall("uavobj",fn,1)
#define module_initcall(ifn, iparam, sfn, sparam, flags) __define_module_initcall("module", ifn, iparam, sfn, sparam, flags)
#define UAVOBJ_INITCALL(fn) __define_initcall("uavobj",fn,1)
#define MODULE_INITCALL(ifn, iparam, sfn, sparam, flags) __define_module_initcall("module", ifn, iparam, sfn, sparam, flags)
#define MODULE_INITIALISE_ALL(); for (initmodule_t *fn = __module_initcall_start; fn < __module_initcall_end; fn++) \
if (fn->fn_minit && ( (fn->flag & MODULE_EXEC_FIRST_FLAG) == MODULE_EXEC_FIRST_FLAG) ) \

View File

@ -64,7 +64,7 @@ int32_t $(NAME)Initialize(void)
}
}
uavobj_initcall($(NAME)Initialize);
UAVOBJ_INITCALL($(NAME)Initialize);
/**
* Initialize object fields and metadata with the default values.