mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-17 02:52:12 +01:00
Move the #defines to pios_config.h
Add some comments to pios.c so people know where the settings are loaded. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@84 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
5e15e853e6
commit
b888eb3813
@ -28,7 +28,20 @@
|
||||
#ifndef PIOS_CONFIG_H
|
||||
#define PIOS_CONFIG_H
|
||||
|
||||
/* Compile Time Macros */
|
||||
|
||||
|
||||
/* Defaults for MinIni */
|
||||
|
||||
/* COM Module */
|
||||
#define GPS_BAUDRATE 19200
|
||||
#define TELEM_BAUDRATE 19200
|
||||
#define AUXUART_ENABLED 0
|
||||
#define AUXUART_BAUDRATE 19200
|
||||
|
||||
/* Servos */
|
||||
#define SERVOS_POSITION_MIN 800
|
||||
#define SERVOS_POSITION_MAX 2200
|
||||
|
||||
|
||||
#endif /* PIOS_CONFIG_H */
|
||||
|
@ -26,16 +26,6 @@
|
||||
#ifndef PIOS_SETTINGS_H
|
||||
#define PIOS_SETTINGS_H
|
||||
|
||||
/* Default Values */
|
||||
#define GPS_BAUDRATE 19200
|
||||
|
||||
#define TELEM_BAUDRATE 19200
|
||||
|
||||
#define AUXUART_ENABLED 0
|
||||
#define AUXUART_BAUDRATE 19200
|
||||
|
||||
#define SERVOS_POSITION_MIN 800
|
||||
#define SERVOS_POSITION_MAX 2200
|
||||
|
||||
/* Global types */
|
||||
typedef struct {
|
||||
|
@ -51,18 +51,25 @@ static void HooksTask(void *pvParameters);
|
||||
*/
|
||||
int main()
|
||||
{
|
||||
/* Setup Hardware */
|
||||
|
||||
/* Brings up System using CMSIS functions,
|
||||
enables the LEDs and mounts the SDCard,
|
||||
loads global systems settings. */
|
||||
PIOS_SYS_Init();
|
||||
|
||||
/* Com ports init */
|
||||
PIOS_COM_Init();
|
||||
|
||||
/* Analog to digi init */
|
||||
PIOS_ADC_Init();
|
||||
|
||||
/* Initialise OpenPilot */
|
||||
/* Initialise OpenPilot application */
|
||||
OpenPilotInit();
|
||||
|
||||
/* Start the task which calls the application hooks */
|
||||
xTaskCreate(HooksTask, (signed portCHAR *)"Hooks", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_HOOKS, NULL);
|
||||
|
||||
/* Start the scheduler */
|
||||
/* Start the FreeRTOS scheduler */
|
||||
vTaskStartScheduler();
|
||||
|
||||
/* If all is well we will never reach here as the scheduler will now be running. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user