Skip to content

Commit

Permalink
refactor(boards): Switch proton_c to newer pinmux approach.
Browse files Browse the repository at this point in the history
  • Loading branch information
petejohanson committed Jun 10, 2021
1 parent f3b7822 commit 2292190
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 75 deletions.
7 changes: 0 additions & 7 deletions app/boards/arm/proton_c/CMakeLists.txt

This file was deleted.

2 changes: 1 addition & 1 deletion app/boards/arm/proton_c/arduino_pro_micro_pins.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@
};

pro_micro_i2c: &i2c1 {};
pro_micro_spi: &spi1 {};
pro_micro_spi: &spi2 {};
pro_micro_serial: &usart1 {};
67 changes: 0 additions & 67 deletions app/boards/arm/proton_c/pinmux.c

This file was deleted.

13 changes: 13 additions & 0 deletions app/boards/arm/proton_c/proton_c.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

/dts-v1/;
#include <st/f3/stm32f303Xc.dtsi>
#include <st/f3/stm32f303c(b-c)tx-pinctrl.dtsi>
#include "arduino_pro_micro_pins.dtsi"

/ {
Expand All @@ -26,6 +27,18 @@
};
};

&usart1 {
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
};

&spi2 {
pinctrl-0 = <&spi2_sck_pb13 &spi2_miso_pb14 &spi2_mosi_pb15>;
};

&i2c1 {
pinctrl-0 = <&i2c1_scl_pb6 &i2c1_sda_pb7>;
};

&usb {
status = "okay";
};
Expand Down

0 comments on commit 2292190

Please sign in to comment.