inc/startup.h File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bf52x_uart.h"
#include "DPM_Config.h"
#include "fpga_loader.h"

Include dependency graph for startup.h:

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


Defines

#define TLLXBV1_INPUT_PINS   0x00FF

Functions

int blackfin_setup (void)
 blackfin_setup Initialize the blacfin processor.
int fpga_setup (void)
 fpga_setup
void RTC_init (void)
 RTC_init.
void RTC_waitForInit ()
 The RTC is initialized by default, but needs ~1 second for changes to the prescaler (on by default) to kick in.
int fpga_setupById (crc)
 fpga_setupById
int fpga_outputToPortFEnable (unsigned short mask)
 Enable the output FPGA toward the CPU.

Define Documentation

#define TLLXBV1_INPUT_PINS   0x00FF


Function Documentation

int blackfin_setup ( void   ) 

blackfin_setup Initialize the blacfin processor.

This function:- 1. Sets up the CCLK = 600 MHz (default); SCLK = 100 MHz (default) 2. Configures the uart to the default baud rate 57600 bps, 8 bits, 1 stop bit 3. Sets up the PORTF in accordance with TLL6527M_FPGAv1-3 configuration

Pre-conditions:

Post condtions:

Parameters:

Returns:
Zero if the uart is initialized properly. Negative value if the init fails.

int fpga_outputToPortFEnable ( unsigned short  mask  ) 

Enable the output FPGA toward the CPU.

The mask is currently unused and may be used in the future

Set cam high for CPLD

int fpga_setup ( void   ) 

fpga_setup

This function programs the FPGA.

Pre-conditions:

Post condtions:

Returns:
Zero if the FPGA programming was successful. Else negative value.

int fpga_setupById ( crc  fpga_crc  ) 

fpga_setupById

Parameters:
load_crc the crc of the fpga to be loaded return status code.

void RTC_init ( void   ) 

RTC_init.

Initializes the RTC to work without the prescaler in order to set the RTC counting frequency to 32.768KHz

void RTC_waitForInit (  ) 

The RTC is initialized by default, but needs ~1 second for changes to the prescaler (on by default) to kick in.

This function should be called if the RTC is to be used as soon as a program starts.


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