stm32f3 dac support added.

This commit is contained in:
Federico Ruiz Ugalde 2013-06-26 01:29:30 -06:00 committed by Piotr Esden-Tempski
parent 0a39eab19a
commit a7bcf6446b
4 changed files with 75 additions and 1 deletions

View File

@ -21,6 +21,8 @@
# include <libopencm3/stm32/f1/dac.h> # include <libopencm3/stm32/f1/dac.h>
#elif defined(STM32F2) #elif defined(STM32F2)
# include <libopencm3/stm32/f2/dac.h> # include <libopencm3/stm32/f2/dac.h>
#elif defined(STM32F3)
# include <libopencm3/stm32/f3/dac.h>
#elif defined(STM32F4) #elif defined(STM32F4)
# include <libopencm3/stm32/f4/dac.h> # include <libopencm3/stm32/f4/dac.h>
#elif defined(STM32L1) #elif defined(STM32L1)

View File

@ -0,0 +1,38 @@
/** @defgroup dac_defines DAC Defines
@brief <b>Defined Constants and Types for the STM32F3xx DAC</b>
@ingroup STM32F3xx_defines
@version 1.0.0
@date 5 December 2012
LGPL License Terms @ref lgpl_license
*/
/*
* This file is part of the libopencm3 project.
*
* This library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LIBOPENCM3_DAC_H
#define LIBOPENCM3_DAC_H
#include <libopencm3/stm32/memorymap.h>
#include <libopencm3/stm32/common/dac_common_all.h>
#endif

View File

@ -36,7 +36,8 @@ ARFLAGS = rcs
OBJS = rcc.o gpio.o flash.o adc.o OBJS = rcc.o gpio.o flash.o adc.o
OBJS += gpio_common_all.o gpio_common_f234.o i2c_common_all.o OBJS += gpio_common_all.o gpio_common_f234.o i2c_common_all.o\
dac_common_all.o
VPATH += ../../usb:../:../../cm3:../common VPATH += ../../usb:../:../../cm3:../common

33
lib/stm32/f3/dac.c Normal file
View File

@ -0,0 +1,33 @@
/** @defgroup dac_file DAC
@ingroup STM32F3xx
@brief <b>libopencm3 STM32F3xx DAC</b>
@version 1.0.0
@date 18 August 2012
LGPL License Terms @ref lgpl_license
*/
/*
* This file is part of the libopencm3 project.
*
* This library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libopencm3/stm32/dac.h>
#include <libopencm3/stm32/common/dac_common_all.h>