diff --git a/Tools/astyle/files_to_check_code_style.sh b/Tools/astyle/files_to_check_code_style.sh index d28407df3b..a381cf3638 100755 --- a/Tools/astyle/files_to_check_code_style.sh +++ b/Tools/astyle/files_to_check_code_style.sh @@ -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 \ diff --git a/src/drivers/uavcan/uavcan_drivers/kinetis/driver/include/uavcan_kinetis/flexcan.hpp b/src/drivers/uavcan/uavcan_drivers/kinetis/driver/include/uavcan_kinetis/flexcan.hpp index f521a4b606..afcc478db0 100644 --- a/src/drivers/uavcan/uavcan_drivers/kinetis/driver/include/uavcan_kinetis/flexcan.hpp +++ b/src/drivers/uavcan/uavcan_drivers/kinetis/driver/include/uavcan_kinetis/flexcan.hpp @@ -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;