Skip to content

Commit

Permalink
switchserial: Increase the CP2102N reset delay to 1s
Browse files Browse the repository at this point in the history
Per observation, CP2102N reset takes more than 30 ms to finish, increase
the assertion to 1 second to improve the stability.

Signed-off-by: Baocheng Su <[email protected]>
  • Loading branch information
BaochengSu committed Jan 3, 2024
1 parent 2bfac42 commit 48c2f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes-app/switchserialmode/files/src/serial/cp2102n.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ static void cp2102n_hardware_reset(void)
*/
if (ADVANCED_BOARD_PG1 != get_board_type()) {
gpio_set("CP2102N-RESET", 0);
usleep(30 * 1000);
sleep(1);
gpio_set("CP2102N-RESET", 1);
sleep(1);
}
Expand Down

0 comments on commit 48c2f22

Please sign in to comment.