37 #ifdef CONF_AUTOSHUTOFF
54 static const unsigned char *tx_ptr;
55 static const unsigned char *tx_verify;
56 static const unsigned char *tx_end;
78 #ifdef CONF_RCX_COMPILER
79 static void rx_handler(
void) __attribute__ ((rcx_interrupt));
80 static
void rxerror_handler(
void) __attribute__ ((rcx_interrupt));
81 static
void tx_handler(
void) __attribute__ ((rcx_interrupt));
84 void rx_handler(
void);
85 void rxerror_handler(
void);
86 void tx_handler(
void);
92 extern inline void carrier_init(
void) {
99 extern inline void carrier_shutdown(
void) {
106 #ifdef CONF_RCX_COMPILER
107 static void rx_handler(
void) {
118 if (new_tx > allow_tx) allow_tx = new_tx;
123 if(S_RDR!=*tx_verify) {
126 }
else if( tx_end <= ++tx_verify ) {
140 #ifdef CONF_RCX_COMPILER
141 static void rxerror_handler(
void) {
144 void rxerror_core(
void) {
150 if (new_tx > allow_tx) allow_tx = new_tx;
161 #ifdef CONF_RCX_COMPILER
165 void txend_core(
void) {
176 #ifdef CONF_RCX_COMPILER
177 static void tx_handler(
void) {
253 return *((
volatile signed char*)&tx_state)<
TX_ACTIVE;
269 #ifdef CONF_AUTOSHUTOFF
277 tx_verify=tx_ptr=buf;
292 ( ((
unsigned char) len)+
293 ((
unsigned char*)buf)[len-1]+