Browse Source

px4esc-v1 bootloader uses upstream NuttX's new struct packing

sbg
David Sidrane 8 years ago committed by Daniel Agar
parent
commit
69ba0b8925
  1. 4
      src/drivers/boards/px4esc-v1/bootloader/boot.c

4
src/drivers/boards/px4esc-v1/bootloader/boot.c

@ -186,12 +186,12 @@ size_t board_get_hardware_version(uavcan_HardwareVersion_t *hw_version) @@ -186,12 +186,12 @@ size_t board_get_hardware_version(uavcan_HardwareVersion_t *hw_version)
****************************************************************************/
#define led(n, code, r , g , b, h) {.red = (r),.green = (g), .blue = (b),.hz = (h)}
typedef struct packed_struct led_t {
typedef begin_packed_struct struct led_t {
uint16_t red : 5;
uint16_t green : 6;
uint16_t blue : 5;
uint8_t hz;
} led_t;
} end_packed_struct led_t;
static const led_t i2l[] = {

Loading…
Cancel
Save