summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-12-28 14:33:57 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2014-12-28 14:33:57 +0100
commit9822428df83b21b2cfd9cb3e4c501c057e70e51b (patch)
tree93cca2cb0cb0b5a24c14e07ba6faea1356ec1f15
parentd5ab518f3d5fa632660e8377d31fbafd561fe5ca (diff)
Fix typeo in WM8523 CHIP ID.HEADmaster
-rw-r--r--firmware/drivers/wm8523.h2
-rw-r--r--firmware/src/p2m.c2
-rw-r--r--firmware/test/wm8523/wm8523test.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/wm8523.h b/firmware/drivers/wm8523.h
index aeffe7b..0e9f5de 100644
--- a/firmware/drivers/wm8523.h
+++ b/firmware/drivers/wm8523.h
@@ -51,7 +51,7 @@ void wm8523_init(uint8_t portnum, wm8523_samplerate_t fs);
* Register: R0 [0:15] (read)
* Default: 1000 0101 0010 0011
*/
-#define WM8532_CHIP_ID 0b1000010100100011
+#define WM8523_CHIP_ID 0b1000010100100011
unsigned short wm8523_get_chip_id(uint8_t portnum);
/**
diff --git a/firmware/src/p2m.c b/firmware/src/p2m.c
index c43488e..7b78ff6 100644
--- a/firmware/src/p2m.c
+++ b/firmware/src/p2m.c
@@ -155,7 +155,7 @@ int main (void)
cli_printf("Init:\n");
wm8523_init(portnum, WM8523_FS_44K1);
- if(wm8523_get_chip_id(portnum) != WM8532_CHIP_ID) {
+ if(wm8523_get_chip_id(portnum) != WM8523_CHIP_ID) {
cli_printf("Bad chip ID\n");
goto fail;
}
diff --git a/firmware/test/wm8523/wm8523test.c b/firmware/test/wm8523/wm8523test.c
index b67fd32..5f80bad 100644
--- a/firmware/test/wm8523/wm8523test.c
+++ b/firmware/test/wm8523/wm8523test.c
@@ -89,7 +89,7 @@ int main (void)
wm8523_init(portnum, WM8523_FS_48K);
- if(wm8523_get_chip_id(portnum) != WM8532_CHIP_ID) error();
+ if(wm8523_get_chip_id(portnum) != WM8523_CHIP_ID) error();
wm8523_reset_registers(portnum);