summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lin <[email protected]>2020-02-17 22:31:51 +0800
committerGitHub <[email protected]>2020-02-17 22:31:51 +0800
commit9ca77d6f5177e7e670ebc8f187ee86f0df621d61 (patch)
tree8e67efcc05d6fda113bec03c2f2095f43ecbfd47
parent1f353c6f171d8632a863eee1279dafd9ea353445 (diff)
Fixed spelling mistakes of code in drv_pl041.h
macro error: PL041_CHANNLE_LEFT_DAC -> PL041_CHANNEL_LEFT_DAC PL041_CHANNLE_RIGHT_DAC -> PL041_CHANNEL_RIGHT_DAC PL041_CHANNLE_LEFT_ADC -> PL041_CHANNEL_LEFT_ADC PL041_CHANNLE_RIGHT_ADC -> PL041_CHANNEL_RIGHT_ADC parameter error: channle -> channel functions error: aaci_pl041_channle_disable -> aaci_pl041_channel_disable aaci_pl041_channle_enable -> aaci_pl041_channel_enable aaci_pl041_channle_read -> aaci_pl041_channel_read aaci_pl041_channle_write -> aaci_pl041_channel_write aaci_pl041_channle_cfg -> aaci_pl041_channel_cfg
-rw-r--r--bsp/qemu-vexpress-a9/drivers/audio/drv_pl041.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/bsp/qemu-vexpress-a9/drivers/audio/drv_pl041.h b/bsp/qemu-vexpress-a9/drivers/audio/drv_pl041.h
index 5ea146e436..736e87648d 100644
--- a/bsp/qemu-vexpress-a9/drivers/audio/drv_pl041.h
+++ b/bsp/qemu-vexpress-a9/drivers/audio/drv_pl041.h
@@ -158,10 +158,10 @@
#define MAINFR_TXB (1 << 1) /* transmit busy */
#define MAINFR_RXB (1 << 0) /* receive busy */
-#define PL041_CHANNLE_LEFT_DAC (0x1 << 3)
-#define PL041_CHANNLE_RIGHT_DAC (0x1 << 3)
-#define PL041_CHANNLE_LEFT_ADC (0x1 << 3)
-#define PL041_CHANNLE_RIGHT_ADC (0x1 << 3)
+#define PL041_CHANNEL_LEFT_DAC (0x1 << 3)
+#define PL041_CHANNEL_RIGHT_DAC (0x1 << 3)
+#define PL041_CHANNEL_LEFT_ADC (0x1 << 3)
+#define PL041_CHANNEL_RIGHT_ADC (0x1 << 3)
struct reg_pl041
{
@@ -225,13 +225,13 @@ typedef void (*pl041_irq_fun_t)(rt_uint32_t status, void * user_data);
rt_err_t aaci_pl041_init(void);
void aaci_ac97_write(rt_uint16_t reg, rt_uint16_t val);
rt_uint16_t aaci_ac97_read(rt_uint16_t reg);
-int aaci_pl041_channle_cfg(int channle, pl041_cfg_t cfg);
-int aaci_pl041_channle_write(int channle, rt_uint16_t *buff, int count);
-int aaci_pl041_channle_read(int channle, rt_uint16_t *buff, int count);
-int aaci_pl041_channle_enable(int channle);
-int aaci_pl041_channle_disable(int channle);
-rt_err_t aaci_pl041_irq_register(int channle, pl041_irq_fun_t fun, void *user_data);
-rt_err_t aaci_pl041_irq_unregister(int channle);
+int aaci_pl041_channel_cfg(int channel, pl041_cfg_t cfg);
+int aaci_pl041_channel_write(int channel, rt_uint16_t *buff, int count);
+int aaci_pl041_channel_read(int channel, rt_uint16_t *buff, int count);
+int aaci_pl041_channel_enable(int channel);
+int aaci_pl041_channel_disable(int channel);
+rt_err_t aaci_pl041_irq_register(int channel, pl041_irq_fun_t fun, void *user_data);
+rt_err_t aaci_pl041_irq_unregister(int channel);
void aaci_pl041_irq_disable(int channle, rt_uint32_t vector);
void aaci_pl041_irq_enable(int channle, rt_uint32_t vector);
#endif