mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
OP-11 Moved PIOS_BMP085_Init() since the OS must be running before the first I2C transfer can be issued
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@305 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
a2ea8b0e53
commit
c932e131f0
@ -99,8 +99,6 @@ int main()
|
|||||||
|
|
||||||
PIOS_I2C_Init();
|
PIOS_I2C_Init();
|
||||||
|
|
||||||
PIOS_BMP085_Init();
|
|
||||||
|
|
||||||
PIOS_Servo_SetHz(50, 450);
|
PIOS_Servo_SetHz(50, 450);
|
||||||
|
|
||||||
/* Create a FreeRTOS task */
|
/* Create a FreeRTOS task */
|
||||||
@ -145,8 +143,11 @@ static void TaskTesting(void *pvParameters)
|
|||||||
portTickType xDelay = 250 / portTICK_RATE_MS;
|
portTickType xDelay = 250 / portTICK_RATE_MS;
|
||||||
portTickType xTimeout = 10 / portTICK_RATE_MS;
|
portTickType xTimeout = 10 / portTICK_RATE_MS;
|
||||||
|
|
||||||
|
PIOS_BMP085_Init();
|
||||||
|
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
|
|
||||||
/* This blocks the task until the BMP085 EOC */
|
/* This blocks the task until the BMP085 EOC */
|
||||||
/*
|
/*
|
||||||
PIOS_BMP085_StartADC(TemperatureConv);
|
PIOS_BMP085_StartADC(TemperatureConv);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user