-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards: refactor using extensions and shields
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
- Loading branch information
Showing
24 changed files
with
200 additions
and
297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
boards/arm/nucleof302r8_ihm07m1/nucleof302r8_ihm07m1_defconfig
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
boards/arm/nucleog431rb_ihm16m1/nucleog431rb_ihm16m1_defconfig
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright (c) 2021 Teslabs Engineering S.L. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <dts-bindings/adc/stm32f3xx.h> | ||
|
||
&timers1 { | ||
svpwm: svpwm { | ||
compatible = "st,stm32-svpwm"; | ||
currsmp = <&currsmp>; | ||
}; | ||
}; | ||
|
||
&adc1 { | ||
currsmp: currsmp { | ||
compatible = "st,stm32-currsmp-shunt"; | ||
adc-resolution = <12>; | ||
adc-tsample = <2>; | ||
adc-trigger = <STM32_ADC_INJ_TRIG_TIM1_TRGO>; | ||
}; | ||
}; | ||
|
||
&timers2 { | ||
feedback: feedback { | ||
compatible = "st,stm32-halls"; | ||
phase-shift = <60>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (c) 2021 Teslabs Engineering S.L. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <dts-bindings/adc/stm32g4xx.h> | ||
|
||
&timers1 { | ||
svpwm: svpwm { | ||
compatible = "st,stm32-svpwm"; | ||
currsmp = <&currsmp>; | ||
}; | ||
}; | ||
|
||
&adc1 { | ||
currsmp: currsmp { | ||
compatible = "st,stm32-currsmp-shunt"; | ||
|
||
adc-resolution = <12>; | ||
adc-tsample = <3>; | ||
adc-trigger = <STM32_ADC12_INJ_TRIG_TIM1_TRGO>; | ||
}; | ||
}; | ||
|
||
&timers2 { | ||
feedback: feedback { | ||
compatible = "st,stm32-halls"; | ||
phase-shift = <60>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
config SHIELD_IHM07M1 | ||
def_bool $(shields_list_contains,ihm07m1) |
Oops, something went wrong.