Merge pull request #7486 from smlng/enh/docu/cc26x0/timer

docu: enhance timer config docu for cc26x0
This commit is contained in:
Hauke Petersen 2017-08-23 15:21:39 +02:00 committed by GitHub
commit 7ea8c7f768
2 changed files with 8 additions and 3 deletions

View File

@ -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[] = {

View File

@ -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