From 8043fdd4d3d733ca59081e72f0b59cf06247b432 Mon Sep 17 00:00:00 2001 From: Christina Quast Date: Wed, 4 Mar 2015 18:45:30 +0100 Subject: [PATCH] bus configuration in phone --- sam3s_example/simtrace/phone.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sam3s_example/simtrace/phone.c b/sam3s_example/simtrace/phone.c index d08be1b2..1a230ca2 100644 --- a/sam3s_example/simtrace/phone.c +++ b/sam3s_example/simtrace/phone.c @@ -61,6 +61,8 @@ unsigned char USBState = STATE_IDLE; /** ISO7816 pins */ static const Pin pinsISO7816_PHONE[] = {PINS_ISO7816_PHONE}; +/** Bus switch pins */ +static const Pin pinsBus[] = {PINS_BUS_DEFAULT}; /** ISO7816 RST pin */ static const Pin pinIso7816RstMC = PIN_ISO7816_RST_PHONE; static uint8_t sim_inserted = 0; @@ -208,6 +210,8 @@ uint32_t _ISO7816_SendChar( uint8_t CharToSend ) void Phone_Master_Init( void ) { PIO_Configure( pinsISO7816_PHONE, PIO_LISTSIZE( pinsISO7816_PHONE ) ) ; + PIO_Configure( pins_bus, PIO_LISTSIZE( pins_bus) ) ; + Config_PhoneRST_IrqHandler(); _ISO7816_Init();