summaryrefslogtreecommitdiff
path: root/firmware/src/simtrace/main_simtrace.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-11-18 14:09:31 +0100
committerHarald Welte <laforge@gnumonks.org>2010-11-18 14:11:03 +0100
commit3c29506f17ff4a30a3d988361c67d2ec1af13eeb (patch)
treec1a32996605fac63a1b990edada86bbe9cae45cc /firmware/src/simtrace/main_simtrace.c
parent815283e30574fb25cfdd105970387bbd9ae10394 (diff)
simtrace: add TC based waiting time counter, signal ATR / expiry via USB
Diffstat (limited to 'firmware/src/simtrace/main_simtrace.c')
-rw-r--r--firmware/src/simtrace/main_simtrace.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/firmware/src/simtrace/main_simtrace.c b/firmware/src/simtrace/main_simtrace.c
index d5a22dd..5e4302e 100644
--- a/firmware/src/simtrace/main_simtrace.c
+++ b/firmware/src/simtrace/main_simtrace.c
@@ -27,22 +27,26 @@
#include <os/usb_handler.h>
#include "../openpcd.h"
#include <os/main.h>
-#include <os/pwm.h>
-#include <os/tc_cdiv.h>
#include <os/pio_irq.h>
-//#include <simtrace/iso7816_uart.h>
+#include <simtrace/tc_etu.h>
+#include <simtrace/iso7816_uart.h>
void _init_func(void)
{
/* low-level hardware initialization */
pio_irq_init();
iso_uart_init();
+ tc_etu_init();
+
+ usbtest_init();
/* high-level protocol */
//opicc_usbapi_init();
led_switch(1, 0);
led_switch(2, 1);
+
+ iso_uart_rx_mode();
}
static void help(void)
personal git repositories of Harald Welte. Your mileage may vary