Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Users were confused about which toolchain names to pass to
`west sdk install -t`, since the documentation did not list them.
Enhance the help text to suggest installing all toolchains if
unsure and point to the SDK release notes where the available
toolchains are listed.
ref: https://github.com/zephyrproject-rtos/zephyr/discussions/94572
Signed-off-by: Yasushi SHOJI <yashi@spacecubics.com>
The original wording made the `west packages` step look optional, which
caused confusion for users. Rephrase it as a direct instruction to make it
clear this step is required.
ref: https://github.com/zephyrproject-rtos/zephyr/discussions/94572
Signed-off-by: Yasushi SHOJI <yashi@spacecubics.com>
Fix an out of bounds access found by ASan.
Also remove mock_i2c_reg_error which seems to never be read.
Signed-off-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
Validate properties we receive, make sure warnings and errors are
printed, verify config register writes, run on native_sim_64 as well.
Signed-off-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
Fix issues found by ASan, log register writes for inspection using
console harness.
Fixes: 5f84be617e
Signed-off-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
The USB device samples do not build for the Nucleo L552ZE-Q because usb is
not enabled in the board DTS files. Fix it by enabling usb in the board DTS
files.
Signed-off-by: Will McGloughlin <willem.mcg@gmail.com>
There will be an compilation error if there is no interrupt GPIO defined
in the device tree file, as parts of the config and data structs
have #if that depends on the presence of interrupt GPIO.
Use the same #if constructs also on the functions that use those
structs.
Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
The sleep output configuration should be skipped for pins
22 to 28.
This was causing incorrect GPIO wakeups when entering
standby mode on RW612.
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
1. Reduce the spinlock scope in stepper_handle_timing_signal
2. perform a step each time the timing signal is called
3. Increment/Decrement actual_position and steps using atomics
Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
Clock ctimer if being used for PWM. Otherwise, it not only doesn't work
but makes the chip unable to be communicated to by the debugger.
Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
The RTC counter that is used in Power Mode 3 to track
System time could overflow for large timeouts.
Add code to catch wakeup events due to this overflow and re-enter
Power Mode 3.
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
The counter that is used in Power Mode 3 to track System time could
overflow for large timeouts.
Add an API that the power system could use to ignore wakeup events
from the timer.
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
Move MAX_WAIT define to the system timer header file
so system timer drivers can use this define.
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
Put every header defined in include/zephyr/drivers/usb_c/ into the same
doxygroup (`usb_type_c`) so as to not clutter the top-level
`io_interfaces` group with multiple USB-C related groups.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This helps anchoring the file to the proper section in the online
documentation when browsing by file.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This helps anchoring the file to the proper section in the online
documentation when browsing by file.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This helps anchoring the file to the proper section in the online
documentation when browsing by file.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This helps anchoring the file to the proper section in the online
documentation when browsing by file.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
new input_interface_ext group can be used for grouping device-specific
input API extensions together.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This helps anchoring the file to the proper section in the online
documentation when browsing by file.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
The MAC addressed derived from the device ID is not assigned by the
manufacturer and therefor the Locally Administered Address (LAA) bit should
be set.
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Confirmed by section 3.7.2 in the datasheet (version 29 July 2025) and
running a sample piece of code exercising smuad, smladx and
other DSP intrinsics.
Signed-off-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>