+
+ #if 1 /* Dieter: set to 0 to get problems with some cards */
+ /* its essential to immediately switch to RX after TX is done */
+ if(sim_tx_character_count >= sim_tx_character_length)
+ {
+ /* TODO: set a proper delay here, 4 is to
+ long if not debugging and no delay is too short */
+ delay_ms(1);
+ /* Switch I/O direction to input */
+ writew(readw(REG_SIM_CONF1) & ~REG_SIM_CONF1_CONFTXRX, REG_SIM_CONF1);
+ }
+ #endif