Commit 1bbe930e authored by Christos Gentsos's avatar Christos Gentsos

Main: make VOUT_MODE return an invalid value when non-compliant

When the BE_COMPLIANT_USE_LINEAR16 switch is set to False, causing
the (non-standard-compliant) LINEAR11 to be used for the output
voltage instead of LINEAR16, the mode field of the VOUT_MODE register
shall return an invalid value (3'b111) to indicate non-compliance.
parent 6e3d9a28
Pipeline #2830 failed with stage
in 0 seconds
......@@ -28,7 +28,7 @@ const char MFR_SER[] = "123456789";
#ifdef USE_LINEAR16
const uint8_t vout_mode = 0x16; // linear mode, fixed 2^10 exponent
#else
const uint8_t vout_mode = 0x0; // not strictly compliant to the standard, set to zero
const uint8_t vout_mode = 0xe0; // not compliant to the standard, set mode bits to (invalid) 3'b111
#endif
void page_chk();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment