vector 486446e1db STM32F4-7: add DAC_SR status bits
Include the DAC_SR register and it's bits.  Arguably this should be jsut
included in the common_all file.
2019-05-09 11:39:44 +00:00

51 lines
1.3 KiB
C

/** @defgroup dac_defines DAC Defines
@brief <b>Defined Constants and Types for the STM32F7xx DAC</b>
@ingroup STM32F7xx_defines
@version 1.0.0
@date 6 May 2019
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/common/dac_common_all.h>
/** DAC status register (DAC_SR) */
#define DAC_SR MMIO32(DAC_BASE + 0x34)
/* --- DAC_SR values ------------------------------------------------------- */
/** DMAUDR1: DAC channel 1 DMA underrun flag */
#define DAC_SR_DMAUDR1 (1 << 13)
/** DMAUDR2: DAC channel 2 DMA underrun flag */
#define DAC_SR_DMAUDR2 (1 << 29)
#endif