EasyManuals Logo

Texas Instruments TMS320*2801 Series User Manual

Texas Instruments TMS320*2801 Series
94 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #62 background image
www.ti.com
Bootloader Code Listing (V3.0)
// TI File $Revision: /main/2 $
// Checkin $Date: January 10, 2005 14:39:40 $
//###########################################################################
//
// FILE: SelectMode_Boot.c
//
// TITLE: 280x Boot Mode selection routines
//
// Functions:
//
// Uint32 SelectBootMode(void)
// inline void SelectMode_GPOISelect(void)
//
// Notes:
//
//###########################################################################
// $TI Release:$
// $Release Date:$
//###########################################################################
#include "DSP280x_Device.h"
#include "280x_Boot.h"
extern Uint32 SCI_Boot(void);
extern Uint32 SPI_Boot(void);
extern Uint32 Parallel_Boot(void);
extern Uint32 I2C_Boot(void);
extern Uint32 CAN_Boot();
// GPIO18 GPIO29 GPIO34
// SPICLKA SCITXDA
// SCITXB
//Flash 1 1 1
//SCI 1 1 0
//SPI 1 0 1
//I2C 1 0 0
//ECAN 0 1 1
//RAM 0 1 0
//OTP 0 0 1
//I/0 0 0 0
#define FLASH_BOOT 7
#define SCI_BOOT 6
#define SPI_BOOT 5
#define I2C_BOOT 4
#define CAN_BOOT 3
#define RAM_BOOT 2
#define OTP_BOOT 1
#define PARALLEL_BOOT 0
Uint32 SelectBootMode()
{
Uint32 EntryAddr;
Uint16 BootMode;
EALLOW;
// Set MUX for BOOT Select
GpioCtrlRegs.GPAMUX2.bit.GPIO18 = 0;
GpioCtrlRegs.GPAMUX2.bit.GPIO29 = 0;
GpioCtrlRegs.GPBMUX1.bit.GPIO34 = 0;
// Set DIR for BOOT Select
GpioCtrlRegs.GPADIR.bit.GPIO18 = 0;
GpioCtrlRegs.GPADIR.bit.GPIO29 = 0;
GpioCtrlRegs.GPBDIR.bit.GPIO34 = 0;
62 Bootloader Code Overview SPRU722C November 2004 Revised October 2006
Submit Documentation Feedback

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TMS320*2801 Series and is the answer not in the manual?

Texas Instruments TMS320*2801 Series Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS320*2801 Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals