2013-04-05 22:46:56 +02:00
|
|
|
/*!
|
2013-05-19 16:37:30 +02:00
|
|
|
* @File iap.c
|
|
|
|
* @Brief
|
2013-04-05 22:46:56 +02:00
|
|
|
*
|
|
|
|
* Created on: Sep 6, 2010
|
|
|
|
* Author: joe
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/****************************************************************************************
|
2013-05-19 16:37:30 +02:00
|
|
|
* Header files
|
|
|
|
****************************************************************************************/
|
2013-04-05 22:46:56 +02:00
|
|
|
#include <pios.h>
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief PIOS_IAP_Init - performs required initializations for iap module.
|
|
|
|
* \param none.
|
|
|
|
* \return none.
|
|
|
|
* \retval none.
|
|
|
|
*
|
|
|
|
* Created: Sep 8, 2010 10:10:48 PM by joe
|
|
|
|
*/
|
2013-05-19 16:37:30 +02:00
|
|
|
void PIOS_IAP_Init(void)
|
|
|
|
{}
|
2013-04-05 22:46:56 +02:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief Determines if an In-Application-Programming request has been made.
|
|
|
|
* \param *comm - Which communication stream to use for the IAP (USB, Telemetry, I2C, SPI, etc)
|
|
|
|
* \return TRUE - if correct sequence found, along with 'comm' updated.
|
2013-05-19 16:37:30 +02:00
|
|
|
* FALSE - Note that 'comm' will have an invalid comm identifier.
|
2013-04-05 22:46:56 +02:00
|
|
|
* \retval
|
|
|
|
*
|
|
|
|
*/
|
2013-05-19 16:37:30 +02:00
|
|
|
uint32_t PIOS_IAP_CheckRequest(void)
|
2013-04-05 22:46:56 +02:00
|
|
|
{
|
2013-05-19 16:37:30 +02:00
|
|
|
return false;
|
2013-04-05 22:46:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief Sets the 1st word of the request sequence.
|
|
|
|
* \param n/a
|
|
|
|
* \return n/a
|
|
|
|
* \retval
|
|
|
|
*/
|
2013-05-19 16:37:30 +02:00
|
|
|
void PIOS_IAP_SetRequest1(void)
|
|
|
|
{}
|
2013-04-05 22:46:56 +02:00
|
|
|
|
2013-05-19 16:37:30 +02:00
|
|
|
void PIOS_IAP_SetRequest2(void)
|
|
|
|
{}
|
2013-04-05 22:46:56 +02:00
|
|
|
|
2013-05-19 16:37:30 +02:00
|
|
|
void PIOS_IAP_ClearRequest(void)
|
|
|
|
{}
|
2013-04-05 22:46:56 +02:00
|
|
|
|
|
|
|
uint16_t PIOS_IAP_ReadBootCount(void)
|
|
|
|
{
|
2013-05-19 16:37:30 +02:00
|
|
|
return 0;
|
2013-04-05 22:46:56 +02:00
|
|
|
}
|
|
|
|
|
2013-05-19 16:37:30 +02:00
|
|
|
void PIOS_IAP_WriteBootCount(uint16_t boot_count)
|
|
|
|
{}
|