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;
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);
:
:
}