@@ -6,7 +6,8 @@ Implementing the microsecond ticker enables Mbed OS to perform operations that r
6
6
7
7
### Defined behavior
8
8
9
- - Has a reported frequency between 250KHz and 8MHz.
9
+ - Has a reported frequency between 250 KHz and 8 MHz for counters that are less than 32 bits wide.
10
+ - Has a reported frequency up to 100 MHz for counters that are 32 bits wide.
10
11
- Has a counter that is at least 16 bits wide.
11
12
- The function ` ticker_init ` is safe to call repeatedly.
12
13
- The function ` ticker_init ` allows the ticker to keep counting and disables the ticker interrupt.
@@ -17,7 +18,7 @@ Implementing the microsecond ticker enables Mbed OS to perform operations that r
17
18
- The ticker interrupt fires only when the ticker time increments to or past the value set by ` ticker_set_interrupt ` .
18
19
- It is safe to call ` ticker_set_interrupt ` repeatedly before the handler is called.
19
20
- The function ` ticker_fire_interrupt ` causes ` ticker_irq_handler ` to be called immediately from interrupt context.
20
- - The ticker operations ` ticker_read ` , ` ticker_clear_interrupt ` , ` ticker_set_interrupt ` and ` ticker_fire_interrupt ` take less than 20us to complete.
21
+ - The ticker operations ` ticker_read ` , ` ticker_clear_interrupt ` , ` ticker_set_interrupt ` and ` ticker_fire_interrupt ` take less than 20 us to complete.
21
22
- The ticker operations ` ticker_init ` and ` ticker_read ` are atomic.
22
23
23
24
### Undefined behavior
@@ -31,13 +32,13 @@ Implementing the microsecond ticker enables Mbed OS to perform operations that r
31
32
32
33
Be careful around these common trouble areas when implementing this API:
33
34
34
- - The ticker cannot drift when rescheduled repeatedly
35
- - The ticker keeps counting when it rolls over
36
- - The ticker interrupt fires when the compare value is set to 0 and overflow occurs
35
+ - The ticker cannot drift when rescheduled repeatedly.
36
+ - The ticker keeps counting when it rolls over.
37
+ - The ticker interrupt fires when the compare value is set to 0 and overflow occurs.
37
38
38
39
## Dependencies
39
40
40
- To implement this API, the device must have a hardware counter that has a count value at least 16 bits wide and can operate between 250KHz and 8MHz .
41
+ To implement this API, the device must have a hardware counter that has a count value at least 16 bits wide and can operate between 250 KHz and 8 MHz .
41
42
42
43
## Implementing the microsecond ticker API
43
44
0 commit comments