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
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2018-08-17 15:49:28 +02:00
|
|
|
/**
|
|
|
|
* @name PWM configuration
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
static const pwm_conf_t pwm_config[] = {
|
|
|
|
{ NRF_PWM0, { 28, 29, 30, 31 } }
|
|
|
|
};
|
|
|
|
#define PWM_NUMOF (sizeof(pwm_config) / sizeof(pwm_config[0]))
|
|
|
|
/** @} */
|
|
|
|
|
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
|
|
|
/** @} */
|