Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: updatehub support for the modem and fix for zephyrproject-rtos#2…
…4853 Signed-off-by: Tahir Akram <mtahirbutt@hotmail.com> In this PR, an implementation has been proposed and tested with DIGI XBC-M5-UT-001 XBee Cellular 3G modem with STM32L475 MCU BSP. Revert "cmake: introduction of ZephyrExtension package" This reverts commit ac898bc. This commit was merged by mistake, but in a way that was against the decision of the TSC on May 20, 2020, which was to wait a week to let people digest befor merging. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no> boards: fix the sys ticks per second for emsk As a slow FPGA platform with max. freq < 25 Mhz, the default CON_SYS_CLOCK_TICKS_PER_SEC=10000 is not suitable. CON_SYS_CLOCK_TICKS_PER_SEC=100 is a better value. Signed-off-by: Wayne Ren <wei.ren@synopsys.com> soc: fix the int numbers of emsdp emsdp is a FPGA based platform, can be loaded with different configurations. Different configuration have different interrupts: * em5d, em7d and em11d have 111 interrupts * em4 and em6 have 113 interrupts * em7d_esp has 112 interrupts Signed-off-by: Wayne Ren <wei.ren@synopsys.com> tests: add a workaround for arc emsdp arc emsdp's console will use irq 108/107 which will conflict with irqs used in tests (emsdp has 112 irqs), so add a workaround for emsdp. Signed-off-by: Wayne Ren <wei.ren@synopsys.com> dts: arm: Add missing adc property for kinetis k8x and kv5x socs Adds the required #io-channel-cells property to kinetis k8x and kv5x socs. We are now consistently defining this property for all nxp,kinetis-adc16 compatible nodes. Signed-off-by: Maureen Helm <maureen.helm@nxp.com> boards: frdm_k82f: Enable adc instance and pinmux Enables the adc instance and pinmux associated with arduino header pin A2 on the frdm_k82 board. Adds adc to the board yaml to ensure we build adc samples/tests for this board in CI. Signed-off-by: Maureen Helm <maureen.helm@nxp.com> tests: adc: Configure adc_api test for frdm_k82f board Configures the adc api test to use the arduino header A2 pin on the frdm_k82f board. This follows frdm_k64f and frdm_kw41z boards, which also use the arduino header A2 pin for the test. Signed-off-by: Maureen Helm <maureen.helm@nxp.com> tracing: cpu_stats: add missing macro add missing macro K_MSEC() for CONFIG_TRACING_CPU_STATS_INTERVAL Signed-off-by: Joel Westerberg <joel@teenage.engineering> usb: driver: nordic: Unlock mutex in case of error. Mutex that was previously locked must be unlocked in case of an error. Signed-off-by: Emil Obalski <emil.obalski@nordicsemi.no> drivers: arcv2_timer0: rename overflow_cyc to overflow_cycles * rename overflow_cyc to overflow_cycles for better understanding * use MIN macro to replace if .. else .. * typo fix in comments Signed-off-by: Wayne Ren <wei.ren@synopsys.com> drivers: arcv2_timer0: back to use level triggered irq the pulse triggered timer irq doesn't work for all targets. In iotdk, we found the clear of IP bit will clear int request when elapsed called in thread context. So come back to level triggered way which is supported in all targets, and use the sw triggered irq to remember the irq request which may be cleared in non timer int handler. Signed-off-by: Wayne Ren <wei.ren@synopsys.com> drivers: arcv2_timer0: minor fix and optimization for SMP case * still need to clear IP bit in timer irq handler * last_time should be aligned to ticks, old code will miss some cycles which are about (curret_time - last_time) % CYC_PER_TICK * in timeout set, shorten the delay needed when tick is 0, this will improve the response of timer irq Signed-off-by: Wayne Ren <wei.ren@synopsys.com> dts: arm: Fix incorrect interrupt cells order In aarch64 DTs, priority and flags cells have been swapped, fix the same. Correct interrupt property per the GIC binding document looks like: interrupts = <irq_type irq_num irq_flags irq_priority>; Signed-off-by: Abhishek Shah <abhishek.shah@broadcom.com> x86: gen_idt.py: typo fix Fix "consule" as "consult" Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com> scripts: net: Fix incorrect error messages If environment variables ZEPHYR_BASE or NET_TOOLS_BASE are unset, an incorrect message is printed saying that "it is set, but it is not a directory": $ZEPHYR_BASE is unset $ZEPHYR_BASE is set, but it is not a directory $NET_TOOLS_BASE is unset, no net-tools found $NET_TOOLS_BASE set, but it is not a directory This patch fixes that issue. Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com> scripts: gen_offset_header: add argument help text Help text is set to documentation string of the script. Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com> samples: usb: audio: Fix building off sample with sanitycheck The USB audio samples when added didn't have any tests: sections in the sample.yaml so they would never get build on any platform as part of sanitycheck. Add the tests: section and limit the samples to build on nrf52840dk_nrf52840 as that was the intended platform these samples where initially developed for. Signed-off-by: Kumar Gala <kumar.gala@linaro.org> drivers: flash: nrf_qspi_nor: support read of sub-word lengths mcuboot and possibly other tools read single byte values to determine the state of objects. Rather than fail to do the read of values too short for this peripheral detect the situation and read into a stack buffer that meets the length criteria, and on success copy the data into the provided buffer. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no> settings_fcb: Fix storing the data Change fixes storing the data by adding missing write retry after the last compression. Without the change error was returned instead of retrying. Signed-off-by: Marek Pieta <Marek.Pieta@nordicsemi.no> drivers: timer: nrf: Fix premature timeouts If timeout is being overwrite exactly when previous one is expiring then hardware event was cleared correctly but interrupt was already triggered. Interrupt routine was assuming that compare event is set and proceed with that assumption. However, in that corner case when compare event was overwritten and event was cleared, that was not the case. As the outcome, timeout could be triggered prematurely. Fixed by clearing pending interrupt after handling previous compare value. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no> drivers: timer: nrf: Remove RTC1 dependency Removed RTC1 dependencies in the code. Single define picks the instance. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no> lib:updatehub support for the modem and fix for zephyrproject-rtos#24853 testing lib: updatehub support for the modem and fix for zephyrproject-rtos#24853 Signed-off-by: Tahir Akram <mtahirbutt@hotmail.com> This pull request adds support for slower air interfaces (modem for example) to updatehub lib. Originally updatehub was designed for high speed fixed LAN interfaces. Therefore, in this PR, an implementation has been proposed and tested with DIGI XBC-M5-UT-001 XBee Cellular 3G modem with STM32L475 MCU BSP. A feedbakc is expected for evaluation with other interfaces. Signed-off-by: Tahir Akram <mtahirbutt@hotmail.com>
- Loading branch information