2017-11-21 16:22:33 +01:00
|
|
|
/*
|
2018-08-17 15:49:28 +02:00
|
|
|
* Copyright (C) 2016-2018 Freie Universität Berlin
|
2017-11-21 16:22:33 +01:00
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2018-10-28 19:44:00 +01:00
|
|
|
* @defgroup boards_common_nrf52xxxdk NRF52 DK common
|
2017-11-30 23:36:27 +01:00
|
|
|
* @ingroup boards_common_nrf52
|
2017-11-21 16:22:33 +01:00
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Peripheral configuration for the nRF52 DK
|
|
|
|
*
|
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2018-12-15 16:07:08 +01:00
|
|
|
#ifndef PERIPH_CONF_COMMON_H
|
|
|
|
#define PERIPH_CONF_COMMON_H
|
2017-11-21 16:22:33 +01:00
|
|
|
|
|
|
|
#include "periph_cpu.h"
|
2018-10-28 19:44:00 +01:00
|
|
|
#include "cfg_clock_32_1.h"
|
2019-07-31 10:15:20 +02:00
|
|
|
#include "cfg_i2c_default.h"
|
2018-10-28 19:44:00 +01:00
|
|
|
#include "cfg_rtt_default.h"
|
|
|
|
#include "cfg_timer_default.h"
|
2017-11-21 16:22:33 +01:00
|
|
|
|
2020-09-29 21:30:18 +02:00
|
|
|
#include "board.h"
|
|
|
|
|
2017-11-21 16:22:33 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2018-08-17 15:49:28 +02:00
|
|
|
/**
|
|
|
|
* @name PWM configuration
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
static const pwm_conf_t pwm_config[] = {
|
2021-12-14 20:36:29 +01:00
|
|
|
/* Beware: Keep pwm_params.h in sync with the definitions here */
|
2020-09-29 21:30:18 +02:00
|
|
|
{ NRF_PWM0, {
|
|
|
|
/* configure LED0 as PWM */
|
|
|
|
#ifdef LED0_PIN
|
|
|
|
LED0_PIN,
|
|
|
|
#else
|
|
|
|
GPIO_UNDEF,
|
|
|
|
#endif
|
|
|
|
/* configure LED1 as PWM */
|
|
|
|
#ifdef LED1_PIN
|
|
|
|
LED1_PIN,
|
|
|
|
#else
|
|
|
|
GPIO_UNDEF,
|
|
|
|
#endif
|
|
|
|
/* configure LED2 as PWM */
|
|
|
|
#ifdef LED2_PIN
|
|
|
|
LED2_PIN,
|
|
|
|
#else
|
|
|
|
GPIO_UNDEF,
|
|
|
|
#endif
|
|
|
|
/* configure LED3 as PWM */
|
|
|
|
#ifdef LED3_PIN
|
|
|
|
LED3_PIN,
|
|
|
|
#else
|
|
|
|
GPIO_UNDEF,
|
|
|
|
#endif
|
|
|
|
} },
|
2018-08-17 15:49:28 +02:00
|
|
|
};
|
2019-07-18 15:14:29 +02:00
|
|
|
#define PWM_NUMOF ARRAY_SIZE(pwm_config)
|
2018-08-17 15:49:28 +02:00
|
|
|
/** @} */
|
|
|
|
|
2017-11-21 16:22:33 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2018-12-15 16:07:08 +01:00
|
|
|
#endif /* PERIPH_CONF_COMMON_H */
|
2018-10-28 19:44:00 +01:00
|
|
|
/** @} */
|