2015-06-03 18:21:29 +02:00
|
|
|
/*
|
2016-02-08 21:51:15 +01:00
|
|
|
* Copyright (C) 2015-2016 Freie Universität Berlin
|
2015-06-03 18:21:29 +02: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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup cpu_stm32f3
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief CPU specific definitions for internal peripheral handling
|
|
|
|
*
|
2017-01-19 21:45:23 +01:00
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
2015-06-03 18:21:29 +02:00
|
|
|
*/
|
|
|
|
|
2016-02-08 21:51:15 +01:00
|
|
|
#ifndef PERIPH_CPU_H
|
|
|
|
#define PERIPH_CPU_H
|
2015-06-03 18:21:29 +02:00
|
|
|
|
2016-02-08 21:51:15 +01:00
|
|
|
#include "periph_cpu_common.h"
|
2015-06-03 18:21:29 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Available ports on the STM32F3 family
|
|
|
|
*/
|
|
|
|
enum {
|
|
|
|
PORT_A = 0, /**< port A */
|
|
|
|
PORT_B = 1, /**< port B */
|
|
|
|
PORT_C = 2, /**< port C */
|
|
|
|
PORT_D = 3, /**< port D */
|
|
|
|
PORT_E = 4, /**< port E */
|
|
|
|
PORT_F = 5, /**< port F */
|
2017-03-07 13:37:54 +01:00
|
|
|
PORT_G = 6, /**< port G */
|
|
|
|
PORT_H = 7, /**< port H */
|
2015-06-03 18:21:29 +02:00
|
|
|
};
|
|
|
|
|
2016-03-15 10:49:48 +01:00
|
|
|
/**
|
|
|
|
* @brief DAC line configuration support
|
|
|
|
*/
|
|
|
|
typedef struct {
|
|
|
|
gpio_t pin; /**< pin connected to the line */
|
|
|
|
uint8_t dac; /**< The DAC to use, 0 or 1 */
|
|
|
|
uint8_t chan; /**< DAC device used for this line */
|
|
|
|
} dac_conf_t;
|
|
|
|
|
2015-06-03 18:21:29 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2017-01-18 13:00:05 +01:00
|
|
|
#endif /* PERIPH_CPU_H */
|
2015-06-03 18:21:29 +02:00
|
|
|
/** @} */
|