zephyr/drivers/counter
Antonis Sioutas b36538d5a4 drivers: counter: stm32: Fix alarm time calculation
The calculated alarm time starts from 2000 but the gmtime_r needs as
input the time from epoch (1970). This causes the alarm time to be
miscalculated due to leap years, as 2000 is a leap year and 1970 is not.
To fix the issue, the 2000 timestamp can be added to the input time of
gmtime_r.

Fixes #32260

Signed-off-by: Antonis Sioutas <antonis.si510@gmail.com>
2021-02-14 18:20:11 -05:00
..
CMakeLists.txt drivers: counter: add driver for the Xilinx AXI Timer 2020-11-17 19:30:20 -05:00
counter_cmos.c drivers: counter: Convert DEVICE_AND_API_INIT to DEVICE_DEFINE 2020-12-19 20:00:23 -05:00
counter_gecko_rtcc.c device: Remove DEVICE_DT_DECLARE / DEVICE_DT_INST_DECLARE 2021-01-15 07:16:21 -06:00
counter_handlers.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
counter_imx_epit.c drivers: counter: Convert drivers to new DT device macros 2020-12-15 18:30:06 -05:00
counter_ll_stm32_rtc.c drivers: counter: stm32: Fix alarm time calculation 2021-02-14 18:20:11 -05:00
counter_mchp_xec.c drivers: counter: Convert drivers to new DT device macros 2020-12-15 18:30:06 -05:00
counter_mcux_gpt.c driver: update gpt driver to support internal divider by dts 2021-01-22 08:34:49 -06:00
counter_mcux_lptmr.c drivers: counter: Convert drivers to new DT device macros 2020-12-15 18:30:06 -05:00
counter_mcux_pit.c drivers: counter: Convert drivers to new DT device macros 2020-12-15 18:30:06 -05:00
counter_mcux_rtc.c drivers: counter: Convert drivers to new DT device macros 2020-12-15 18:30:06 -05:00
counter_native_posix.c drivers: counter: Convert drivers to new DT device macros 2020-12-15 18:30:06 -05:00
counter_nrfx_rtc.c device: Remove DEVICE_DT_DECLARE / DEVICE_DT_INST_DECLARE 2021-01-15 07:16:21 -06:00
counter_nrfx_timer.c device: Remove DEVICE_DT_DECLARE / DEVICE_DT_INST_DECLARE 2021-01-15 07:16:21 -06:00
counter_sam0_tc32.c drivers: counter: Convert drivers to new DT device macros 2020-12-15 18:30:06 -05:00
counter_xlnx_axi_timer.c drivers: counter: Convert drivers to new DT device macros 2020-12-15 18:30:06 -05:00
dualtimer_cmsdk_apb.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
Kconfig drivers: counter: add driver for the Xilinx AXI Timer 2020-11-17 19:30:20 -05:00
Kconfig.cmos
Kconfig.dtmr_cmsdk_apb
Kconfig.gecko
Kconfig.imx_epit drivers: counter: imx_epit: Convert driver to new DT_INST macros 2020-04-04 09:34:00 -05:00
Kconfig.maxim_ds3231 drivers: counter: add Maxim DS3231 support 2020-05-07 19:45:06 +02:00
Kconfig.mcux_gpt drivers: mcux_gpt: convert to DT_INST defines 2020-03-11 07:59:38 -06:00
Kconfig.mcux_lptmr drivers: counter: add NXP Kinetis LPTMR driver 2020-03-27 11:17:58 -05:00
Kconfig.mcux_pit counter: add pit counter driver 2020-08-21 14:27:59 -05:00
Kconfig.mcux_rtc
Kconfig.native_posix drivers: counter: Add native_posix counter hardware model and driver 2020-07-27 13:25:50 +02:00
Kconfig.nrfx drivers: counters: Fix TIMER0 and RTC0 with Bluetooth controller 2020-12-13 19:25:49 -05:00
Kconfig.sam0 drivers: counter: sam0_tc32: rework devicetree support 2020-04-25 13:33:56 -05:00
Kconfig.stm32_rtc drivers: counter: rtc for stm32g0 soc series 2021-01-06 08:09:47 -06:00
Kconfig.tmr_cmsdk_apb
Kconfig.xec
Kconfig.xlnx drivers: counter: add driver for the Xilinx AXI Timer 2020-11-17 19:30:20 -05:00
maxim_ds3231.c drivers: counter: Convert drivers to new DT device macros 2020-12-15 18:30:06 -05:00
timer_cmsdk_apb.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
timer_dtmr_cmsdk_apb.c drivers: counter: Convert drivers to new DT device macros 2020-12-15 18:30:06 -05:00
timer_tmr_cmsdk_apb.c drivers: counter: Convert drivers to new DT device macros 2020-12-15 18:30:06 -05:00