mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
docu: enhance timer config docu for cc26x0
This commit is contained in:
parent
7b79f4d3d2
commit
09bc23b41f
@ -35,6 +35,10 @@ extern "C" {
|
||||
|
||||
/**
|
||||
* @name Timer configuration
|
||||
*
|
||||
* General purpose timers (GPT[0-3]) are configured consecutively and in order
|
||||
* (without gaps) starting from GPT0, i.e. if multiple timers are enabled.
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
static const timer_conf_t timer_config[] = {
|
||||
|
@ -57,19 +57,20 @@ typedef enum {
|
||||
GPIO_RISING = IOCFG_EDGEDET_RISING,
|
||||
GPIO_BOTH = IOCFG_EDGEDET_BOTH
|
||||
} gpio_flank_t;
|
||||
#endif /* ndef DOXYGEN */
|
||||
|
||||
/**
|
||||
* @brief Configuration of low-level general purpose timers
|
||||
*
|
||||
* @note Timers *must* be configured consecutively and in order (without gaps)
|
||||
* starting from GPT0, specifically if multiple timers are enabled.
|
||||
* General purpose timers (GPT[0-3]) are configured consecutively and in order
|
||||
* (without gaps) starting from GPT0, i.e. if multiple timers are enabled.
|
||||
*/
|
||||
typedef struct {
|
||||
uint8_t cfg; /**< timer config [16,32 Bit] */
|
||||
uint8_t chn; /**< number of channels [1,2] */
|
||||
} timer_conf_t;
|
||||
|
||||
#endif /* ifndef DOXYGEN */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user