MityDSP Documentation Index
tcDspConfig

Introduction

The tcDspConfig class is used to access the bootloader configuration parameter block.

See also:
MityDSP::tcDspConfig Class Reference

Example

This is a simple example of tcDspConfig creation and usage:

{
const unsigned int FLASH_BASE_ADDR = 0x90000000;
const unsigned int BANK_SEL_ADDR = 0xB0000004;
// create bank selector, then flash access object, and finally grab
// configuration...
tcDspBankSelect *myBankSel = new tcDspBankSelect((void *)BANK_SEL_ADDR);
tcDspFlash *myFlash = new tcDspFlash((void *)FLASH_BASE_ADDR, myBankSel);
tcDspConfig *myConfig = tcDspConfig::GetInstance(myFlash);
unsigned int boardRev = myConfig->GetBoardRevision(void);
unsigned int serialNum = myConfig->GetSerialNumber(void);
:
:
}

  
Generated on Mon Apr 22 2013 11:33:02 for MityDSP Core by  Doxygen Version 1.8.1.1
Copyright © 2009, Critical Link LLC, All rights reserved.