adaptions for setup with ccsds testbed
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit

This commit is contained in:
Jakob Meier
2022-06-23 20:12:56 +02:00
parent af039c540a
commit ed0eb4fe9c
4 changed files with 11 additions and 6 deletions

View File

@ -132,6 +132,9 @@ ReturnValue_t CCSDSHandler::initialize() {
#if OBSW_SYRLINKS_SIMULATED == 1
// Update data on rising edge
ptmeConfig->invertTxClock(false);
transmitterCountdown.setTimeout(transmitterTimeout);
linkState = UP;
forwardLinkstate();
#endif /* OBSW_SYRLINKS_SIMULATED == 1*/
return result;
@ -390,7 +393,7 @@ void CCSDSHandler::enableTransmit() {
#ifndef TE0720_1CFA
gpioIF->pullHigh(enTxClock);
gpioIF->pullHigh(enTxData);
#endif /* BOARD_TE0720 == 0 */
#endif
}
void CCSDSHandler::checkTxTimer() {
@ -403,10 +406,10 @@ void CCSDSHandler::checkTxTimer() {
}
void CCSDSHandler::disableTransmit() {
#ifdef TE0720_1CFA
#ifndef TE0720_1CFA
gpioIF->pullLow(enTxClock);
gpioIF->pullLow(enTxData);
#endif /* BOARD_TE0720 == 0 */
#endif
linkState = DOWN;
forwardLinkstate();
transmitterCountdown.setTimeout(0);