aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-08-16 05:00:45 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-08-16 05:00:45 +0000
commit34781781278f0fb2557b7c5dd9c0de54ad2aba09 (patch)
tree0e1f274269d8ac2f80bb73e532721e843b01705d /Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.h
parentef4cff29c3cea77d545869ad71bdd043e5475482 (diff)
downloadlufa-34781781278f0fb2557b7c5dd9c0de54ad2aba09.tar.gz
lufa-34781781278f0fb2557b7c5dd9c0de54ad2aba09.tar.bz2
lufa-34781781278f0fb2557b7c5dd9c0de54ad2aba09.zip
Add shortcuts to SwapEndian_16() and SwapEndian_32() internal functions to improve optimization if called with constant inputs.
Diffstat (limited to 'Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.h')
-rw-r--r--Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.h b/Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.h
index 53f32a2ae..7177f1843 100644
--- a/Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.h
+++ b/Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.h
@@ -108,19 +108,15 @@
typedef struct
{
- unsigned LastMessageTransaction : 1;
- unsigned Reserved : 7;
-
- uint8_t Reserved2[3];
+ uint8_t LastMessageTransaction;
+ uint8_t TermChar;
+ uint8_t Reserved[2];
} TMC_DevOUTMessageHeader_t;
typedef struct
{
- unsigned TermCharEnabled : 1;
- unsigned Reserved : 7;
-
- uint8_t TermChar;
- uint8_t Reserved2[2];
+ uint8_t LastMessageTransaction;
+ uint8_t Reserved[3];
} TMC_DevINMessageHeader_t;
typedef struct