Fabio Fumi / Mbed 2 deprecated send_to_sharp

Dependencies:   mbed

Revision:
1:9289febf4ae9
Parent:
0:07819bc70660
Child:
2:dff96be9617e
--- a/send_pc1403.h	Tue Feb 15 15:37:06 2022 +0000
+++ b/send_pc1403.h	Fri Feb 18 11:07:34 2022 +0000
@@ -1,17 +1,19 @@
 #ifndef SEND_PC1403
 #define SEND_PC1403
 
+// remapping to MBed types
 #include "mbed.h" 
 #define uchar  uint8_t
 #define ushort uint8_t
 #define uint   uint16_t
 #define ulong  uint32_t
 
+
 #define  PC_ID          1403 
 #define  TYPE_BIN_ADDR  0xE030 
 
 //  bit timings
-#define BIT_DURATION      8*250 //  us, PC1403
+#define BIT_DURATION       (8*250) //  us, PC1403
 #define SYNC_DURATION      3    // s
 #define N_SYNC_BITS        SYNC_DURATION * 1000000 / BIT_DURATION  
 #define MAX_BIT_TIME_ERR   10000 // timing error, per bit: 10ms - UNLIKELY!!