diff options
author | Mihail Zenkov <mihail.zenkov@gmail.com> | 2016-02-20 03:36:26 +0000 |
---|---|---|
committer | Mihail Zenkov <mihail.zenkov@gmail.com> | 2016-04-05 01:55:38 +0000 |
commit | c7daef36c5c75b8541d38cec4793826ab085d5ad (patch) | |
tree | 7a690b321d942ad4f12a88682a0689d253c4eb7c /firmware/export/ascodec.h | |
parent | ce90c0481a6c7a5a455791e4e7366c589e52b68c (diff) | |
download | rockbox-c7daef36c5c75b8541d38cec4793826ab085d5ad.tar.gz rockbox-c7daef36c5c75b8541d38cec4793826ab085d5ad.zip |
as3525: reverting I2C2 to non-interrupts version
Interrupts version is cause of freeze on USB extraction.
Also non-interrupts version much simpler and faster.
Change-Id: I30a2993cdcaa85abfba77ca06bfacd5b6b4353e2
Diffstat (limited to 'firmware/export/ascodec.h')
-rw-r--r-- | firmware/export/ascodec.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/firmware/export/ascodec.h b/firmware/export/ascodec.h index 8697adb00d..c2ff3c8242 100644 --- a/firmware/export/ascodec.h +++ b/firmware/export/ascodec.h | |||
@@ -37,13 +37,11 @@ void ascodec_close(void); | |||
37 | void ascodec_lock(void); | 37 | void ascodec_lock(void); |
38 | void ascodec_unlock(void); | 38 | void ascodec_unlock(void); |
39 | 39 | ||
40 | int ascodec_write(unsigned int index, unsigned int value); | 40 | void ascodec_write(unsigned int index, unsigned int value); |
41 | 41 | ||
42 | int ascodec_read(unsigned int index); | 42 | int ascodec_read(unsigned int index); |
43 | 43 | ||
44 | int ascodec_readbytes(unsigned int index, unsigned int len, unsigned char *data); | 44 | void ascodec_readbytes(unsigned int index, unsigned int len, unsigned char *data); |
45 | |||
46 | void ascodec_wait_adc_finished(void); | ||
47 | 45 | ||
48 | #if CONFIG_CHARGING | 46 | #if CONFIG_CHARGING |
49 | bool ascodec_endofch(void); | 47 | bool ascodec_endofch(void); |