diff --git a/bsp/x1000/drivers/board_key.c b/bsp/x1000/drivers/board_key.c old mode 100644 new mode 100755 index f96005e575..3797caf818 --- a/bsp/x1000/drivers/board_key.c +++ b/bsp/x1000/drivers/board_key.c @@ -214,7 +214,7 @@ void kbd_thread(void* parameter) while (1) { - if(rt_mb_recv(_keyMb, (rt_uint32_t*)&keyId, RT_TICK_PER_SECOND) != RT_EOK) + if(rt_mb_recv(_keyMb, (rt_ubase_t*)&keyId, RT_TICK_PER_SECOND) != RT_EOK) { //if no key pressed,check power key... keyId = 0; diff --git a/bsp/x1000/drivers/sfc/drv_sfc_gd25qxx_mtd.c b/bsp/x1000/drivers/sfc/drv_sfc_gd25qxx_mtd.c index 594bba6f6b..51bfb022f5 100644 --- a/bsp/x1000/drivers/sfc/drv_sfc_gd25qxx_mtd.c +++ b/bsp/x1000/drivers/sfc/drv_sfc_gd25qxx_mtd.c @@ -33,14 +33,14 @@ static rt_base_t mtd_gd25_read_id(struct rt_mtd_nor_device *device) return (rt_uint32_t)flash->id; } -static rt_size_t mtd_gd25_read(struct rt_mtd_nor_device *device, rt_off_t position, rt_uint8_t *data, rt_size_t size) +static rt_size_t mtd_gd25_read(struct rt_mtd_nor_device *device, rt_off_t position, rt_uint8_t *data, rt_uint32_t size) { struct sfc_flash *flash = (struct sfc_flash *)device; return sfc_norflash_read(flash,position,data,size); } -static rt_size_t mtd_gd25_write(struct rt_mtd_nor_device *device, rt_off_t position, const rt_uint8_t *data, rt_size_t size) +static rt_size_t mtd_gd25_write(struct rt_mtd_nor_device *device, rt_off_t position, const rt_uint8_t *data, rt_uint32_t size) { struct sfc_flash *flash = (struct sfc_flash *)device;