1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-25 20:02:37 +03:00

makeword: sync header and implementation (#8097)

makeword: sync header and implementation
This commit is contained in:
david gauchard 2021-06-02 23:42:31 +02:00 committed by GitHub
parent e5489cfd99
commit 325619a4c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,8 @@
$Id$
*/
#include "Arduino.h"
extern "C" {
#include <stdlib.h>
}
@ -77,10 +79,10 @@ long map(long x, long in_min, long in_max, long out_min, long out_max) {
return (delta * dividend + (divisor / 2)) / divisor + out_min;
}
unsigned int makeWord(unsigned int w) {
uint16_t makeWord(uint16_t w) {
return w;
}
unsigned int makeWord(unsigned char h, unsigned char l) {
uint16_t makeWord(byte h, byte l) {
return (h << 8) | l;
}