File tree Expand file tree Collapse file tree 4 files changed +14
-0
lines changed
targets/TARGET_NORDIC/TARGET_NRF5 Expand file tree Collapse file tree 4 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ extern "C" {
41
41
*
42
42
* # Undefined behavior
43
43
* * See the @ref hal_ticker_shared "ticker specification"
44
+ * * Calling any function other than lp_ticker_init after calling lp_ticker_free
44
45
*
45
46
* @see hal_lp_ticker_tests
46
47
*
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ extern "C" {
78
78
* * Calling any function other than ticker_init before the initialization of the ticker
79
79
* * Whether ticker_irq_handler is called a second time if the time wraps and matches the value set by ticker_set_interrupt again
80
80
* * Calling ticker_set_interrupt with a value that has more than the supported number of bits
81
+ * * Calling any function other than us_ticker_init after calling us_ticker_free
81
82
*
82
83
* # Potential bugs
83
84
* * Drift due to reschedule - Verified by ::ticker_repeat_reschedule_test
Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ void lp_ticker_init(void)
24
24
common_rtc_init ();
25
25
}
26
26
27
+ void lp_ticker_free (void )
28
+ {
29
+ // A common counter is used for RTC, lp_ticker and us_ticker, so it can't be
30
+ // disabled here, but this does not cause any extra cost.
31
+ }
32
+
27
33
uint32_t lp_ticker_read ()
28
34
{
29
35
return (uint32_t )common_rtc_64bit_us_get ();
Original file line number Diff line number Diff line change @@ -259,6 +259,12 @@ void us_ticker_init(void)
259
259
common_rtc_init ();
260
260
}
261
261
262
+ void us_ticker_free (void )
263
+ {
264
+ // A common counter is used for RTC, lp_ticker and us_ticker, so it can't be
265
+ // disabled here, but this does not cause any extra cost.
266
+ }
267
+
262
268
uint32_t us_ticker_read ()
263
269
{
264
270
us_ticker_init ();
You can’t perform that action at this time.
0 commit comments