mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-20 03:53:49 +01:00
96 lines
1.6 KiB
C
96 lines
1.6 KiB
C
/*
|
|
* SPDX-FileCopyrightText: 2021 Gerson Fernando Budke <nandojve@gmail.com>
|
|
* SPDX-License-Identifier: LGPL-2.1-only
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
/**
|
|
* @ingroup boards_common_atxmega
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Common configuration of MCU periphery for ATxmega boards
|
|
*
|
|
* @author Gerson Fernando Budke <nandojve@gmail.com>
|
|
*/
|
|
|
|
#include "periph_cpu.h"
|
|
#include "macros/units.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @name Clock configuration
|
|
* @{
|
|
*/
|
|
#ifndef CLOCK_CORECLOCK
|
|
#define CLOCK_CORECLOCK MHZ(32)
|
|
#endif /* CLOCK_CORECLOCK */
|
|
/** @} */
|
|
|
|
/**
|
|
* @name ADC Configuration
|
|
*
|
|
* @{
|
|
*/
|
|
#ifndef ADC_NUMOF
|
|
#define ADC_NUMOF (0U)
|
|
#endif /* ADC_NUMOF */
|
|
/** @} */
|
|
|
|
/**
|
|
* @name I2C configuration
|
|
* @{
|
|
*/
|
|
#ifndef I2C_NUMOF
|
|
#define I2C_NUMOF (0U)
|
|
#endif /* I2C_NUMOF */
|
|
/** @} */
|
|
|
|
/**
|
|
* @name PWM configuration
|
|
*
|
|
* @{
|
|
*/
|
|
#ifndef PWM_NUMOF
|
|
#define PWM_NUMOF (0U)
|
|
#endif /* PWM_NUMOF */
|
|
/** @} */
|
|
|
|
/**
|
|
* @name SPI configuration
|
|
*
|
|
* The SS pin must be configured as output for the SPI device to work as
|
|
* master correctly, though we do not use it for now (as we handle the chip
|
|
* select externally for now)
|
|
*
|
|
* @{
|
|
*/
|
|
#ifndef SPI_NUMOF
|
|
#define SPI_NUMOF (0U)
|
|
#endif /* SPI_NUMOF */
|
|
/** @} */
|
|
|
|
/**
|
|
* @name UART configuration
|
|
*
|
|
* The UART devices have fixed pin mappings, so all we need to do, is to specify
|
|
* which devices we would like to use and their corresponding RX interrupts. See
|
|
* the reference manual for the fixed pin mapping.
|
|
*
|
|
* @{
|
|
*/
|
|
#ifndef UART_NUMOF
|
|
#define UART_NUMOF (0U)
|
|
#endif /* UART_NUMOF */
|
|
/** @} */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/** @} */
|