Repository navigation
apply gridpoint patches atop Zephyr 4.4.0 - #5
Open
emilyingalls wants to merge 9 commits into
Open
emilyingalls wants to merge 9 commits into
emilyingalls wants to merge 9 commits into
Conversation
Add a new Kconfig option SHELL_BACKEND_SERIAL_OLF_CRLF that allows configuring the line ending format used by the shell UART backend. When enabled (default), the shell will use CR+LF (\r\n) line endings for output text. When disabled, it will use the system default (typically just LF, \n). This replaces the hardcoded SHELL_FLAG_OLF_CRLF setting with a conditional expression that selects the appropriate flag based on the new configuration option. This gives users more control over terminal output formatting when needed for specific applications or terminal emulators.
Add noise floor measurement functionality to the SX12xx LoRa driver. This includes: - New lora_rssi.h header with noise floor API - sx12xx_lora_get_noise_floor() implementation - RSSI callback registration in Radio struct - Extension API for driver-specific noise floor implementations
Add optional low-power sequencing for SX126x (GPIO and SUBGHZ radio control) so the host can turn the radio off between operations. Remove debug helpers dump_gpio() and dump_rf_ctrl(). Drop gridpoint_stm32wl_subghz_radio compat; use st,stm32wl-subghz-radio only. Signed-off-by: Jon Ringle <jringle@gridpoint.com>
Add support for RTC_ALARM_TIME_MASK_NSEC on STM32 series that implement the RTC_ALRMASSR/RTC_ALRMBSSR subsecond alarm registers. Infer whether NSEC matching was requested from the programmed MASKSS field in the alarm subsecond register to avoid storing additional alarm state. Signed-off-by: Jon Ringle <jringle@gridpoint.com>
Wrap alloc_node struct, k_free, z_thread_malloc calls, and k_queue_alloc_append/prepend APIs with #ifdef CONFIG_KERNEL_MEM_POOL. This allows building with CONFIG_KERNEL_MEM_POOL=n without requiring stub implementations for heap functions. The alloc-based queue APIs are only meaningful when heap is available. Signed-off-by: GridPoint <engineering@gridpoint.com>
When lora_recv_async() is called with cb=NULL to cancel ongoing reception, modem_release() is called but async_rx_cb is left pointing to the previous callback. If a stale DIO1 work item fires after the radio has been reconfigured for TX, sx12xx_ev_rx_done() checks async_rx_cb (still set), calls Radio.Rx(0) during an active TX, and fires the stale callback. This corrupts the radio state and leaks packet buffers allocated by the callback. Clear async_rx_cb before calling modem_release() so that any stale DIO1 work item that fires after cancellation takes the synchronous path in sx12xx_ev_rx_done(), which properly checks modem_usage and bails out. Signed-off-by: Jon Ringle <jringle@gridpoint.com>
Add Kconfig choice to control the IWDG_STDBY option byte, allowing users to configure whether the independent watchdog runs or is frozen during standby mode. Uses the public flash_ex_op API to read/write option bytes at APPLICATION init level (flash device must be ready). Three options: - No change (default): leave option byte as-is, no extra code - Freeze: clear IWDG_STDBY so IWDG is frozen in standby - Active: set IWDG_STDBY so IWDG continues running in standby The write triggers OBL_LAUNCH (system reset) only when the option byte differs from the desired value. On subsequent boots, no write occurs. Signed-off-by: Jon Ringle <jringle@gridpoint.com>
Make dts field power-amplifier-output optional. If defined,
the radio will remain bound to the power mode defined. Otherwise,
the radio will be free to dynamically switch between high and low
power modes based off the power level input.
Signed-off-by: Stevan Bowles <sbowles@gridpoint.com>
changes in zephyr 4.4.0 moved sa_family_t under a namespace. my reading of the documentation implies that sa_family_t should be made available to code including <sys/socket.h> or <zephyr/posix/sys/socket.h> but this does not appear to be the case. as such, code including arpa/inet.h fails to build due to the undefined symbol. this fixes the build issue by using the new symbol in that header.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.