dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_iap.c File Reference
#include <pios.h>

Go to the source code of this file.

Macros

#define IAP_MAGIC_WORD_1   0x1122
 
#define IAP_MAGIC_WORD_2   0xAA55
 
#define IAP_MAGIC_WORD_3   0xBB11
 
#define UPPERWORD16(lw)   (uint16_t)((uint32_t)(lw)>>16)
 
#define LOWERWORD16(lw)   (uint16_t)((uint32_t)(lw)&0x0000ffff)
 
#define UPPERBYTE(w)   (uint8_t)((w)>>8)
 
#define LOWERBYTE(w)   (uint8_t)((w)&0x00ff)
 

Functions

void PIOS_IAP_Init (void)
 PIOS_IAP_Init - performs required initializations for iap module. More...
 
uint32_t PIOS_IAP_CheckRequest (void)
 Determines if an In-Application-Programming request has been made. More...
 
uint32_t PIOS_Boot_CheckRequest (void)
 Determines if a boot request has been made. More...
 
void PIOS_IAP_SetRequest1 (void)
 Sets the 1st word of the request sequence. More...
 
void PIOS_IAP_SetRequest2 (void)
 
void PIOS_IAP_SetRequest3 (void)
 
void PIOS_IAP_ClearRequest (void)
 
uint16_t PIOS_IAP_ReadBootCount (void)
 
void PIOS_IAP_WriteBootCount (uint16_t)