eive-obsw/linux/obc/PtmeConfig.h

32 lines
772 B
C
Raw Normal View History

2021-09-19 12:27:48 +02:00
#ifndef LINUX_OBC_PTMECONFIG_H_
#define LINUX_OBC_PTMECONFIG_H_
#include <cstring>
2022-01-17 15:58:27 +01:00
2021-11-01 12:41:20 +01:00
#include "OBSWConfig.h"
2022-01-17 15:58:27 +01:00
#include "fsfw/returnvalues/HasReturnvaluesIF.h"
2021-09-19 12:27:48 +02:00
/**
2021-11-01 12:41:20 +01:00
* @brief PTME specific configuration parameters derived from FPGA design and device tree.
2021-09-19 12:27:48 +02:00
*
* @author J. Meier
*/
namespace PtmeConfig {
2022-01-17 15:58:27 +01:00
/**
* Offset of virtual channels mapped into address space
* 0x10000 = (0x4000 * 4)
*/
static const uint32_t VC0_OFFSETT = 0;
static const uint32_t VC1_OFFSETT = 0x4000;
static const uint32_t VC2_OFFSETT = 0x8000;
static const uint32_t VC3_OFFSETT = 0xC000;
2021-11-01 12:41:20 +01:00
#if BOARD_TE0720 == 0
2022-01-17 15:58:27 +01:00
static const char UIO_DEVICE_FILE[] = "/dev/uio1";
2021-11-08 12:25:12 +01:00
#else
2022-01-17 15:58:27 +01:00
static const char UIO_DEVICE_FILE[] = "/dev/uio1";
2021-11-01 12:41:20 +01:00
#endif
2022-01-17 15:58:27 +01:00
}; // namespace PtmeConfig
2021-09-19 12:27:48 +02:00
#endif /* LINUX_OBC_PTMECONFIG_H_ */