Skip to content
Snippets Groups Projects
Commit f37825a1 authored by Semjon Kerner's avatar Semjon Kerner
Browse files

boards/calliope-mini: configure pwm

parent ad993263
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment