diff options
| author | guo <[email protected]> | 2022-01-17 10:54:47 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-17 10:54:47 +0800 |
| commit | 1a46d7fe92e0e26ab480e9ef890a83848581c136 (patch) | |
| tree | 05587302bb06e09975c5f10b2aac10c5fb5635c0 | |
| parent | eef0a2d810447c50ac06b6c63de2169ade05d0d4 (diff) | |
| parent | 0f856cc2d2b9037edb2108ea63d5f5d21d6af925 (diff) | |
Merge pull request #5530 from mysterywolf/audio
[l475][audio] 消除编译错误
| -rw-r--r-- | bsp/stm32/stm32l475-atk-pandora/board/ports/audio/drv_es8388.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bsp/stm32/stm32l475-atk-pandora/board/ports/audio/drv_es8388.c b/bsp/stm32/stm32l475-atk-pandora/board/ports/audio/drv_es8388.c index 5d9844c6bd..d8bb668f59 100644 --- a/bsp/stm32/stm32l475-atk-pandora/board/ports/audio/drv_es8388.c +++ b/bsp/stm32/stm32l475-atk-pandora/board/ports/audio/drv_es8388.c @@ -25,7 +25,7 @@ static struct es8388_device es_dev = {0}; static rt_uint16_t reg_read(rt_uint8_t addr) { struct rt_i2c_msg msg[2] = {0}; - uint8_t val = 0xff; + rt_uint8_t val = 0xff; RT_ASSERT(es_dev.i2c != RT_NULL); @@ -97,7 +97,7 @@ static int es8388_set_adc_dac_volume(int mode, int volume, int dot) void es8388_set_voice_mute(rt_bool_t enable) { - uint8_t reg = 0; + rt_uint8_t reg = 0; reg = reg_read(ES8388_DACCONTROL3); reg = reg & 0xFB; @@ -154,7 +154,7 @@ rt_err_t es8388_init(const char *i2c_name, rt_uint16_t pin) rt_err_t es8388_start(enum es8388_mode mode) { int res = 0; - uint8_t prev_data = 0, data = 0; + rt_uint8_t prev_data = 0, data = 0; prev_data = reg_read(ES8388_DACCONTROL21); if (mode == ES_MODE_LINE) @@ -225,7 +225,7 @@ rt_err_t es8388_stop(enum es8388_mode mode) rt_err_t es8388_fmt_set(enum es8388_mode mode, enum es8388_format fmt) { - uint8_t reg = 0; + rt_uint8_t reg = 0; if (mode == ES_MODE_ADC || mode == ES_MODE_DAC_ADC) { |
