openMMC
Open Source Modular MMC for AMCs
|
#include <stdint.h>
#include <stdio.h>
#include "LPC176x5x.h"
#include "lpc17_clock.h"
#include "lpc17_pincfg.h"
#include "lpc17_uart.h"
#include "lpc17_iap.h"
#include "start_app.h"
Data Structures | |
struct | fw_info |
Enumerations | |
enum | fw_update_type { FW_UPDATE_APP = 1 , FW_UPDATE_BOOT = 2 } |
Functions | |
char * | u8_to_str (uint8_t n, char *str) |
uint8_t | get_sector_number (const void *flash_addr) |
void | copy_flash_region (const uint32_t *src, const uint32_t *dest, size_t len, uint32_t cpu_clk_khz) |
void | update (uint32_t cpu_clk_khz, enum fw_update_type ftype) |
int | main (void) |
Variables | |
const uint32_t | __AppFlash_start |
const uint32_t | __AppFlash_end |
const uint32_t | __BootFlash_start |
const uint32_t | __BootFlash_end |
const uint32_t | __FWUpdateFlash_start |
const uint32_t | __FWUpdateFlash_end |
const fw_info | __FWInfo_addr |
const uint32_t * | app_start_addr = &__AppFlash_start |
const uint32_t * | app_end_addr = &__AppFlash_end |
const uint32_t * | boot_start_addr = &__BootFlash_start |
const uint32_t * | boot_end_addr = &__BootFlash_end |
const uint32_t * | update_start_addr = &__FWUpdateFlash_start |
const uint32_t * | update_end_addr = &__FWUpdateFlash_end |
const fw_info * | fw_header = &__FWInfo_addr |
enum fw_update_type |
void copy_flash_region | ( | const uint32_t * | src, |
const uint32_t * | dest, | ||
size_t | len, | ||
uint32_t | cpu_clk_khz ) |
uint8_t get_sector_number | ( | const void * | flash_addr | ) |
int main | ( | void | ) |
char * u8_to_str | ( | uint8_t | n, |
char * | str ) |
void update | ( | uint32_t | cpu_clk_khz, |
enum fw_update_type | ftype ) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
const uint32_t* app_end_addr = &__AppFlash_end |
const uint32_t* app_start_addr = &__AppFlash_start |
const uint32_t* boot_end_addr = &__BootFlash_end |
const uint32_t* boot_start_addr = &__BootFlash_start |
const fw_info* fw_header = &__FWInfo_addr |
const uint32_t* update_end_addr = &__FWUpdateFlash_end |
const uint32_t* update_start_addr = &__FWUpdateFlash_start |