diff options
| author | Bertrik Sikken <bertrik@sikken.nl> | 2008-11-09 09:25:53 +0000 |
|---|---|---|
| committer | Bertrik Sikken <bertrik@sikken.nl> | 2008-11-09 09:25:53 +0000 |
| commit | 4ca4e523fea85947c9530cc29ac5ad8451bef25e (patch) | |
| tree | 20ae24fedaa61a156a5b32d597f3b3ffbab3f04a | |
| parent | aef27e1f0c69516bbcf13d7986e204502d708ec4 (diff) | |
| download | rockbox-4ca4e523fea85947c9530cc29ac5ad8451bef25e.zip rockbox-4ca4e523fea85947c9530cc29ac5ad8451bef25e.tar.gz rockbox-4ca4e523fea85947c9530cc29ac5ad8451bef25e.tar.bz2 rockbox-4ca4e523fea85947c9530cc29ac5ad8451bef25e.tar.xz | |
Rename functions as3525_codec_* to ascodec_* to prepare re-use of as3514 code for sansa v2 players
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19047 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | bootloader/sansa_as3525.c | 2 | ||||
| -rw-r--r-- | firmware/target/arm/as3525/as3525-codec.c | 6 | ||||
| -rw-r--r-- | firmware/target/arm/as3525/as3525-codec.h | 6 | ||||
| -rw-r--r-- | firmware/target/arm/as3525/system-as3525.c | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/bootloader/sansa_as3525.c b/bootloader/sansa_as3525.c index 1385e47..d4b61eb 100644 --- a/bootloader/sansa_as3525.c +++ b/bootloader/sansa_as3525.c @@ -49,7 +49,7 @@ void main(void) lcd_init(); show_logo(); - as3525_codec_init(); /* Required for backlight on e200v2 */ + ascodec_init(); /* Required for backlight on e200v2 */ _backlight_on(); delay = 0x3000000; diff --git a/firmware/target/arm/as3525/as3525-codec.c b/firmware/target/arm/as3525/as3525-codec.c index 0bd4946..76e5071 100644 --- a/firmware/target/arm/as3525/as3525-codec.c +++ b/firmware/target/arm/as3525/as3525-codec.c @@ -57,7 +57,7 @@ /* initialises the internal i2c bus and prepares for transfers to the codec */ -void as3525_codec_init(void) +void ascodec_init(void) { /* reset device */ CCU_SRC = CCU_SRC_I2C_AUDIO_EN; @@ -86,7 +86,7 @@ static int i2c_busy(void) /* returns 0 on success, <0 otherwise */ -int as3525_codec_write(int index, int value) +int ascodec_write(int index, int value) { if (index == 0x21) { /* prevent setting of the LREG_CP_not bit */ @@ -112,7 +112,7 @@ int as3525_codec_write(int index, int value) /* returns value read on success, <0 otherwise */ -int as3525_codec_read(int index) +int ascodec_read(int index) { /* check if still busy */ if (i2c_busy()) { diff --git a/firmware/target/arm/as3525/as3525-codec.h b/firmware/target/arm/as3525/as3525-codec.h index ce6929e..6e6145b 100644 --- a/firmware/target/arm/as3525/as3525-codec.h +++ b/firmware/target/arm/as3525/as3525-codec.h @@ -19,9 +19,9 @@ * ****************************************************************************/ -void as3525_codec_init(void); +void ascodec_init(void); -int as3525_codec_write(int index, int value); -int as3525_codec_read(int index); +int ascodec_write(int index, int value); +int ascodec_read(int index); diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c index 240cb63..a4208c7 100644 --- a/firmware/target/arm/as3525/system-as3525.c +++ b/firmware/target/arm/as3525/system-as3525.c @@ -255,9 +255,9 @@ int system_memory_guard(int newmode) void power_off(void) { int system; - system = as3525_codec_read(0x20); + system = ascodec_read(0x20); system &= ~1; /* clear bit 0 of system register */ - as3525_codec_write(0x20, system); + ascodec_write(0x20, system); /* TODO : turn off peripherals properly ? */ |