AP_Common: Set the value of UINT16 with HIGH byte and LOW byte

This commit is contained in:
murata 2019-03-27 20:06:55 +09:00 committed by Randy Mackay
parent 6bac6cd725
commit 7340502f18
1 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,8 @@
#define ARRAY_SIZE(_arr) (sizeof(_arr) / sizeof(_arr[0]))
#define UINT16_VALUE(hbyte, lbyte) (static_cast<uint16_t>((hbyte<<8)|lbyte))
/*
* See UNUSED_RESULT. The difference is that it receives @uniq_ as the name to
* be used for its internal variable.