Library to control a Graphics TFT connected to 4-wire SPI - revised for the Raio RA8875 Display Controller.

Dependents:   FRDM_RA8875_mPaint RA8875_Demo RA8875_KeyPadDemo RA8875_Demo ... more

Fork of SPI_TFT by Peter Drescher

See Components - RA8875 Based Display

Enhanced touch-screen support - where it previous supported both the Resistive Touch and Capacitive Touch based on the FT5206 Touch Controller, now it also has support for the GSL1680 Touch Controller.

Offline Help Manual (Windows chm)

/media/uploads/WiredHome/ra8875.zip.bin (download, rename to .zip and unzip)

Committer:
WiredHome
Date:
Mon Nov 25 19:55:17 2019 +0000
Revision:
193:74f80834d59d
Parent:
190:3132b7dfad82
Child:
198:9b6851107426
Improve debouncing of resistive touch.; Minor format changes for easier maintenance.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
WiredHome 77:9206c13aa527 1 //
WiredHome 77:9206c13aa527 2 // RA8875 Display Controller Register Definitions.
WiredHome 77:9206c13aa527 3 //
WiredHome 77:9206c13aa527 4 //
WiredHome 77:9206c13aa527 5 #ifndef RA8875_REGS_H
WiredHome 77:9206c13aa527 6 #define RA8875_REGS_H
WiredHome 77:9206c13aa527 7
WiredHome 193:74f80834d59d 8 // Touch Panel public macros
WiredHome 193:74f80834d59d 9 #define RESISTIVE_TOUCH_POINTS 1
WiredHome 190:3132b7dfad82 10
WiredHome 193:74f80834d59d 11 /* Touch Panel Enable/Disable Reg TPCR0[7] */
WiredHome 193:74f80834d59d 12 #define TP_ENABLE ((uint8_t)(1<<7))
WiredHome 193:74f80834d59d 13 #define TP_DISABLE ((uint8_t)(0<<7))
WiredHome 190:3132b7dfad82 14
WiredHome 193:74f80834d59d 15 /* Touch Panel operating mode Reg TPCR1[6] */
WiredHome 193:74f80834d59d 16 #define TP_MODE_AUTO ((uint8_t)(0<<6))
WiredHome 193:74f80834d59d 17 #define TP_MODE_MANUAL ((uint8_t)(1<<6))
WiredHome 190:3132b7dfad82 18
WiredHome 193:74f80834d59d 19 /* Touch Panel debounce Reg TPCR1[2] */
WiredHome 193:74f80834d59d 20 #define TP_DEBOUNCE_OFF ((uint8_t)(0<<2))
WiredHome 193:74f80834d59d 21 #define TP_DEBOUNCE_ON ((uint8_t)(1<<2))
WiredHome 190:3132b7dfad82 22
WiredHome 193:74f80834d59d 23 /* Touch Panel manual modes Reg TPCR1[1:0] */
WiredHome 193:74f80834d59d 24 #define TP_MANUAL_IDLE 0
WiredHome 193:74f80834d59d 25 #define TP_MANUAL_WAIT 1
WiredHome 193:74f80834d59d 26 #define TP_MANUAL_LATCH_X 2
WiredHome 193:74f80834d59d 27 #define TP_MANUAL_LATCH_Y 3
WiredHome 190:3132b7dfad82 28
WiredHome 193:74f80834d59d 29 /* Touch Panel ADC Clock modes Reg TPCR0[2:0] */
WiredHome 193:74f80834d59d 30 #define TP_ADC_CLKDIV_1 0
WiredHome 193:74f80834d59d 31 #define TP_ADC_CLKDIV_2 1
WiredHome 193:74f80834d59d 32 #define TP_ADC_CLKDIV_4 2
WiredHome 193:74f80834d59d 33 #define TP_ADC_CLKDIV_8 3
WiredHome 193:74f80834d59d 34 #define TP_ADC_CLKDIV_16 4
WiredHome 193:74f80834d59d 35 #define TP_ADC_CLKDIV_32 5
WiredHome 193:74f80834d59d 36 #define TP_ADC_CLKDIV_64 6
WiredHome 193:74f80834d59d 37 #define TP_ADC_CLKDIV_128 7
WiredHome 190:3132b7dfad82 38
WiredHome 190:3132b7dfad82 39
WiredHome 193:74f80834d59d 40 /* Touch Panel Sample Time Reg TPCR0[6:4] */
WiredHome 193:74f80834d59d 41 #define TP_ADC_SAMPLE_512_CLKS ((uint8_t)(0<<4))
WiredHome 193:74f80834d59d 42 #define TP_ADC_SAMPLE_1024_CLKS ((uint8_t)(1<<4))
WiredHome 193:74f80834d59d 43 #define TP_ADC_SAMPLE_2048_CLKS ((uint8_t)(2<<4))
WiredHome 193:74f80834d59d 44 #define TP_ADC_SAMPLE_4096_CLKS ((uint8_t)(3<<4))
WiredHome 193:74f80834d59d 45 #define TP_ADC_SAMPLE_8192_CLKS ((uint8_t)(4<<4))
WiredHome 193:74f80834d59d 46 #define TP_ADC_SAMPLE_16384_CLKS ((uint8_t)(5<<4))
WiredHome 193:74f80834d59d 47 #define TP_ADC_SAMPLE_32768_CLKS ((uint8_t)(6<<4))
WiredHome 193:74f80834d59d 48 #define TP_ADC_SAMPLE_65536_CLKS ((uint8_t)(7<<4))
WiredHome 190:3132b7dfad82 49
WiredHome 193:74f80834d59d 50 /* RA8875 interrupt enable/flag/clear masks */
WiredHome 193:74f80834d59d 51 #define RA8875_INT_KEYSCAN ((uint8_t)(1<<4)) /**< KEYSCAN interrupts */
WiredHome 193:74f80834d59d 52 #define RA8875_INT_DMA ((uint8_t)(1<<3)) /**< DMA interrupts */
WiredHome 193:74f80834d59d 53 #define RA8875_INT_TP ((uint8_t)(1<<2)) /**< Touch panel interrupts */
WiredHome 193:74f80834d59d 54 #define RA8875_INT_BTE ((uint8_t)(1<<1)) /**< BTE process complete interrupts */
WiredHome 193:74f80834d59d 55 #define RA8875_INT_BTEMCU_FONTWR ((uint8_t)(1<<0)) /**< BTE-MCU-R/W or Font-Write interrupts */
WiredHome 77:9206c13aa527 56
WiredHome 175:7be3a1fb7fc2 57
WiredHome 193:74f80834d59d 58 // RA8875 Register Names and Bit-Values
WiredHome 193:74f80834d59d 59 //
WiredHome 193:74f80834d59d 60 // Leveraged from Adafruit library for register names that match
WiredHome 193:74f80834d59d 61 // the RA8875 PDF documentation.
WiredHome 193:74f80834d59d 62 //
WiredHome 193:74f80834d59d 63 // Missing registered that are used herein have been added
WiredHome 190:3132b7dfad82 64
WiredHome 193:74f80834d59d 65 // Command/Data pins for SPI
WiredHome 193:74f80834d59d 66 //#define RA8875_DATAWRITE 0x00
WiredHome 193:74f80834d59d 67 //#define RA8875_DATAREAD 0x40
WiredHome 193:74f80834d59d 68 //#define RA8875_CMDWRITE 0x80
WiredHome 193:74f80834d59d 69 //#define RA8875_CMDREAD 0xC0
WiredHome 175:7be3a1fb7fc2 70
WiredHome 193:74f80834d59d 71 // Registers & bits
WiredHome 193:74f80834d59d 72 #define RA8875_PWRR 0x01
WiredHome 193:74f80834d59d 73 #define RA8875_PWRR_DISPON 0x80
WiredHome 193:74f80834d59d 74 #define RA8875_PWRR_DISPOFF 0x00
WiredHome 193:74f80834d59d 75 #define RA8875_PWRR_SLEEP 0x02
WiredHome 193:74f80834d59d 76 #define RA8875_PWRR_NORMAL 0x00
WiredHome 193:74f80834d59d 77 #define RA8875_PWRR_SOFTRESET 0x01
WiredHome 190:3132b7dfad82 78
WiredHome 193:74f80834d59d 79 #define RA8875_MRWC 0x02
WiredHome 190:3132b7dfad82 80
WiredHome 193:74f80834d59d 81 #define RA8875_GPIOX 0xC7
WiredHome 190:3132b7dfad82 82
WiredHome 193:74f80834d59d 83 #define RA8875_SYSR 0x10
WiredHome 193:74f80834d59d 84 #define RA8875_SYSR_8BPP 0x00
WiredHome 193:74f80834d59d 85 #define RA8875_SYSR_16BPP 0x0C
WiredHome 193:74f80834d59d 86 #define RA8875_SYSR_MCU8 0x00
WiredHome 193:74f80834d59d 87 #define RA8875_SYSR_MCU16 0x03
WiredHome 190:3132b7dfad82 88
WiredHome 193:74f80834d59d 89 #define RA8875_PCSR 0x04
WiredHome 193:74f80834d59d 90 #define RA8875_PCSR_PDATR 0x00
WiredHome 193:74f80834d59d 91 #define RA8875_PCSR_PDATL 0x80
WiredHome 193:74f80834d59d 92 #define RA8875_PCSR_CLK 0x00
WiredHome 193:74f80834d59d 93 #define RA8875_PCSR_2CLK 0x01
WiredHome 193:74f80834d59d 94 #define RA8875_PCSR_4CLK 0x02
WiredHome 193:74f80834d59d 95 #define RA8875_PCSR_8CLK 0x03
WiredHome 190:3132b7dfad82 96
WiredHome 193:74f80834d59d 97 #define RA8875_HDWR 0x14
WiredHome 190:3132b7dfad82 98
WiredHome 193:74f80834d59d 99 #define RA8875_HNDFTR 0x15
WiredHome 193:74f80834d59d 100 #define RA8875_HNDFTR_DE_HIGH 0x00
WiredHome 193:74f80834d59d 101 #define RA8875_HNDFTR_DE_LOW 0x80
WiredHome 190:3132b7dfad82 102
WiredHome 193:74f80834d59d 103 #define RA8875_HNDR 0x16
WiredHome 193:74f80834d59d 104 #define RA8875_HSTR 0x17
WiredHome 193:74f80834d59d 105 #define RA8875_HPWR 0x18
WiredHome 193:74f80834d59d 106 #define RA8875_HPWR_LOW 0x00
WiredHome 193:74f80834d59d 107 #define RA8875_HPWR_HIGH 0x80
WiredHome 190:3132b7dfad82 108
WiredHome 193:74f80834d59d 109 #define RA8875_VDHR0 0x19
WiredHome 193:74f80834d59d 110 #define RA8875_VDHR1 0x1A
WiredHome 193:74f80834d59d 111 #define RA8875_VNDR0 0x1B
WiredHome 193:74f80834d59d 112 #define RA8875_VNDR1 0x1C
WiredHome 193:74f80834d59d 113 #define RA8875_VSTR0 0x1D
WiredHome 193:74f80834d59d 114 #define RA8875_VSTR1 0x1E
WiredHome 193:74f80834d59d 115 #define RA8875_VPWR 0x1F
WiredHome 193:74f80834d59d 116 #define RA8875_VPWR_LOW 0x00
WiredHome 193:74f80834d59d 117 #define RA8875_VPWR_HIGH 0x80
WiredHome 190:3132b7dfad82 118
WiredHome 193:74f80834d59d 119 #define RA8875_DPCR 0x20
WiredHome 193:74f80834d59d 120 #define RA8875_FNCR0 0x21
WiredHome 193:74f80834d59d 121 #define RA8875_FNCR1 0x22
WiredHome 193:74f80834d59d 122 #define RA8875_CGSR 0x23
WiredHome 193:74f80834d59d 123 #define RA8875_HOFS0 0x24
WiredHome 193:74f80834d59d 124 #define RA8875_HOFS1 0x25
WiredHome 193:74f80834d59d 125 #define RA8875_VOFS0 0x26
WiredHome 193:74f80834d59d 126 #define RA8875_VOFS1 0x27
WiredHome 190:3132b7dfad82 127
WiredHome 193:74f80834d59d 128 #define RA8875_FLDR 0x29
WiredHome 193:74f80834d59d 129 #define RA8875_FCURXL 0x2A
WiredHome 193:74f80834d59d 130 #define RA8875_FCURXH 0x2B
WiredHome 193:74f80834d59d 131 #define RA8875_FCURYL 0x2C
WiredHome 193:74f80834d59d 132 #define RA8875_FCURYH 0x2D
WiredHome 193:74f80834d59d 133 #define RA8875_FWTYPSR 0x2E
WiredHome 193:74f80834d59d 134 #define RA8875_SFROMS 0x2F
WiredHome 190:3132b7dfad82 135
WiredHome 193:74f80834d59d 136 #define RA8875_HSAW0 0x30
WiredHome 193:74f80834d59d 137 #define RA8875_HSAW1 0x31
WiredHome 193:74f80834d59d 138 #define RA8875_VSAW0 0x32
WiredHome 193:74f80834d59d 139 #define RA8875_VSAW1 0x33
WiredHome 190:3132b7dfad82 140
WiredHome 193:74f80834d59d 141 #define RA8875_HEAW0 0x34
WiredHome 193:74f80834d59d 142 #define RA8875_HEAW1 0x35
WiredHome 193:74f80834d59d 143 #define RA8875_VEAW0 0x36
WiredHome 193:74f80834d59d 144 #define RA8875_VEAW1 0x37
WiredHome 190:3132b7dfad82 145
WiredHome 193:74f80834d59d 146 #define RA8875_MWCR0 0x40
WiredHome 193:74f80834d59d 147 #define RA8875_MWCR0_GFXMODE 0x00
WiredHome 193:74f80834d59d 148 #define RA8875_MWCR0_TXTMODE 0x80
WiredHome 190:3132b7dfad82 149
WiredHome 193:74f80834d59d 150 #define RA8875_MWCR1 0x41
WiredHome 193:74f80834d59d 151 #define RA8875_MWCR1_GFXCURDIS 0x00
WiredHome 193:74f80834d59d 152 #define RA8875_MWCR1_GFXCURENA 0x80
WiredHome 190:3132b7dfad82 153
WiredHome 193:74f80834d59d 154 #define RA8875_BTCR 0x44
WiredHome 193:74f80834d59d 155 #define RA8875_MRCD 0x45
WiredHome 193:74f80834d59d 156 #define RA8875_CURH0 0x46
WiredHome 193:74f80834d59d 157 #define RA8875_CURH1 0x47
WiredHome 193:74f80834d59d 158 #define RA8875_CURV0 0x48
WiredHome 193:74f80834d59d 159 #define RA8875_CURV1 0x49
WiredHome 175:7be3a1fb7fc2 160
WiredHome 193:74f80834d59d 161 #define RA8875_RCURH0 0x4A
WiredHome 193:74f80834d59d 162 #define RA8875_RCURH1 0x4B
WiredHome 193:74f80834d59d 163 #define RA8875_RCURV0 0x4C
WiredHome 193:74f80834d59d 164 #define RA8875_RCURV1 0x4D
WiredHome 193:74f80834d59d 165 #define RA8875_CURHS 0x4E
WiredHome 193:74f80834d59d 166 #define RA8875_CURVS 0x4F
WiredHome 190:3132b7dfad82 167
WiredHome 193:74f80834d59d 168 #define RA8875_BECR0 0x50
WiredHome 193:74f80834d59d 169 #define RA8875_BECR1 0x51
WiredHome 175:7be3a1fb7fc2 170
WiredHome 193:74f80834d59d 171 #define RA8875_LTPR0 0x52
WiredHome 193:74f80834d59d 172 #define RA8875_LTPR1 0x53
WiredHome 175:7be3a1fb7fc2 173
WiredHome 193:74f80834d59d 174 #define RA8875_HSBE0 0x54
WiredHome 193:74f80834d59d 175 #define RA8875_HSBE1 0x55
WiredHome 193:74f80834d59d 176 #define RA8875_VSBE0 0x56
WiredHome 193:74f80834d59d 177 #define RA8875_VSBE1 0x57
WiredHome 193:74f80834d59d 178 #define RA8875_HDBE0 0x58
WiredHome 193:74f80834d59d 179 #define RA8875_HDBE1 0x59
WiredHome 193:74f80834d59d 180 #define RA8875_VDBE0 0x5A
WiredHome 193:74f80834d59d 181 #define RA8875_VDBE1 0x5B
WiredHome 193:74f80834d59d 182 #define RA8875_BEWR0 0x5C
WiredHome 193:74f80834d59d 183 #define RA8875_BEWR1 0x5D
WiredHome 193:74f80834d59d 184 #define RA8875_BEHR0 0x5E
WiredHome 193:74f80834d59d 185 #define RA8875_BEHR1 0x5F
WiredHome 190:3132b7dfad82 186
WiredHome 190:3132b7dfad82 187
WiredHome 190:3132b7dfad82 188
WiredHome 190:3132b7dfad82 189
WiredHome 193:74f80834d59d 190 #define RA8875_TPCR0 0x70
WiredHome 193:74f80834d59d 191 #define RA8875_TPCR0_ENABLE 0x80
WiredHome 193:74f80834d59d 192 #define RA8875_TPCR0_DISABLE 0x00
WiredHome 193:74f80834d59d 193 #define RA8875_TPCR0_WAIT_512CLK 0x00
WiredHome 193:74f80834d59d 194 #define RA8875_TPCR0_WAIT_1024CLK 0x10
WiredHome 193:74f80834d59d 195 #define RA8875_TPCR0_WAIT_2048CLK 0x20
WiredHome 193:74f80834d59d 196 #define RA8875_TPCR0_WAIT_4096CLK 0x30
WiredHome 193:74f80834d59d 197 #define RA8875_TPCR0_WAIT_8192CLK 0x40
WiredHome 193:74f80834d59d 198 #define RA8875_TPCR0_WAIT_16384CLK 0x50
WiredHome 193:74f80834d59d 199 #define RA8875_TPCR0_WAIT_32768CLK 0x60
WiredHome 193:74f80834d59d 200 #define RA8875_TPCR0_WAIT_65536CLK 0x70
WiredHome 193:74f80834d59d 201 #define RA8875_TPCR0_WAKEENABLE 0x08
WiredHome 193:74f80834d59d 202 #define RA8875_TPCR0_WAKEDISABLE 0x00
WiredHome 193:74f80834d59d 203 #define RA8875_TPCR0_ADCCLK_DIV1 0x00
WiredHome 193:74f80834d59d 204 #define RA8875_TPCR0_ADCCLK_DIV2 0x01
WiredHome 193:74f80834d59d 205 #define RA8875_TPCR0_ADCCLK_DIV4 0x02
WiredHome 193:74f80834d59d 206 #define RA8875_TPCR0_ADCCLK_DIV8 0x03
WiredHome 193:74f80834d59d 207 #define RA8875_TPCR0_ADCCLK_DIV16 0x04
WiredHome 193:74f80834d59d 208 #define RA8875_TPCR0_ADCCLK_DIV32 0x05
WiredHome 193:74f80834d59d 209 #define RA8875_TPCR0_ADCCLK_DIV64 0x06
WiredHome 193:74f80834d59d 210 #define RA8875_TPCR0_ADCCLK_DIV128 0x07
WiredHome 175:7be3a1fb7fc2 211
WiredHome 193:74f80834d59d 212 #define RA8875_TPCR1 0x71
WiredHome 193:74f80834d59d 213 #define RA8875_TPCR1_AUTO 0x00
WiredHome 193:74f80834d59d 214 #define RA8875_TPCR1_MANUAL 0x40
WiredHome 193:74f80834d59d 215 #define RA8875_TPCR1_VREFINT 0x00
WiredHome 193:74f80834d59d 216 #define RA8875_TPCR1_VREFEXT 0x20
WiredHome 193:74f80834d59d 217 #define RA8875_TPCR1_DEBOUNCE 0x04
WiredHome 193:74f80834d59d 218 #define RA8875_TPCR1_NODEBOUNCE 0x00
WiredHome 193:74f80834d59d 219 #define RA8875_TPCR1_IDLE 0x00
WiredHome 193:74f80834d59d 220 #define RA8875_TPCR1_WAIT 0x01
WiredHome 193:74f80834d59d 221 #define RA8875_TPCR1_LATCHX 0x02
WiredHome 193:74f80834d59d 222 #define RA8875_TPCR1_LATCHY 0x03
WiredHome 190:3132b7dfad82 223
WiredHome 193:74f80834d59d 224 #define RA8875_TPXH 0x72
WiredHome 193:74f80834d59d 225 #define RA8875_TPYH 0x73
WiredHome 193:74f80834d59d 226 #define RA8875_TPXYL 0x74
WiredHome 193:74f80834d59d 227 #define RA8875_TPXYL_ADET 0x80
WiredHome 175:7be3a1fb7fc2 228
WiredHome 193:74f80834d59d 229 #define RA8875_PLLC1 0x88
WiredHome 193:74f80834d59d 230 #define RA8875_PLLC1_PLLDIV2 0x80
WiredHome 193:74f80834d59d 231 #define RA8875_PLLC1_PLLDIV1 0x00
WiredHome 175:7be3a1fb7fc2 232
WiredHome 193:74f80834d59d 233 #define RA8875_PLLC2 0x89
WiredHome 193:74f80834d59d 234 #define RA8875_PLLC2_DIV1 0x00
WiredHome 193:74f80834d59d 235 #define RA8875_PLLC2_DIV2 0x01
WiredHome 193:74f80834d59d 236 #define RA8875_PLLC2_DIV4 0x02
WiredHome 193:74f80834d59d 237 #define RA8875_PLLC2_DIV8 0x03
WiredHome 193:74f80834d59d 238 #define RA8875_PLLC2_DIV16 0x04
WiredHome 193:74f80834d59d 239 #define RA8875_PLLC2_DIV32 0x05
WiredHome 193:74f80834d59d 240 #define RA8875_PLLC2_DIV64 0x06
WiredHome 193:74f80834d59d 241 #define RA8875_PLLC2_DIV128 0x07
WiredHome 175:7be3a1fb7fc2 242
WiredHome 193:74f80834d59d 243 #define RA8875_MCLR 0x8E
WiredHome 193:74f80834d59d 244 #define RA8875_MCLR_START 0x80
WiredHome 193:74f80834d59d 245 #define RA8875_MCLR_STOP 0x00
WiredHome 193:74f80834d59d 246 #define RA8875_MCLR_READSTATUS 0x80
WiredHome 193:74f80834d59d 247 #define RA8875_MCLR_FULL 0x00
WiredHome 193:74f80834d59d 248 #define RA8875_MCLR_ACTIVE 0x40
WiredHome 175:7be3a1fb7fc2 249
WiredHome 193:74f80834d59d 250 #define RA8875_P1CR 0x8A
WiredHome 193:74f80834d59d 251 #define RA8875_P1CR_ENABLE 0x80
WiredHome 193:74f80834d59d 252 #define RA8875_P1CR_DISABLE 0x00
WiredHome 193:74f80834d59d 253 #define RA8875_P1CR_CLKOUT 0x10
WiredHome 193:74f80834d59d 254 #define RA8875_P1CR_PWMOUT 0x00
WiredHome 190:3132b7dfad82 255
WiredHome 193:74f80834d59d 256 #define RA8875_P1DCR 0x8B
WiredHome 190:3132b7dfad82 257
WiredHome 193:74f80834d59d 258 #define RA8875_P2CR 0x8C
WiredHome 193:74f80834d59d 259 #define RA8875_P2CR_ENABLE 0x80
WiredHome 193:74f80834d59d 260 #define RA8875_P2CR_DISABLE 0x00
WiredHome 193:74f80834d59d 261 #define RA8875_P2CR_CLKOUT 0x10
WiredHome 193:74f80834d59d 262 #define RA8875_P2CR_PWMOUT 0x00
WiredHome 190:3132b7dfad82 263
WiredHome 193:74f80834d59d 264 #define RA8875_PWM_CLK_DIV1 0x00
WiredHome 193:74f80834d59d 265 #define RA8875_PWM_CLK_DIV2 0x01
WiredHome 193:74f80834d59d 266 #define RA8875_PWM_CLK_DIV4 0x02
WiredHome 193:74f80834d59d 267 #define RA8875_PWM_CLK_DIV8 0x03
WiredHome 193:74f80834d59d 268 #define RA8875_PWM_CLK_DIV16 0x04
WiredHome 193:74f80834d59d 269 #define RA8875_PWM_CLK_DIV32 0x05
WiredHome 193:74f80834d59d 270 #define RA8875_PWM_CLK_DIV64 0x06
WiredHome 193:74f80834d59d 271 #define RA8875_PWM_CLK_DIV128 0x07
WiredHome 193:74f80834d59d 272 #define RA8875_PWM_CLK_DIV256 0x08
WiredHome 193:74f80834d59d 273 #define RA8875_PWM_CLK_DIV512 0x09
WiredHome 193:74f80834d59d 274 #define RA8875_PWM_CLK_DIV1024 0x0A
WiredHome 193:74f80834d59d 275 #define RA8875_PWM_CLK_DIV2048 0x0B
WiredHome 193:74f80834d59d 276 #define RA8875_PWM_CLK_DIV4096 0x0C
WiredHome 193:74f80834d59d 277 #define RA8875_PWM_CLK_DIV8192 0x0D
WiredHome 193:74f80834d59d 278 #define RA8875_PWM_CLK_DIV16384 0x0E
WiredHome 193:74f80834d59d 279 #define RA8875_PWM_CLK_DIV32768 0x0F
WiredHome 175:7be3a1fb7fc2 280
WiredHome 193:74f80834d59d 281 #define RA8875_P2DCR 0x8D
WiredHome 175:7be3a1fb7fc2 282
WiredHome 193:74f80834d59d 283 #define RA8875_DCR 0x90
WiredHome 193:74f80834d59d 284 #define RA8875_DCR_LINESQUTRI_START 0x80
WiredHome 193:74f80834d59d 285 #define RA8875_DCR_LINESQUTRI_STOP 0x00
WiredHome 193:74f80834d59d 286 #define RA8875_DCR_LINESQUTRI_STATUS 0x80
WiredHome 193:74f80834d59d 287 #define RA8875_DCR_CIRCLE_START 0x40
WiredHome 193:74f80834d59d 288 #define RA8875_DCR_CIRCLE_STATUS 0x40
WiredHome 193:74f80834d59d 289 #define RA8875_DCR_CIRCLE_STOP 0x00
WiredHome 193:74f80834d59d 290 #define RA8875_DCR_FILL 0x20
WiredHome 193:74f80834d59d 291 #define RA8875_DCR_NOFILL 0x00
WiredHome 193:74f80834d59d 292 #define RA8875_DCR_DRAWSQUARE 0x10
WiredHome 193:74f80834d59d 293 #define RA8875_DCR_DRAWTRIANGLE 0x01
WiredHome 193:74f80834d59d 294 #define RA8875_DCR_DRAWLINE 0x00
WiredHome 175:7be3a1fb7fc2 295
WiredHome 193:74f80834d59d 296 #define RA8875_DLHSR0 0x91
WiredHome 193:74f80834d59d 297 #define RA8875_DLHSR1 0x92
WiredHome 193:74f80834d59d 298 #define RA8875_DLVSR0 0x93
WiredHome 193:74f80834d59d 299 #define RA8875_DLVSR1 0x94
WiredHome 193:74f80834d59d 300 #define RA8875_DLHER0 0x95
WiredHome 193:74f80834d59d 301 #define RA8875_DLHER1 0x96
WiredHome 193:74f80834d59d 302 #define RA8875_DLVER0 0x97
WiredHome 193:74f80834d59d 303 #define RA8875_DLVER1 0x98
WiredHome 193:74f80834d59d 304 #define RA8875_DCHR0 0x99
WiredHome 193:74f80834d59d 305 #define RA8875_DCHHR1 0x9A
WiredHome 193:74f80834d59d 306 #define RA8875_DCVR0 0x9B
WiredHome 193:74f80834d59d 307 #define RA8875_DCVR1 0x9C
WiredHome 175:7be3a1fb7fc2 308
WiredHome 193:74f80834d59d 309 #define RA8875_DCRR 0x9D
WiredHome 190:3132b7dfad82 310
WiredHome 193:74f80834d59d 311 #define RA8875_ELLIPSE 0xA0
WiredHome 193:74f80834d59d 312 #define RA8875_ELLIPSE_STATUS 0x80
WiredHome 190:3132b7dfad82 313
WiredHome 193:74f80834d59d 314 #define RA8875_ELLA0 0xA1
WiredHome 193:74f80834d59d 315 #define RA8875_ELLA1 0xA2
WiredHome 193:74f80834d59d 316 #define RA8875_ELLB0 0xA3
WiredHome 193:74f80834d59d 317 #define RA8875_ELLB1 0xA4
WiredHome 193:74f80834d59d 318 #define RA8875_DEHR0 0xA5
WiredHome 193:74f80834d59d 319 #define RA8875_DEHR1 0xA6
WiredHome 193:74f80834d59d 320 #define RA8875_DEVR0 0xA7
WiredHome 193:74f80834d59d 321 #define RA8875_DEVR1 0xA8
WiredHome 175:7be3a1fb7fc2 322
WiredHome 193:74f80834d59d 323 #define RA8875_DTPH0 0xA9
WiredHome 193:74f80834d59d 324 #define RA8875_DTPH1 0xAA
WiredHome 193:74f80834d59d 325 #define RA8875_DTPV0 0xAB
WiredHome 193:74f80834d59d 326 #define RA8875_DTPV1 0xAC
WiredHome 190:3132b7dfad82 327
WiredHome 193:74f80834d59d 328 #define RA8875_KSCR1 0xC0
WiredHome 193:74f80834d59d 329 #define RA8875_KSCR2 0xC1
WiredHome 190:3132b7dfad82 330
WiredHome 193:74f80834d59d 331 #define RA8875_INTC1 0xF0
WiredHome 193:74f80834d59d 332 #define RA8875_INTC1_KEY 0x10
WiredHome 193:74f80834d59d 333 #define RA8875_INTC1_DMA 0x08
WiredHome 193:74f80834d59d 334 #define RA8875_INTC1_TP 0x04
WiredHome 193:74f80834d59d 335 #define RA8875_INTC1_BTE 0x02
WiredHome 190:3132b7dfad82 336
WiredHome 193:74f80834d59d 337 #define RA8875_INTC2 0xF1
WiredHome 193:74f80834d59d 338 #define RA8875_INTC2_KEY 0x10
WiredHome 193:74f80834d59d 339 #define RA8875_INTC2_DMA 0x08
WiredHome 193:74f80834d59d 340 #define RA8875_INTC2_TP 0x04
WiredHome 193:74f80834d59d 341 #define RA8875_INTC2_BTE 0x02
WiredHome 190:3132b7dfad82 342
WiredHome 190:3132b7dfad82 343 #endif // RA8875_REGS_H