update credits
[librepilot.git] / flight / pios / posix / pios_iap.c
blobe38bf1d6d619e321a81e96f137a14a7236f2dfe0
1 /*!
2 * @File iap.c
3 * @Brief
5 * Created on: Sep 6, 2010
6 * Author: joe
7 */
10 /****************************************************************************************
11 * Header files
12 ****************************************************************************************/
13 #include <pios.h>
15 /*!
16 * \brief PIOS_IAP_Init - performs required initializations for iap module.
17 * \param none.
18 * \return none.
19 * \retval none.
21 * Created: Sep 8, 2010 10:10:48 PM by joe
23 void PIOS_IAP_Init(void)
26 /*!
27 * \brief Determines if an In-Application-Programming request has been made.
28 * \param *comm - Which communication stream to use for the IAP (USB, Telemetry, I2C, SPI, etc)
29 * \return TRUE - if correct sequence found, along with 'comm' updated.
30 * FALSE - Note that 'comm' will have an invalid comm identifier.
31 * \retval
34 uint32_t PIOS_IAP_CheckRequest(void)
36 return false;
40 /*!
41 * \brief Sets the 1st word of the request sequence.
42 * \param n/a
43 * \return n/a
44 * \retval
46 void PIOS_IAP_SetRequest1(void)
49 void PIOS_IAP_SetRequest2(void)
52 void PIOS_IAP_ClearRequest(void)
55 uint16_t PIOS_IAP_ReadBootCount(void)
57 return 0;
60 void PIOS_IAP_WriteBootCount(uint16_t boot_count)