Change PDEC addresses #813
@ -24,7 +24,8 @@ using namespace pdec;
|
|||||||
uint32_t PdecHandler::CURRENT_FAR = 0;
|
uint32_t PdecHandler::CURRENT_FAR = 0;
|
||||||
|
|
||||||
PdecHandler::PdecHandler(object_id_t objectId, object_id_t tcDestinationId,
|
PdecHandler::PdecHandler(object_id_t objectId, object_id_t tcDestinationId,
|
||||||
LinuxLibgpioIF* gpioComIF, gpioId_t pdecReset, UioNames names)
|
LinuxLibgpioIF* gpioComIF, gpioId_t pdecReset, UioNames names,
|
||||||
|
uint32_t cfgMemPhyAddr, uint32_t pdecRamPhyAddr)
|
||||||
: SystemObject(objectId),
|
: SystemObject(objectId),
|
||||||
tcDestinationId(tcDestinationId),
|
tcDestinationId(tcDestinationId),
|
||||||
gpioComIF(gpioComIF),
|
gpioComIF(gpioComIF),
|
||||||
|
@ -68,7 +68,7 @@ class PdecHandler : public SystemObject,
|
|||||||
* @param uioregsiters String of uio device file same mapped to the PDEC register space
|
* @param uioregsiters String of uio device file same mapped to the PDEC register space
|
||||||
*/
|
*/
|
||||||
PdecHandler(object_id_t objectId, object_id_t tcDestinationId, LinuxLibgpioIF* gpioComIF,
|
PdecHandler(object_id_t objectId, object_id_t tcDestinationId, LinuxLibgpioIF* gpioComIF,
|
||||||
gpioId_t pdecReset, UioNames names);
|
gpioId_t pdecReset, UioNames names, uint32_t cfgMemPhyAddr, uint32_t pdecRamPhyAddr);
|
||||||
|
|
||||||
virtual ~PdecHandler();
|
virtual ~PdecHandler();
|
||||||
|
|
||||||
@ -103,12 +103,6 @@ class PdecHandler : public SystemObject,
|
|||||||
static const size_t MAX_TC_SEGMENT_SIZE = 1017;
|
static const size_t MAX_TC_SEGMENT_SIZE = 1017;
|
||||||
static const uint8_t MAP_ID_MASK = 0x3F;
|
static const uint8_t MAP_ID_MASK = 0x3F;
|
||||||
|
|
||||||
#ifdef TE0720_1CFA
|
|
||||||
static const uint32_t PHYSICAL_RAM_BASE_ADDRESS = 0x32000000;
|
|
||||||
#else
|
|
||||||
static const uint32_t PHYSICAL_RAM_BASE_ADDRESS = 0x26000000;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Expected value stored in FAR register after reset
|
// Expected value stored in FAR register after reset
|
||||||
static const uint32_t FAR_RESET = 0x7FE0;
|
static const uint32_t FAR_RESET = 0x7FE0;
|
||||||
|
|
||||||
@ -152,6 +146,8 @@ class PdecHandler : public SystemObject,
|
|||||||
|
|
||||||
LinuxLibgpioIF* gpioComIF = nullptr;
|
LinuxLibgpioIF* gpioComIF = nullptr;
|
||||||
|
|
||||||
|
uint32_t cfgMemBaseAddr = 0x0;
|
||||||
|
uint32_t pdecRamBaseAddr = 0x0;
|
||||||
uint32_t interruptCounter = 0;
|
uint32_t interruptCounter = 0;
|
||||||
Countdown interruptWindowCd = Countdown(1000);
|
Countdown interruptWindowCd = Countdown(1000);
|
||||||
|
|
||||||
|
2
tmtc
2
tmtc
@ -1 +1 @@
|
|||||||
Subproject commit 60f7ae5453b387ee5ebcf6a338c34284004dbce7
|
Subproject commit 8f8bcde90e3b9113388cfedc47775426888d0781
|
Loading…
Reference in New Issue
Block a user