1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

23 Commits

Author SHA1 Message Date
Francisco Molina
7c3360e4d6 sys/ztimer: add 'ztimer_no_periph_rtt'
This is a temporary fix for Issue #17060. It allows to disable
auto inclusion of `ztimer_periph_rtt` in cases where another
module or application requires direct access.

Limitations:
- as ifeq are involved order of inclusion matters, therefore
  these modules should be included early in the build at application
  level and not in modules `Makefile.dep`
- this does not disallow direct inclusions of `ztimer_periph_rtt`,
  since this only disables auto inclusion of these modules

This is a temporary solution since this is already possible with
Kconfig, but not in make.
2021-12-02 07:54:38 +01:00
Marian Buschsieweke
b9cb75fedf
drivers/periph/rtt: add periph_rtt_set_counter feature
Some periph_rtt implementations do not provide `rtt_set_counter()`. This
adds `periph_rtt_set_counter` as feature to allow testing for its
availability. The feature is provided at CPU level if periph_rtt is
provided by the board for all CPUs implementing `rtt_set_counter()`.
2021-03-04 18:05:06 +01:00
Hauke Petersen
c4a8c45a3e periph/rtt: fix tick conversion macros 2020-11-16 10:00:24 +01:00
Francisco Molina
9dde6ec53d
drivers/rtt: overrite RTT_MAX_VALUE and RTT_FREQUENCY for mock
mock_rtt relies on setting mock values for RTT_MAX_VALUE and
RTT_FREQUENCY. Platforms with a rtt will already define these
values which leads to mock_rtt working with different values than
rtt_rtc.

This commit changes the ifdef logic so that when using mock_rtt
RTT_MAX_VALUE and RTT_FREQUENCY are redefined.
2020-07-22 08:52:54 +02:00
Francisco Molina
8d329942df
drivers/periph/rtt: introduce RTT_MIN_OFFSET 2020-06-11 09:30:25 +02:00
Francisco Molina
0c0f8ec98f
drivers/periph/rtt.h: add RTT_FREQUENCY & RTT_MAX_VALUE doc 2020-04-23 22:11:16 +02:00
Francisco Molina
2604971753
drivers/periph/rtt.h: ensure RTT_MAX_VALUE is set 2020-04-23 19:07:18 +02:00
Benjamin Valentin
60cc3b8757 periph/rtt: Allow using MOCK_RTT defines from Unit Test 2020-03-19 15:25:14 +01:00
4df2827fe1 periph/rtt: clarify rtt_set_alarm() documentation 2020-01-13 15:18:16 +01:00
Hauke Petersen
44c54c2ae0 periph/rtt: add doc on low power implications 2019-10-01 23:09:23 +02:00
smlng
a9e848f648 periph/rtt: add missing std header
The periph/rtt.h uses `uintX_t` typedefs but misses the required
standard header file, namely `stdint.h`, which is added here.
2018-09-07 14:54:23 +02:00
Vincent Dupont
6840c15db0 periph/rtt: remove RTT_NUMOF guard from header 2018-02-09 15:51:06 +01:00
0fcc7d3834 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
Hauke Petersen
77b790375f drivers/periph: some doxygen fixes
- added todos to periph module description
- repaired group names (e.g. s/driver_xx/drivers_xx/)
2015-11-19 15:57:36 +01:00
daniel-k
e433231941 periph/rtt: add macros for ticks to time conversion 2015-09-22 16:59:05 +02:00
daniel-k
80c13d109b periph/rtt: add macros for time to tick conversion 2015-06-08 17:19:20 +02:00
Alexandru Caciulescu
451bf78549 drivers/include/periph: Repair header file include guards 2015-03-24 17:55:42 +02:00
Ludwig Ortmann
da43a5e7a4 doc: periph: various fixes and cleanup
- unify file/module @brief
- distinct @file section more visibly in source
- provide missing @brief's
- move module details/notes from file to module sections
- provide missing macro definition for building
2014-12-04 10:28:45 +01:00
Ludwig Ortmann
fb75b65df7 periph/rtt: fix documentation
Fix some typos, grammar and style.
2014-11-19 17:04:20 +01:00
Hauke Petersen
1ae08f8437 drivers/periph/rtt: added overflow callback 2014-11-07 12:14:37 +01:00
Ludwig Ortmann
5523ec67f3 doc: make peripheral interfaces modules
also remove `@file` parameters
2014-10-25 15:37:04 +02:00
BytesGalore
f94623ae0f drivers: add extern "C" to header files 2014-10-21 15:30:03 +02:00
Thomas Eichinger
c5ed71e54f periph_driver: introduce a RTT interface 2014-08-21 21:59:42 +02:00