mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-02 03:17:57 +00:00
Fixing gcc build warnings
This commit is contained in:
@@ -26,5 +26,6 @@ int mdiobb_read(int phy, unsigned int reg);
|
||||
void mdiobb_write_by_paging_c45(int smi_device, unsigned int reg_addr,
|
||||
unsigned int data);
|
||||
unsigned int mdiobb_read_by_paging_c45(int smi_device, unsigned int reg_addr);
|
||||
|
||||
void mdiobb_clear_bits_C45(int smi_device, unsigned int reg_addr,
|
||||
unsigned int datamask);
|
||||
#endif /* MDIO_BB_H_ */
|
||||
|
||||
@@ -245,7 +245,7 @@ ReturnStatus at45db_data_write(AT45DB_Dev *dev, const uint8_t *data,
|
||||
** RETURN TYPE : Success or failure
|
||||
**
|
||||
*****************************************************************************/
|
||||
static ReturnStatus at45db_getDevID(AT45DB_Dev *dev, uint32_t *devID)
|
||||
static ReturnStatus at45db_getDevID(AT45DB_Dev *dev, uint8_t *devID)
|
||||
{
|
||||
uint8_t txBuffer = AT45DB_DEVID_RD_OPCODE; /* opcode to get device id */
|
||||
|
||||
@@ -265,7 +265,7 @@ static ReturnStatus at45db_getDevID(AT45DB_Dev *dev, uint32_t *devID)
|
||||
*****************************************************************************/
|
||||
ePostCode at45db_probe(AT45DB_Dev *dev, POSTData *postData)
|
||||
{
|
||||
uint32_t value = 0;
|
||||
uint8_t value = 0;
|
||||
uint16_t devId = 0;
|
||||
uint8_t manfId = 0;
|
||||
|
||||
|
||||
@@ -399,7 +399,7 @@ static void _ina226_isr(void *context)
|
||||
uint16_t value;
|
||||
uint16_t new_mask = alert_mask & (~INA_ALERT_EN_MASK);
|
||||
INA226_Event evt;
|
||||
uint16_t alert_lim;
|
||||
uint16_t alert_lim = 0x0000;
|
||||
ina226_readCurrentLim(dev, &alert_lim);
|
||||
|
||||
if (alert_mask & INA_MSK_SOL) {
|
||||
@@ -563,7 +563,7 @@ ReturnStatus ina226_enableAlert(INA226_Dev *dev, INA226_Event evt)
|
||||
*****************************************************************************/
|
||||
ePostCode ina226_probe(INA226_Dev *dev, POSTData *postData)
|
||||
{
|
||||
uint16_t devId = 0x00;
|
||||
uint16_t devId = 0x0000;
|
||||
uint16_t manfId = 0x0000;
|
||||
if (ina226_getDevId(dev, &devId) != RETURN_OK) {
|
||||
return POST_DEV_MISSING;
|
||||
|
||||
@@ -41,11 +41,18 @@ static UART_Handle UartMon_open(UART_Handle handle, UART_Params *params)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if 0
|
||||
/* This is a driver limitation - we only support blocking mode for now */
|
||||
if (params->readDataMode != UART_MODE_BLOCKING ||
|
||||
params->writeDataMode != UART_MODE_BLOCKING) {
|
||||
return NULL;
|
||||
}
|
||||
#else
|
||||
/* Logically the same as above, but unsure if OK with TI UART Driver */
|
||||
if (params->readDataMode || params->writeDataMode) {
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
obj->hUart_in = UART_open(cfg->uart_in_idx, params);
|
||||
if (!obj->hUart_in) {
|
||||
|
||||
Reference in New Issue
Block a user