diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-02-18 04:00:00 -0500 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-02-18 04:00:00 -0500 |
commit | 0d440118bd4e1ba64f92d3636302fbddeac5bef6 (patch) | |
tree | da06d190cbcf54bdbe54ff484ac66ac924c3ce38 /libmaple/dac.h | |
parent | 3f76591b3616c07c5a02624aff8649d5fa7e9f4b (diff) | |
download | librambutan-0d440118bd4e1ba64f92d3636302fbddeac5bef6.tar.gz librambutan-0d440118bd4e1ba64f92d3636302fbddeac5bef6.zip |
Basic DAC functionality (high-density devices only).
Diffstat (limited to 'libmaple/dac.h')
-rw-r--r-- | libmaple/dac.h | 2 |
1 files changed, 2 insertions, 0 deletions
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) |