Skip to content

Commit

Permalink
tres: fix SOM reset line blinking (commaai#2003)
Browse files Browse the repository at this point in the history
Co-authored-by: Comma Device <device@comma.ai>
  • Loading branch information
adeebshihadeh and Comma Device authored Aug 23, 2024
1 parent 080e53f commit e53c802
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion board/boards/cuatro.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ void cuatro_init(void) {
set_gpio_pullup(GPIOC, 2, PULL_DOWN);

// SOM bootkick + reset lines
set_gpio_mode(GPIOC, 12, MODE_OUTPUT);
tres_set_bootkick(BOOT_BOOTKICK);
set_gpio_mode(GPIOC, 12, MODE_OUTPUT);

// SOM debugging UART
gpio_uart7_init();
Expand Down
3 changes: 2 additions & 1 deletion board/boards/tres.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ void tres_init(void) {
set_gpio_pullup(GPIOC, 2, PULL_DOWN);

// SOM bootkick + reset lines
set_gpio_mode(GPIOC, 12, MODE_OUTPUT);
// WARNING: make sure output state is set before configuring as output
tres_set_bootkick(BOOT_BOOTKICK);
set_gpio_mode(GPIOC, 12, MODE_OUTPUT);

// SOM debugging UART
gpio_uart7_init();
Expand Down

0 comments on commit e53c802

Please sign in to comment.