Skip to content

Commit af7497e

Browse files
Fix typo in CRU constants
1 parent 108af9a commit af7497e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Crorc/Crorc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class Crorc
4848

4949
/// Arms DDL
5050
/// \param resetMask The reset mask. See the RORC_RESET_* macros in rorc.h
51+
/// \param diuConfig DIU configuration
5152
void armDdl(int resetMask, const DiuConfig& diuConfig);
5253

5354
/// Arms C-RORC data generator

src/Cru/Constants.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static constexpr IntervalRegister LINK_SUPERPAGES_PUSHED(0x800, SUPERPAGES_PUSHE
5656
/// 0b10 -> 0xa5a5a5a5
5757
/// 0b11 -> 0x12345678
5858
/// Bit 3: set to inject error
59-
static constexpr Register DATA_GENERATOR_CONTROL(0x420/4);
59+
static constexpr Register DATA_GENERATOR_CONTROL(0x420);
6060

6161
/// Command to write into DATA_GENERATOR_CONTROL to inject an error
6262
static constexpr uint32_t DATA_GENERATOR_CONTROL_CMD_INJECT_ERROR = 0x8;
@@ -79,10 +79,10 @@ static constexpr Register FIRMWARE_FEATURES(0x41c);
7979
/// Reset control register
8080
/// * Write a 1 to reset the card
8181
/// * Write a 2 to reset data generator counter
82-
static constexpr Register RESET_CONTROL(0x400/4);
82+
static constexpr Register RESET_CONTROL(0x400);
8383

8484
/// A debug register. The lower 8 bits of this register can be written to and read back from freely.
85-
static constexpr Register DEBUG_READ_WRITE(0x410/4);
85+
static constexpr Register DEBUG_READ_WRITE(0x410);
8686

8787
/// Temperature control & read register
8888
/// Must be accessed on BAR 2

0 commit comments

Comments
 (0)