Skip to content

Commit

Permalink
this is already done in harness init
Browse files Browse the repository at this point in the history
  • Loading branch information
robbederks authored and Comma Device committed Jan 29, 2025
1 parent 75d37c1 commit d9e121c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 22 deletions.
5 changes: 0 additions & 5 deletions board/boards/black.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,6 @@ static void black_init(void) {
set_gpio_alternate(GPIOA, 8, GPIO_AF11_CAN3);
set_gpio_alternate(GPIOA, 15, GPIO_AF11_CAN3);

// C0: OBD_SBU1 (orientation detection)
// C3: OBD_SBU2 (orientation detection)
set_gpio_mode(GPIOC, 0, MODE_ANALOG);
set_gpio_mode(GPIOC, 3, MODE_ANALOG);

// GPS OFF
set_gpio_output(GPIOC, 5, 0);
set_gpio_output(GPIOC, 12, 0);
Expand Down
5 changes: 0 additions & 5 deletions board/boards/dos.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,6 @@ static void dos_init(void) {
set_gpio_alternate(GPIOA, 8, GPIO_AF11_CAN3);
set_gpio_alternate(GPIOA, 15, GPIO_AF11_CAN3);

// C0: OBD_SBU1 (orientation detection)
// C3: OBD_SBU2 (orientation detection)
set_gpio_mode(GPIOC, 0, MODE_ANALOG);
set_gpio_mode(GPIOC, 3, MODE_ANALOG);

// C8: FAN PWM aka TIM3_CH3
set_gpio_alternate(GPIOC, 8, GPIO_AF2_TIM3);

Expand Down
5 changes: 0 additions & 5 deletions board/boards/uno.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,6 @@ static void uno_init(void) {
set_gpio_alternate(GPIOA, 8, GPIO_AF11_CAN3);
set_gpio_alternate(GPIOA, 15, GPIO_AF11_CAN3);

// C0: OBD_SBU1 (orientation detection)
// C3: OBD_SBU2 (orientation detection)
set_gpio_mode(GPIOC, 0, MODE_ANALOG);
set_gpio_mode(GPIOC, 3, MODE_ANALOG);

// GPS off
set_gpio_output(GPIOB, 1, 0);
set_gpio_output(GPIOC, 5, 0);
Expand Down
7 changes: 0 additions & 7 deletions board/stm32h7/peripherals.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,6 @@ void common_init_gpio(void) {
set_gpio_mode(GPIOE, 4, MODE_OUTPUT);
set_gpio_output_type(GPIOE, 4, OUTPUT_TYPE_OPEN_DRAIN);

//C4,A1: OBD_SBU1, OBD_SBU2
set_gpio_pullup(GPIOC, 4, PULL_NONE);
set_gpio_mode(GPIOC, 4, MODE_ANALOG);

set_gpio_pullup(GPIOA, 1, PULL_NONE);
set_gpio_mode(GPIOA, 1, MODE_ANALOG);

//F11: VOLT_S
set_gpio_pullup(GPIOF, 11, PULL_NONE);
set_gpio_mode(GPIOF, 11, MODE_ANALOG);
Expand Down

0 comments on commit d9e121c

Please sign in to comment.