diff options
Diffstat (limited to 'firmware')
-rw-r--r--[-rwxr-xr-x] | firmware/SOURCES | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | firmware/export/config-ondavx747.h | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | firmware/export/config-ondavx747p.h | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | firmware/export/config-ondavx767.h | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | firmware/export/config.h | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c | 9 | ||||
-rw-r--r--[-rwxr-xr-x] | firmware/target/mips/ingenic_jz47xx/onda_vx767/usb-target.h | 0 |
7 files changed, 4 insertions, 5 deletions
diff --git a/firmware/SOURCES b/firmware/SOURCES index 711a7c0c56..711a7c0c56 100755..100644 --- a/firmware/SOURCES +++ b/firmware/SOURCES | |||
diff --git a/firmware/export/config-ondavx747.h b/firmware/export/config-ondavx747.h index 2856e7e16d..2856e7e16d 100755..100644 --- a/firmware/export/config-ondavx747.h +++ b/firmware/export/config-ondavx747.h | |||
diff --git a/firmware/export/config-ondavx747p.h b/firmware/export/config-ondavx747p.h index 5c4d3e7aea..5c4d3e7aea 100755..100644 --- a/firmware/export/config-ondavx747p.h +++ b/firmware/export/config-ondavx747p.h | |||
diff --git a/firmware/export/config-ondavx767.h b/firmware/export/config-ondavx767.h index 7216ef0d35..7216ef0d35 100755..100644 --- a/firmware/export/config-ondavx767.h +++ b/firmware/export/config-ondavx767.h | |||
diff --git a/firmware/export/config.h b/firmware/export/config.h index 75aa76a898..75aa76a898 100755..100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
diff --git a/firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c b/firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c index 1aa98819fe..0271fd1b96 100755..100644 --- a/firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c +++ b/firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c | |||
@@ -115,7 +115,7 @@ unsigned int battery_adc_voltage(void) | |||
115 | bat_val = 0; | 115 | bat_val = 0; |
116 | REG_SADC_ENA |= SADC_ENA_PBATEN; | 116 | REG_SADC_ENA |= SADC_ENA_PBATEN; |
117 | 117 | ||
118 | /* Primitive wakeup event */ | 118 | /* primitive wakeup event */ |
119 | while(bat_val == 0) | 119 | while(bat_val == 0) |
120 | yield(); | 120 | yield(); |
121 | 121 | ||
@@ -256,6 +256,7 @@ void SADC(void) | |||
256 | REG_SADC_CTRL |= (SADC_CTRL_PENDM); | 256 | REG_SADC_CTRL |= (SADC_CTRL_PENDM); |
257 | pen_down = true; | 257 | pen_down = true; |
258 | } | 258 | } |
259 | |||
259 | if(state & SADC_CTRL_PENUM) | 260 | if(state & SADC_CTRL_PENUM) |
260 | { | 261 | { |
261 | /* Pen up IRQ */ | 262 | /* Pen up IRQ */ |
@@ -265,6 +266,7 @@ void SADC(void) | |||
265 | datacount = 0; | 266 | datacount = 0; |
266 | cur_touch = 0; | 267 | cur_touch = 0; |
267 | } | 268 | } |
269 | |||
268 | if(state & SADC_CTRL_TSRDYM) | 270 | if(state & SADC_CTRL_TSRDYM) |
269 | { | 271 | { |
270 | unsigned int dat; | 272 | unsigned int dat; |
@@ -306,13 +308,10 @@ void SADC(void) | |||
306 | datacount = 0; | 308 | datacount = 0; |
307 | } | 309 | } |
308 | } | 310 | } |
311 | |||
309 | if(state & SADC_CTRL_PBATRDYM) | 312 | if(state & SADC_CTRL_PBATRDYM) |
310 | { | 313 | { |
311 | bat_val = REG_SADC_BATDAT; | 314 | bat_val = REG_SADC_BATDAT; |
312 | /* Battery AD IRQ */ | 315 | /* Battery AD IRQ */ |
313 | } | 316 | } |
314 | if(state & SADC_CTRL_SRDYM) | ||
315 | { | ||
316 | /* SADC AD IRQ */ | ||
317 | } | ||
318 | } | 317 | } |
diff --git a/firmware/target/mips/ingenic_jz47xx/onda_vx767/usb-target.h b/firmware/target/mips/ingenic_jz47xx/onda_vx767/usb-target.h index 887d7415d0..887d7415d0 100755..100644 --- a/firmware/target/mips/ingenic_jz47xx/onda_vx767/usb-target.h +++ b/firmware/target/mips/ingenic_jz47xx/onda_vx767/usb-target.h | |||