Merge pull request #469 from stevstrong/patch-14

F4: add the macro "word"
This commit is contained in:
Roger Clark 2018-03-28 13:20:35 +11:00 committed by GitHub
commit c85d83b1f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -149,4 +149,11 @@ double sqrt(double x);
*/
double pow(double x, double y);
inline uint16_t makeWord( uint16_t w ) { return w; }
inline uint16_t makeWord( uint8_t h, uint8_t l ) { return (h << 8) | l; }
#define word(...) makeWord(__VA_ARGS__)
#endif