2 \author Travis Goodspeed
3 \brief Smartcard and SIM application.
5 This module allows for communication with smart cards and SIM cards.
11 #include "smartcard.h"
13 //! Handles a monitor command.
14 void smartcard_handle_fn( uint8_t const app,
18 // define the smartcard app's app_t
19 app_t const smartcard_app = {
31 "\tThe SMARTCARD app allows for communication with smart\n"
32 "\tcards and SIM cards.\n"
39 #define SCIN (P5IN&BIT2)
41 #define SCINPUT (P5DIR&=~BIT2)
42 #define SCOUTPUT (P5DIR|=BIT2)
44 #define SCH (P5OUT|=BIT2)
45 #define SCL (P5OUT&=~BIT2)
48 #define SCTICK (P5OUT|=BIT3)
49 #define SCTOCK (P5OUT&=~BIT3)
52 //! Setup the smart card mode.
53 void smartcardsetup(){
61 //! Handles a monitor command.
62 void smartcard_handle_fn( uint8_t const app,
72 debugstr("Reseting card");
99 debugstr("Unknown smartcard verb.");