Merge pull request #2309 from Ingenic-community/master

BSP: X1000: drivers: board_key.c: 修复编译过程中的警告/Fix compile-time warnings
This commit is contained in:
Bernard Xiong 2019-02-04 19:41:37 +08:00 committed by GitHub
commit 6d1c75d826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

2
bsp/x1000/drivers/board_key.c Normal file → Executable file
View File

@ -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;

View File

@ -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;