Browse Source

astyle src/drivers/device

sbg
Daniel Agar 8 years ago committed by Lorenz Meier
parent
commit
8fbf5cbdaf
  1. 10
      src/drivers/device/device_nuttx.h
  2. 10
      src/drivers/device/vdev.h

10
src/drivers/device/device_nuttx.h

@ -162,12 +162,12 @@ public: @@ -162,12 +162,12 @@ public:
*/
struct DeviceStructure {
enum DeviceBusType bus_type : 3;
uint8_t bus: 5; // which instance of the bus type
uint8_t address; // address on the bus (eg. I2C address)
uint8_t devtype; // device class specific device type
};
uint8_t bus: 5; // which instance of the bus type
uint8_t address; // address on the bus (eg. I2C address)
uint8_t devtype; // device class specific device type
};
union DeviceId {
union DeviceId {
struct DeviceStructure devid_s;
uint32_t devid;
};

10
src/drivers/device/vdev.h

@ -149,12 +149,12 @@ public: @@ -149,12 +149,12 @@ public:
*/
struct DeviceStructure {
enum DeviceBusType bus_type : 3;
uint8_t bus: 5; // which instance of the bus type
uint8_t address; // address on the bus (eg. I2C address)
uint8_t devtype; // device class specific device type
};
uint8_t bus: 5; // which instance of the bus type
uint8_t address; // address on the bus (eg. I2C address)
uint8_t devtype; // device class specific device type
};
union DeviceId {
union DeviceId {
struct DeviceStructure devid_s;
uint32_t devid;
};

Loading…
Cancel
Save