diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/wm8523.h | 2 | ||||
-rw-r--r-- | firmware/src/p2m.c | 2 | ||||
-rw-r--r-- | firmware/test/wm8523/wm8523test.c | 2 |
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); |