diff --git a/firmware/ec/src/devices/led.c b/firmware/ec/src/devices/led.c index 9bb94e274d..8afbb6ac4e 100644 --- a/firmware/ec/src/devices/led.c +++ b/firmware/ec/src/devices/led.c @@ -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; } diff --git a/firmware/ec/src/devices/ocmp_wrappers/ocmp_iridium.c b/firmware/ec/src/devices/ocmp_wrappers/ocmp_iridium.c index e8cd552fbf..c251873d11 100644 --- a/firmware/ec/src/devices/ocmp_wrappers/ocmp_iridium.c +++ b/firmware/ec/src/devices/ocmp_wrappers/ocmp_iridium.c @@ -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 */ diff --git a/firmware/ec/src/interfaces/UART/uartdma.c b/firmware/ec/src/interfaces/UART/uartdma.c index c76bc3d91e..7d11c37175 100644 --- a/firmware/ec/src/interfaces/UART/uartdma.c +++ b/firmware/ec/src/interfaces/UART/uartdma.c @@ -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]; /*****************************************************************************