Merge pull request #2309 from Ingenic-community/master
BSP: X1000: drivers: board_key.c: 修复编译过程中的警告/Fix compile-time warnings
This commit is contained in:
commit
6d1c75d826
|
@ -214,7 +214,7 @@ void kbd_thread(void* parameter)
|
||||||
|
|
||||||
while (1)
|
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...
|
//if no key pressed,check power key...
|
||||||
keyId = 0;
|
keyId = 0;
|
||||||
|
|
|
@ -33,14 +33,14 @@ static rt_base_t mtd_gd25_read_id(struct rt_mtd_nor_device *device)
|
||||||
return (rt_uint32_t)flash->id;
|
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;
|
struct sfc_flash *flash = (struct sfc_flash *)device;
|
||||||
|
|
||||||
return sfc_norflash_read(flash,position,data,size);
|
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;
|
struct sfc_flash *flash = (struct sfc_flash *)device;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue