mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 04:33:34 +08:00
uavcan_kinetis: fix flexcan code style
* flexcan: fix code style * flexcan: exclude from style check to avoid that a different version of astyle breaks indentation again
This commit is contained in:
committed by
Daniel Agar
parent
52554f1efa
commit
675af4f5f9
+31
-31
@@ -30,32 +30,32 @@ union MBcsType {
|
||||
volatile uint32_t w;
|
||||
struct {
|
||||
volatile uint32_t time_stamp : 16;
|
||||
volatile uint32_t dlc : 4;
|
||||
volatile uint32_t rtr : 1;
|
||||
volatile uint32_t ide : 1;
|
||||
volatile uint32_t srr : 1;
|
||||
volatile uint32_t res : 1;
|
||||
volatile uint32_t code : 4;
|
||||
volatile uint32_t res2 : 4;
|
||||
};
|
||||
volatile uint32_t dlc : 4;
|
||||
volatile uint32_t rtr : 1;
|
||||
volatile uint32_t ide : 1;
|
||||
volatile uint32_t srr : 1;
|
||||
volatile uint32_t res : 1;
|
||||
volatile uint32_t code : 4;
|
||||
volatile uint32_t res2 : 4;
|
||||
};
|
||||
};
|
||||
|
||||
union FIFOcsType {
|
||||
volatile uint32_t cs;
|
||||
struct {
|
||||
volatile uint32_t time_stamp : 16;
|
||||
union FIFOcsType {
|
||||
volatile uint32_t cs;
|
||||
struct {
|
||||
volatile uint32_t time_stamp : 16;
|
||||
volatile uint32_t dlc : 4;
|
||||
volatile uint32_t rtr : 1;
|
||||
volatile uint32_t ide : 1;
|
||||
volatile uint32_t srr : 1;
|
||||
volatile uint32_t res : 9;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
union IDType {
|
||||
volatile uint32_t w;
|
||||
struct {
|
||||
volatile uint32_t ext : 29;
|
||||
union IDType {
|
||||
volatile uint32_t w;
|
||||
struct {
|
||||
volatile uint32_t ext : 29;
|
||||
volatile uint32_t resex : 3;
|
||||
};
|
||||
struct {
|
||||
@@ -63,12 +63,12 @@ union MBcsType {
|
||||
volatile uint32_t std : 11;
|
||||
volatile uint32_t resstd : 3;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
union FilterType {
|
||||
volatile uint32_t w;
|
||||
struct {
|
||||
volatile uint32_t res : 1; // Bit 0 - Reserved
|
||||
union FilterType {
|
||||
volatile uint32_t w;
|
||||
struct {
|
||||
volatile uint32_t res : 1; // Bit 0 - Reserved
|
||||
volatile uint32_t ext : 29; // Bits 1 - 29 EID
|
||||
};
|
||||
struct {
|
||||
@@ -76,17 +76,17 @@ union MBcsType {
|
||||
volatile uint32_t std : 11; // StD ID
|
||||
};
|
||||
struct {
|
||||
volatile uint32_t resc : 30; // Bits 0 - 29 Reserved
|
||||
volatile uint32_t resc : 30; // Bits 0 - 29 Reserved
|
||||
volatile uint32_t ide : 1; // Bit 30 - EID
|
||||
volatile uint32_t rtr : 1; // Bit 31 Remote
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
union DataType {
|
||||
volatile uint32_t l;
|
||||
volatile uint32_t h;
|
||||
struct {
|
||||
volatile uint32_t b3 : 8;
|
||||
union DataType {
|
||||
volatile uint32_t l;
|
||||
volatile uint32_t h;
|
||||
struct {
|
||||
volatile uint32_t b3 : 8;
|
||||
volatile uint32_t b2 : 8;
|
||||
volatile uint32_t b1 : 8;
|
||||
volatile uint32_t b0 : 8;
|
||||
@@ -95,10 +95,10 @@ union MBcsType {
|
||||
volatile uint32_t b5 : 8;
|
||||
volatile uint32_t b4 : 8;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
struct MessageBufferType {
|
||||
struct MessageBufferType {
|
||||
MBcsType CS;
|
||||
IDType ID;
|
||||
DataType data;
|
||||
|
||||
Reference in New Issue
Block a user