1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:52:44 +01:00

boards/calliope-mini: configure pwm

This commit is contained in:
Semjon Kerner 2018-04-11 17:05:53 +02:00
parent ad993263e9
commit f37825a1ba
2 changed files with 10 additions and 7 deletions

View File

@ -4,6 +4,7 @@ FEATURES_PROVIDED += periph_i2c
FEATURES_PROVIDED += periph_rtt
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_uart
FEATURES_PROVIDED += periph_pwm
# Various other features (if any)
FEATURES_PROVIDED += radio_nrfmin

View File

@ -57,18 +57,11 @@ static const timer_conf_t timer_config[] = {
.channels = 3,
.bitmode = TIMER_BITMODE_BITMODE_16Bit,
.irqn = TIMER1_IRQn
},
{
.dev = NRF_TIMER2,
.channels = 3,
.bitmode = TIMER_BITMODE_BITMODE_16Bit,
.irqn = TIMER2_IRQn
}
};
#define TIMER_0_ISR isr_timer0
#define TIMER_1_ISR isr_timer1
#define TIMER_2_ISR isr_timer2
#define TIMER_NUMOF (sizeof(timer_config) / sizeof(timer_config[0]))
/** @} */
@ -129,6 +122,15 @@ static const i2c_conf_t i2c_config[] = {
#define RADIO_IRQ_PRIO 1
/** @} */
/**
* @name PWM configuration
* @{
*/
#define PWM_NUMOF (1U)
#define PWM_TIMER NRF_TIMER2
#define PWM_PIN (0U)
/** @} */
#ifdef __cplusplus
}
#endif