For both, I create an unsafe pointer that should be passed to the UI Task.
Code: Select all
bridgeState_t bridgeState;
swlock_t bridgeStateMemLock;
unsafe{
unsigned * unsafe pBridgeState = (unsigned * unsafe)&bridgeState;
swlock_t * unsafe pBridgeStateMemLock = (swlock_t * unsafe)&bridgeStateMemLock;
}
// Initialize bridgeState
unsafe{
bootDone <: (unsigned)pBridgeState; // <--- error: pBridgeState undefined
bootDone <: (unsigned)bridgeStateMemLock;
}
../src/sscEthBridge.xc:298:31: error: use of undeclared identifer `pBridgeState'
I dont understand why, as I do the same thing for bridgeStateMemLock, what does not generate an error.