app: remove SoC-specific code
The STM32 bootloader entry function as well as the flash size and page size variables were only used by ThingSet items of the DFU group, which were removed with the switch to the ThingSet SDK. The unused code is removed together with mcu.h and the obsolete HW_LOG_LEVEL option. The USB-C dead battery pull-downs of the STM32G4 are already disabled by the Zephyr SoC initialization if USB device support is not enabled, so the register access in setup() is not necessary anymore. The DC/DC duty cycle step size depending on the SoC series is moved from the code to the new Kconfig option DCDC_DUTY_STEP_SIZE with the same defaults. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
b90be36dbc
commit
93f142d32d
@@ -181,8 +181,13 @@ Move all remaining hardware access from `app/src` into Zephyr drivers.
|
||||
- [x] NTC thermistors via Zephyr sensor API (replaces `ntc_temp()` in `daq.cpp`)
|
||||
- [x] `libresolar,daq-ntc-thermistor` sensor driver using the filtered DAQ readings, as
|
||||
Zephyr's NTC driver requires exclusive ADC access
|
||||
- [ ] Bootloader entry and SoC-specific setup out of the application (`hardware.cpp`,
|
||||
- [x] Bootloader entry and SoC-specific setup out of the application (`hardware.cpp`,
|
||||
`setup.cpp`, `mcu.h`)
|
||||
- Unused STM32 bootloader entry and flash size information removed (no ThingSet functions
|
||||
referencing them anymore)
|
||||
- USB-C dead battery pull-downs of STM32G4 are already disabled by Zephyr's SoC init
|
||||
- DC/DC duty cycle step size configurable via `CONFIG_DCDC_DUTY_STEP_SIZE` instead of
|
||||
depending on the SoC series in the code
|
||||
|
||||
### Step 2: Devicetree power model
|
||||
|
||||
|
||||
Reference in New Issue
Block a user