From 0d440118bd4e1ba64f92d3636302fbddeac5bef6 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Fri, 18 Feb 2011 04:00:00 -0500 Subject: Basic DAC functionality (high-density devices only). --- libmaple/dac.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libmaple/dac.h') diff --git a/libmaple/dac.h b/libmaple/dac.h index 9c84f2e..340a49a 100644 --- a/libmaple/dac.h +++ b/libmaple/dac.h @@ -55,6 +55,8 @@ typedef struct { volatile uint32 DOR2; } DAC_Map; +/* There's only one DAC, so expose it. */ +extern DAC_Map *dac; // And here are the register bit ranges #define DAC_CR_EN1 BIT(0) -- cgit v1.2.3