|
本帖最后由 bd7qw 于 2016-1-14 21:34 编辑
如下有段LPC4357用的程序,KEIL4.74编译后老出现..\User\NANDFLASH.c(431): warning: #188-D: enumerated type mixed with another type的警告,不知道如何解决,谢谢
/*********************************************************************//**
* @brief Read the whole NAND FLASH memory page based on the
* page number, the data will be stored in the pointer
* to the buffer.
* @param[in] pageNum number of page that will be read, should
* be in range: 0..63
* @param[in] blockNum number of block that will be read, should
* be in range: 0..1023
* @param[in] bufPtr pointer to the buffer that contain data will be
* read from flash memory
* @return Read status, could be:
* - TRUE: success
* - FALSE: fail
**********************************************************************/
Bool NandFlash_PageRead( uint32_t pageNum, uint32_t blockNum, uint8_t *bufPtr )
{
return (NandFlash_PageReadFromBeginning(pageNum, blockNum, bufPtr) != 0);
}
/*********************************************************************//
就是return返回值这行老警告,初学ARM,求教
有高手请赐教,谢谢 |
阿莫论坛20周年了!感谢大家的支持与爱护!!
知道什么是神吗?其实神本来也是人,只不过神做了人做不到的事情 所以才成了神。 (头文字D, 杜汶泽)
|