inc/fpga_loader.h File Reference

#include "tll_config.h"
#include "crc.h"

Include dependency graph for fpga_loader.h:

This graph shows which files directly or indirectly include this file:


Defines

#define DEFAULT_FPGA   (0x771AF5C0)
 .h Contains function declarations for FPGA programmer.
#define UART_FPGA   (0xC75923b3)
#define A2D_FPGA   (0x7FCDED1C)

Functions

int fpga_programmer (unsigned char *memaddr, unsigned long length)
int fpga_loader (crc)
 Loads the fpga specified by the crc.
int fpga_inputEnable (void)
 enable the inputs from only if the bits 0-7 are output and 8-15 are inputs.

Define Documentation

#define A2D_FPGA   (0x7FCDED1C)

#define DEFAULT_FPGA   (0x771AF5C0)

.h Contains function declarations for FPGA programmer.

#define UART_FPGA   (0xC75923b3)


Function Documentation

int fpga_inputEnable ( void   ) 

enable the inputs from only if the bits 0-7 are output and 8-15 are inputs.

returns if sucessful or terminates.

Test if 0-7 bits are outputs

reinitialize

int fpga_loader ( crc  load_crc  ) 

Loads the fpga specified by the crc.

Parameters:
load_crc The crc of the fpga to be loaded. returns: 0 on sucess or error code.

Initializa the CRC engine.

Find the address which matches the CRC. If there is not match while returns with null

Copy the FPGA from FLASH to RAM

Compute the CRC of the FPGA

Check if the memory has the required CRC

Continue with the other address

Load the fpga

int fpga_programmer ( unsigned char *  memaddr,
unsigned long  length 
)


Generated on 3 Mar 2014 for PAL bare-c Library by  doxygen 1.4.7