From d52683fcb45781037170fc99b493927e5f7750b5 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Tue, 28 Jan 2020 14:59:35 -0700 Subject: [PATCH] Add DAC registers --- src/ec/it5570e/include/ec/dac.h | 12 ++++++++++++ src/ec/it8587e/include/ec/dac.h | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 src/ec/it5570e/include/ec/dac.h create mode 100644 src/ec/it8587e/include/ec/dac.h diff --git a/src/ec/it5570e/include/ec/dac.h b/src/ec/it5570e/include/ec/dac.h new file mode 100644 index 0000000..af02a91 --- /dev/null +++ b/src/ec/it5570e/include/ec/dac.h @@ -0,0 +1,12 @@ +#ifndef _EC_DAC_H +#define _EC_DAC_H + +#include + +volatile uint8_t __xdata __at(0x1A01) DACPDREG; +volatile uint8_t __xdata __at(0x1A04) DACDAT2; +volatile uint8_t __xdata __at(0x1A05) DACDAT3; +volatile uint8_t __xdata __at(0x1A06) DACDAT4; +volatile uint8_t __xdata __at(0x1A07) DACDAT5; + +#endif // _EC_DAC_H diff --git a/src/ec/it8587e/include/ec/dac.h b/src/ec/it8587e/include/ec/dac.h new file mode 100644 index 0000000..af02a91 --- /dev/null +++ b/src/ec/it8587e/include/ec/dac.h @@ -0,0 +1,12 @@ +#ifndef _EC_DAC_H +#define _EC_DAC_H + +#include + +volatile uint8_t __xdata __at(0x1A01) DACPDREG; +volatile uint8_t __xdata __at(0x1A04) DACDAT2; +volatile uint8_t __xdata __at(0x1A05) DACDAT3; +volatile uint8_t __xdata __at(0x1A06) DACDAT4; +volatile uint8_t __xdata __at(0x1A07) DACDAT5; + +#endif // _EC_DAC_H