1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-16 08:29:15 +01:00

OP-1476 - Fix other targets for OP_DFU changes

This commit is contained in:
Alessio Morale 2014-09-08 00:22:27 +02:00
parent 1de46ae493
commit 531d80a69c
8 changed files with 34 additions and 3 deletions

View File

@ -216,3 +216,8 @@ uint8_t processRX()
}
return TRUE;
}
int32_t platform_senddata(const uint8_t *msg, uint16_t msg_len)
{
return PIOS_COM_MSG_Send(PIOS_COM_TELEM_USB, msg, msg_len);
}

View File

@ -250,3 +250,8 @@ void check_bor()
}
}
}
int32_t platform_senddata(const uint8_t *msg, uint16_t msg_len)
{
return PIOS_COM_MSG_Send(PIOS_COM_TELEM_USB, msg, msg_len);
}

View File

@ -133,7 +133,7 @@ int main()
case DFUidle:
period1 = 5000;
sweep_steps1 = 100;
//PIOS_LED_Off(PIOS_LED_HEARTBEAT);
// PIOS_LED_Off(PIOS_LED_HEARTBEAT);
period2 = 0;
break;
case uploading:
@ -145,7 +145,7 @@ int main()
case downloading:
period1 = 2500;
sweep_steps1 = 50;
//PIOS_LED_Off(PIOS_LED_HEARTBEAT);
// PIOS_LED_Off(PIOS_LED_HEARTBEAT);
period2 = 0;
break;
case BLidle:

View File

@ -56,7 +56,7 @@ void PIOS_Board_Init(void)
FLASH_PrefetchBufferCmd(ENABLE);
#if defined(PIOS_INCLUDE_LED)
const struct pios_gpio_cfg *led_cfg = PIOS_BOARD_HW_DEFS_GetLedCfg(bdinfo->board_rev);
const struct pios_gpio_cfg *led_cfg = PIOS_BOARD_HW_DEFS_GetLedCfg(bdinfo->board_rev);
PIOS_Assert(led_cfg);
PIOS_LED_Init(led_cfg);
#endif /* PIOS_INCLUDE_LED */
@ -66,6 +66,7 @@ void PIOS_Board_Init(void)
void setupCom()
{
uint32_t pios_usart_generic_id;
if (PIOS_USART_Init(&pios_usart_generic_id, &pios_usart_generic_main_cfg)) {
PIOS_Assert(0);
}

View File

@ -217,3 +217,8 @@ uint8_t processRX()
}
return TRUE;
}
int32_t platform_senddata(const uint8_t *msg, uint16_t msg_len)
{
return PIOS_COM_MSG_Send(PIOS_COM_TELEM_USB, msg, msg_len);
}

View File

@ -224,3 +224,8 @@ uint8_t processRX()
}
return true;
}
int32_t platform_senddata(const uint8_t *msg, uint16_t msg_len)
{
return PIOS_COM_MSG_Send(PIOS_COM_TELEM_USB, msg, msg_len);
}

View File

@ -250,3 +250,8 @@ void check_bor()
}
}
}
int32_t platform_senddata(const uint8_t *msg, uint16_t msg_len)
{
return PIOS_COM_MSG_Send(PIOS_COM_TELEM_USB, msg, msg_len);
}

View File

@ -250,3 +250,8 @@ void check_bor()
}
}
}
int32_t platform_senddata(const uint8_t *msg, uint16_t msg_len)
{
return PIOS_COM_MSG_Send(PIOS_COM_TELEM_USB, msg, msg_len);
}