Renamed

Dependencies:   mbed

Revision:
1:9289febf4ae9
Parent:
0:07819bc70660
Child:
5:062962db7a48
--- a/bit_send.h	Tue Feb 15 15:37:06 2022 +0000
+++ b/bit_send.h	Fri Feb 18 11:07:34 2022 +0000
@@ -1,19 +1,20 @@
 #ifndef BIT_SEND
 #define BIT_SEND
 
-#define BIT_TICK_DELAY      62 // us - 125 us = 4 Khz base freq
-#define BIT_TICK_1_REPEAT   2  // nr. of ticks to stay on each output level
+#define BIT_TICK_DELAY      125 // us - 125 us = 4 Khz base freq
+#define BIT_TICK_1_REPEAT   1  // nr. of ticks to stay on each output level
 #define BIT_TICK_1_NCYCLES  16 // nr. of output level switching, per bit
-#define BIT_TICK_0_REPEAT   4  // same for bit "0"
+#define BIT_TICK_0_REPEAT   2  // same for bit "0"
 #define BIT_TICK_0_NCYCLES  8 
 
 #define BIT_FIRST_SENT      ( 1UL << 0 ) // signal for first bit sent
 #define BIT_LAST_SENT       ( 1UL << 1 ) // signal for last bit sent
 #define BIT_LAST_PROCESSING ( 1UL << 2 ) // last bit is being processes
+#define BIT_SENDING         ( 1UL << 3 ) // bit being processed
 
 #define DEBUG 1
 #ifdef DEBUG
-#define debug_printf(f_, ...) pc1.printf((f_), ##__VA_ARGS__)
+#define debug_printf(f_, ...) printf((f_), ##__VA_ARGS__)
 #else
 #define debug_printf(...) 
 #endif