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:
Matthias Grob 2019-11-13 02:50:54 +01:00 committed by Daniel Agar
parent 52554f1efa
commit 675af4f5f9
2 changed files with 32 additions and 31 deletions

View File

@ -11,6 +11,7 @@ exec find boards msg src platforms \
-path msg/templates/urtps -prune -o \
-path platforms/nuttx/NuttX -prune -o \
-path src/drivers/uavcan/libuavcan -prune -o \
-path src/drivers/uavcan/uavcan_drivers/kinetis/driver/include/uavcan_kinetis -prune -o \
-path src/lib/DriverFramework -prune -o \
-path src/lib/ecl -prune -o \
-path src/lib/matrix -prune -o \

View File

@ -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;