aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristina Quast <chrysh.ng+git@gmail.com>2015-05-08 17:31:08 +0200
committerChristina Quast <chrysh.ng+git@gmail.com>2015-05-08 17:31:14 +0200
commit96025dbb696b5ae70e17bb1fa285ebf4edf60161 (patch)
tree57bfed193926e23441ee679baafa1ffcfa5d0f6b
parent049772e68880e92558b2b94d8e8c9e4e90f14ca6 (diff)
phone.c: removed comments
Removed comment describing the typical first few packets between the SIM card and phone I used for development and testing: SuperSIM, Motorola C123
-rw-r--r--firmware/src_simtrace/phone.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/firmware/src_simtrace/phone.c b/firmware/src_simtrace/phone.c
index a455557..ab828d6 100644
--- a/firmware/src_simtrace/phone.c
+++ b/firmware/src_simtrace/phone.c
@@ -95,7 +95,6 @@ static struct Usart_info usart_info = {.base = USART_PHONE, .id = ID_USART_PHONE
#define USART_SEND 0
#define USART_RCV 1
-// FIXME: Comments
/*-----------------------------------------------------------------------------
* Internal variables
*-----------------------------------------------------------------------------*/
@@ -171,34 +170,12 @@ void Phone_init( void ) {
USART_SetTransmitterEnabled(USART_PHONE, 0);
USART_SetReceiverEnabled(USART_PHONE, 1);
- USART_EnableIt(USART_PHONE, US_IER_RXRDY); // TODO: interrupt enable/disable is shared with sniffer
+ USART_EnableIt(USART_PHONE, US_IER_RXRDY);
NVIC_EnableIRQ(USART1_IRQn);
- /* Configure ISO7816 driver */
- // FIXME: PIO_Configure(pPwr, PIO_LISTSIZE( pPwr ));
-
-// FIXME: Or do I need to call VBUS_CONFIGURE() here instead, which will call USBD_Connect() later?
-// USBD_Connect();
-
- //Timer_Init();
-
receive_from_host();
}
-
-// Sniffed Phone to SIM card communication:
-// phone > sim : RST
-// phone < sim : ATR
-// phone > sim : A0 A4 00 00 02 (Select File)
-// phone < sim : A4 (INS repeated)
-// phone > sim : 7F 02 (= ??)
-// phone < sim : 9F 16 (9F: success, can deliver 0x16 (=22) byte)
-// phone > sim : ?? (A0 C0 00 00 16)
-// phone < sim : C0 (INS repeated)
-// phone < sim : 00 00 00 00 7F 20 02 00 00 00 00 00 09 91 00 17 04 00 83 8A (data of length 22 -2)
-// phone <? sim : 90 00 (OK, everything went fine)
-// phone ? sim : 00 (??)
-
void Phone_run( void )
{
check_data_from_phone();