AlcapDAQ
1
|
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <sys/types.h>
#include <sys/timeb.h>
#include <string.h>
#include <stdarg.h>
#include "CAENVMElib.h"
#include <a3818.h>
#include "p30.h"
#include "A3818Upgrade.h"
Go to the source code of this file.
Macros | |
#define | FIRST_FIRMWARE_PAGE_BASE_WORD_ADDRESS 0x000000 |
#define | SECOND_FIRMWARE_PAGE_BASE_WORD_ADDRESS 0x200000 |
#define | THIRD_FIRMWARE_PAGE_BASE_WORD_ADDRESS 0x400000 |
#define | FOURTH_FIRMWARE_PAGE_BASE_WORD_ADDRESS 0x600000 |
Functions | |
static long | get_time () |
int | A3818UpgradeFromFile (int32_t A3818_handle, FILE *binfile, int fwcopy, A3818Upgrade_Mode mode) |
int | A3818UpgradeFromMem (int32_t A3818_handle, char *fwdata, int fwsize, int fwcopy, A3818Upgrade_Mode mode) |
#define FIRST_FIRMWARE_PAGE_BASE_WORD_ADDRESS 0x000000 |
Definition at line 25 of file A3818Upgrade.c.
Referenced by A3818UpgradeFromFile(), and A3818UpgradeFromMem().
#define FOURTH_FIRMWARE_PAGE_BASE_WORD_ADDRESS 0x600000 |
Definition at line 28 of file A3818Upgrade.c.
Referenced by A3818UpgradeFromFile(), and A3818UpgradeFromMem().
#define SECOND_FIRMWARE_PAGE_BASE_WORD_ADDRESS 0x200000 |
Definition at line 26 of file A3818Upgrade.c.
Referenced by A3818UpgradeFromFile(), and A3818UpgradeFromMem().
#define THIRD_FIRMWARE_PAGE_BASE_WORD_ADDRESS 0x400000 |
Definition at line 27 of file A3818Upgrade.c.
Referenced by A3818UpgradeFromFile(), and A3818UpgradeFromMem().
int A3818UpgradeFromFile | ( | int32_t | A3818_handle, |
FILE * | binfile, | ||
int | fwcopy, | ||
A3818Upgrade_Mode | mode | ||
) |
Definition at line 52 of file A3818Upgrade.c.
References A3818_EnableBPIAccess(), A3818_EnableSPIAccess(), A3818_UPGRADE_ERASE_ONLY, A3818_UPGRADE_FULL, A3818_UPGRADE_VERIFY_ONLY, BITSTREAM_BYTES, c, c1, eraseFirmware(), FIRST_FIRMWARE_PAGE_BASE_WORD_ADDRESS, FOURTH_FIRMWARE_PAGE_BASE_WORD_ADDRESS, get_time(), i, printf(), SECOND_FIRMWARE_PAGE_BASE_WORD_ADDRESS, THIRD_FIRMWARE_PAGE_BASE_WORD_ADDRESS, verifyFlash(), and writeFlash().
Referenced by main().
int A3818UpgradeFromMem | ( | int32_t | A3818_handle, |
char * | fwdata, | ||
int | fwsize, | ||
int | fwcopy, | ||
A3818Upgrade_Mode | mode | ||
) |
Definition at line 171 of file A3818Upgrade.c.
References A3818_EnableBPIAccess(), A3818_EnableSPIAccess(), A3818_UPGRADE_ERASE_ONLY, A3818_UPGRADE_FULL, A3818_UPGRADE_VERIFY_ONLY, BITSTREAM_BYTES, c, c1, eraseFirmware(), FIRST_FIRMWARE_PAGE_BASE_WORD_ADDRESS, FOURTH_FIRMWARE_PAGE_BASE_WORD_ADDRESS, get_time(), i, printf(), SECOND_FIRMWARE_PAGE_BASE_WORD_ADDRESS, THIRD_FIRMWARE_PAGE_BASE_WORD_ADDRESS, verifyFlash(), and writeFlash().
Referenced by main().
|
static |
Definition at line 32 of file A3818Upgrade.c.