1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

cpu/nrf5x_common: improve doc on timer_conf_t::channels

This commit is contained in:
Marian Buschsieweke 2022-11-22 13:43:05 +01:00
parent 51b6379dee
commit b533fcf543
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -187,7 +187,14 @@ typedef enum {
*/
typedef struct {
NRF_TIMER_Type *dev; /**< timer device */
uint8_t channels; /**< number of channels available */
/**
* @brief number of hardware channels ***minus one***
*
* The last hardware channels is implicitly used by timer_read() and not
* available to the user. This value, hence, is the number of channels
* available to the user.
*/
uint8_t channels;
uint8_t bitmode; /**< counter width */
uint8_t irqn; /**< IRQ number of the timer device */
} timer_conf_t;