Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: utils.c
- Revision:
- 0:486c7ab9114b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/utils.c Mon Jun 05 21:11:32 2017 +0000
@@ -0,0 +1,12 @@
+#include <inttypes.h>
+
+uint16_t uint8_to_uint16(uint8_t lsb, uint8_t msb)
+{
+ uint16_t data;
+ uint8_t *ptr;
+
+ ptr=(uint8_t*)&data;
+ *ptr=lsb;
+ *++ptr=msb;
+ return data;
+}
\ No newline at end of file