File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -161,8 +161,8 @@ static mb_version_t read_brd_rev_id(void) {
161
161
tpmIsrFlag = false;
162
162
163
163
// 2. Charge capacitor for 100us
164
- /* Set timer period 100us*/
165
- TPM_SetTimerPeriod (TPM0 , USEC_TO_COUNT (100U , tpm_source_clock ));
164
+ /* Set timer period slightly below 100us to account for overheads */
165
+ TPM_SetTimerPeriod (TPM0 , USEC_TO_COUNT (98U , tpm_source_clock ));
166
166
// Drive BRD_REV_ID pin to high
167
167
GPIO_PortSet (PIN_BOARD_REV_ID_GPIO , PIN_BOARD_REV_ID );
168
168
// Add a ~100us delay
@@ -195,8 +195,7 @@ static mb_version_t read_brd_rev_id(void) {
195
195
board_version = BOARD_VERSION_2_DEF ;
196
196
}
197
197
198
- return BOARD_VERSION_2_0 ;
199
- //return board_version;
198
+ return board_version ;
200
199
}
201
200
202
201
#elif defined(INTERFACE_NRF52820 )
You can’t perform that action at this time.
0 commit comments