Fixing gcc build warnings

This commit is contained in:
Jack Marriott
2018-11-30 20:28:03 -05:00
parent 98c4cd4bd5
commit 90f0d579ca
3 changed files with 12 additions and 7 deletions

View File

@@ -488,7 +488,7 @@ ReturnStatus led_init(const HciLedCfg *driver)
- Disable input buffer (RegInputDisable)
- Disable pull-up (RegPullUp)
- Enable open drain (RegOpenDrain)
- Set direction to output (RegDir) by default RegData is set high => LED
- Set direction to output (RegDir) \96 by default RegData is set high => LED
OFF
- Enable oscillator (RegClock)
- Configure LED driver clock and mode if relevant (RegMisc)
@@ -530,7 +530,7 @@ ReturnStatus led_init(const HciLedCfg *driver)
return status;
}
/* Set direction to output (RegDir)
/* Set direction to output (RegDir) \96
* by default RegData is set high => LED OFF */
status = ioexp_led_config_data_direction(&driver->sx1509_dev[index],
SX1509_REG_AB, 0x00, 0x00);
@@ -602,8 +602,8 @@ ePostCode led_probe(const HciLedCfg *driver, POSTData *postData)
if (status != RETURN_OK) {
return POST_DEV_MISSING;
}
post_update_POSTData(postData, &driver->sx1509_dev[HCI_LED_DRIVER_LEFT].bus,
&driver->sx1509_dev[HCI_LED_DRIVER_LEFT].slave_addr,
post_update_POSTData(postData, driver->sx1509_dev[HCI_LED_DRIVER_LEFT].bus,
driver->sx1509_dev[HCI_LED_DRIVER_LEFT].slave_addr,
0xFF, 0xFF);
return POST_DEV_FOUND;
}

View File

@@ -15,7 +15,7 @@
#include "inc/common/sbdn9603.h"
#include "inc/devices/sbd.h"
static ePostCode _probe(void **driver)
static ePostCode _probe(void *driver, POSTData *postData)
{
/* TODO: this is a problem: we can't probe until we've initialized, but we
* don't init until after probing */

View File

@@ -63,8 +63,13 @@ static uint8_t ui8uartdmaRxBuf[UART_RXBUF_SIZE];
* The control table used by the uDMA controller. This table must be aligned
* to a 1024 byte boundary.
*****************************************************************************/
#pragma DATA_ALIGN(pui8ControlTable, 1024)
#if defined(__TI_COMPILER_VERSION__)
# pragma DATA_ALIGN(pui8ControlTable, 1024)
#elif defined(__IAR_SYSTEMS_ICC__)
# pragma data_alignment = 1024
#elif defined(__GNUC__)
__attribute__((aligned(1024)))
#endif
uint8_t pui8ControlTable[1024];
/*****************************************************************************