mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-17 02:52:12 +01:00
Fixed some bugs in OpenPilot Core.
- syntax error in pios_board_posix.c introduced with Doxygen comment blocks - platform dependant code had been added to openpilot.c instead of pios_board.c - redundant header inclusion (stm32... already included by PiOS) git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1171 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
32e6d53b23
commit
c8486d08e4
@ -36,7 +36,6 @@
|
||||
#include "openpilot.h"
|
||||
#include "uavobjectsinit.h"
|
||||
#include "systemmod.h"
|
||||
#include "stm32f10x.h"
|
||||
|
||||
/* Task Priorities */
|
||||
#define PRIORITY_TASK_HOOKS (tskIDLE_PRIORITY + 3)
|
||||
@ -86,9 +85,6 @@ int main()
|
||||
/* Brings up System using CMSIS functions, enables the LEDs. */
|
||||
PIOS_SYS_Init();
|
||||
|
||||
WWDG_SetPrescaler(WWDG_Prescaler_8);
|
||||
WWDG_SetWindowValue(0xff);
|
||||
|
||||
/* Initialize the system thread */
|
||||
SystemModInitialize();
|
||||
|
||||
|
@ -78,6 +78,10 @@ void PIOS_Board_Init(void) {
|
||||
#endif
|
||||
//PIOS_I2C_Init();
|
||||
|
||||
WWDG_SetPrescaler(WWDG_Prescaler_8);
|
||||
WWDG_SetWindowValue(0xff);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* MicroSD Interface
|
||||
|
@ -138,4 +138,3 @@ const uint8_t pios_com_num_devices = NELEMENTS(pios_com_devs);
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user