cpu/esp*: use TIMER_CHANNEL_NUMOF

This commit is contained in:
Benjamin Valentin 2020-06-23 19:21:54 +02:00
parent 4310098245
commit 5da1a9e577
2 changed files with 6 additions and 6 deletions

View File

@ -193,13 +193,13 @@ static const spi_conf_t spi_config[] = {
/* software timer */
#define TIMER_NUMOF (1U) /**< number of timer devices */
#define TIMER_CHANNELS (10U) /**< number of channels per timer device */
#define TIMER_CHANNEL_NUMOF (10U) /**< number of channels per timer device */
#else /* MODULE_ESP_SW_TIMER */
/* hardware timer */
#define TIMER_NUMOF (1U) /**< number of timer devices */
#define TIMER_CHANNELS (1U) /**< number of channels per timer device */
#define TIMER_CHANNEL_NUMOF (1U) /**< number of channels per timer device */
#endif /* MODULE_ESP_SW_TIMER */
/** @} */

View File

@ -506,12 +506,12 @@ typedef struct {
*/
#ifdef MODULE_ESP_HW_COUNTER
/** hardware ccount/ccompare registers are used for timer implementation */
#define TIMER_NUMOF (2)
#define TIMER_CHANNELS (1)
#define TIMER_NUMOF (2)
#define TIMER_CHANNEL_NUMOF (1)
#else
/** hardware timer modules are used for timer implementation (default) */
#define TIMER_NUMOF (3)
#define TIMER_CHANNELS (1)
#define TIMER_NUMOF (3)
#define TIMER_CHANNEL_NUMOF (1)
#endif
/** Timer used for system time */