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 Fri Sep 23 16:33:44 2011 for MityDSP Core by  Doxygen Version 1.6.1
Copyright © 2009, Critical Link LLC, All rights reserved.