h1r9: workaround platform detection problem
On the first spin of r9 one of the pins used for platform detection is pulled up to VAA, not VCC, and VAA hasn't been switched on yet at the time of platform detection. This results in r9 being misidentified as OG from time to time. As a temporary workaround until the next board spin, change the platform from OG to r9 if it is detected as OG but has r9 pin straps.
This commit is contained in:

committed by
Mike Walters

parent
3f73290524
commit
ea3b804edf
@ -198,6 +198,11 @@ void detect_hardware_platform(void)
|
||||
(adc0_3 == PIN_STRAP_LOW) && (adc0_4 == PIN_STRAP_LOW) &&
|
||||
(platform == BOARD_ID_HACKRF1_R9)) {
|
||||
revision = BOARD_REV_HACKRF1_R9;
|
||||
} else if ( //FIXME temporary
|
||||
(adc0_3 == PIN_STRAP_LOW) && (adc0_4 == PIN_STRAP_LOW) &&
|
||||
(platform == BOARD_ID_HACKRF1_OG)) {
|
||||
revision = BOARD_REV_HACKRF1_R9;
|
||||
platform = BOARD_ID_HACKRF1_R9;
|
||||
} else {
|
||||
revision = BOARD_REV_UNRECOGNIZED;
|
||||
}
|
||||
|
Reference in New Issue
Block a user