diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-08-16 05:00:45 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-08-16 05:00:45 +0000 |
commit | 34781781278f0fb2557b7c5dd9c0de54ad2aba09 (patch) | |
tree | 0e1f274269d8ac2f80bb73e532721e843b01705d /Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.h | |
parent | ef4cff29c3cea77d545869ad71bdd043e5475482 (diff) | |
download | lufa-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.h | 14 |
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
|