Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ int32_t aos_hal_lcd_uninit(void)
int32_t aos_hal_lcd_show(int x, int y, int w, int h, uint8_t *buf, bool rotate)
{
printf("aos_hal_lcd_show x: %d, y: %d, w: %d, h: %d, rotate: %d\n", x, y, w, h, rotate);
for (int i; i < w * h * 2; i++)
for (int i = 0; i < w * h * 2; i++)
printf("buf: 0x%x", buf[i]);

return 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ void i2c_reset(i2c_t *obj)
*/
void i2c_restart_enable(i2c_t *obj)
{
uint32_t i2cen;
uint32_t i2cen = 0;

if (obj->I2Cx->IC_ENABLE & BIT_CTRL_IC_ENABLE) {
I2C_Cmd(obj->I2Cx, DISABLE);
Expand All @@ -692,7 +692,7 @@ void i2c_restart_enable(i2c_t *obj)
*/
void i2c_restart_disable(i2c_t *obj)
{
uint32_t i2cen;
uint32_t i2cen = 0;

if (obj->I2Cx->IC_ENABLE & BIT_CTRL_IC_ENABLE) {
I2C_Cmd(obj->I2Cx, DISABLE);
Expand Down