LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dfuutil_programming_spiflash_algorithm.c File Reference
#include "board.h"
#include "dfuutil_programming_api.h"
#include "stdio.h"
#include "string.h"
#include "spifi_rom_api.h"

Go to the source code of this file.

Macros

#define USE_SPIFI_LIB
 
#define PROGRAM_REGIONS   2
 
#define DFU_BUFF_PROG_SIZE   2048
 

Functions

int32_t progalgo_spiflash_erase (uint32_t start, uint32_t size)
 
int32_t progalgo_spiflash_erase_all (void)
 
int32_t progalgo_spiflash_write (void *buff, uint32_t start, uint32_t size)
 
int32_t progalgo_spiflash_read (void *buff, uint32_t start, uint32_t size)
 
static uint32_t progalgo_spiflash_chk_alt (uint32_t addr)
 
static int progalgo_spiflash_progaddrvalid (uint32_t addr, uint32_t size)
 
DFUPROG_REGION_Talgo_flash_init (void)
 Initializes device programming capability.
 

Variables

static const PROGALGOS_T palgos
 
static DFUPROG_REGZONE_T pregions [PROGRAM_REGIONS]
 
static DFUPROG_REGION_T dfuregion
 
static SPIFIobj spiobj
 
static SPIFIopers spiopers
 
static int SpiGood
 
static char tempSTR [128]
 

Macro Definition Documentation

#define USE_SPIFI_LIB

Definition at line 40 of file dfuutil_programming_spiflash_algorithm.c.