Browse Source

AP_Common: add UINT32_VALUE

c415-sdk
Randy Mackay 4 years ago committed by Andrew Tridgell
parent
commit
f3b193d6f8
  1. 1
      libraries/AP_Common/AP_Common.h

1
libraries/AP_Common/AP_Common.h

@ -86,6 +86,7 @@ @@ -86,6 +86,7 @@
#define ARRAY_SIZE(_arr) (sizeof(_arr) / sizeof(_arr[0]))
#define UINT16_VALUE(hbyte, lbyte) (static_cast<uint16_t>((hbyte<<8)|lbyte))
#define UINT32_VALUE(b3, b2, b1, b0) (static_cast<uint32_t>((b3<<23)|(b2<<16)|(b1<<8)|b0))
/*
* See UNUSED_RESULT. The difference is that it receives @uniq_ as the name to

Loading…
Cancel
Save