Commit Graph

  • e26c943fa1 exceptions: Print name of exception to console Harald Welte 2016-03-20 17:24:33 +01:00
  • 622b6be774 Fix ADC based VCC detection Harald Welte 2016-03-20 16:43:59 +01:00
  • 3bafe43376 dynamically dispatch USART IRQs Harald Welte 2016-03-20 16:43:12 +01:00
  • dde112e71c print instance/channel number in all trace messages Harald Welte 2016-03-20 16:42:11 +01:00
  • 8ee15dbc2a read SAM3S unique serial number at start and print it Harald Welte 2016-03-20 16:00:39 +01:00
  • 28772ebcdc ADC: Make errata work-arounds depend on run-time detection of chip version Harald Welte 2016-03-20 15:44:52 +01:00
  • 1871c25b6d simtrace2-remsim: Instruct SAM3S to simulate card removal on SIGINT Harald Welte 2016-03-20 15:30:46 +01:00
  • cf1c19abe0 src_simtrace/main: debug/trace logging improvements Harald Welte 2016-03-20 15:18:18 +01:00
  • 04e37a8481 firmware/main: Disable the rotor unless TRACE_DEBUG Harald Welte 2016-03-20 15:15:34 +01:00
  • 5541e8a819 USBD_HAL: Hard-code TRACE_LEVEL_WARNING Harald Welte 2016-03-20 15:13:47 +01:00
  • 9daaa79222 simtrace2-remsim: Send an ATR that allows for a 5MHz/16 divider 0.1 Harald Welte 2016-03-20 15:01:20 +01:00
  • 53079bbbac debug/tracing updates Harald Welte 2016-03-20 14:58:35 +01:00
  • c58bba0833 wait for UART Tx completion before switching baud rate at PTS Harald Welte 2016-03-20 14:57:53 +01:00
  • c8beefbf85 wait for transmitter to be done before receiving Harald Welte 2016-03-20 14:40:47 +01:00
  • 903d63a1e0 card_emu: Alwasys update state before enabling UART Rx/Tx Harald Welte 2016-03-20 13:38:39 +01:00
  • 52d554657c card_emu: Avoid PTS related race-condition Harald Welte 2016-03-20 13:38:05 +01:00
  • ccb8a22037 card_emu: Avoid PTS related race-condition Harald Welte 2016-03-20 13:37:11 +01:00
  • a929f218d2 card_emu: Differentiate between TRACE_{DEBUG/ERROR/INFO} Harald Welte 2016-03-20 13:36:42 +01:00
  • 07872b6cdd VCC/ADC: finish implementing VCC detection via ADC Harald Welte 2016-03-20 11:45:36 +01:00
  • 6dcacf3efe OWHW: fix operation with second modem/UART Harald Welte 2016-03-19 14:01:31 +01:00
  • 419eb8acf2 WIP: Use ADC to determine VCC voltage Harald Welte 2016-03-20 10:04:03 +01:00
  • ff16065047 implement CEMU_USB_MSGT_DT_GET_STATUS Harald Welte 2016-03-19 21:59:06 +01:00
  • 02d5096b31 add host .o and executables to .gitignore Harald Welte 2016-03-19 21:38:59 +01:00
  • 2315e6ba07 ensure git version ends up in firmware image Harald Welte 2016-03-19 21:37:55 +01:00
  • 236caf68eb remote-sim host tools: Auto-discover the endpoint addresses Harald Welte 2016-03-19 21:28:09 +01:00
  • 095ac6cbe2 Add simtrace2-remsim applications Harald Welte 2016-03-19 13:39:33 +01:00
  • b26d0038f6 split/segment multiple commands from single USB transfer Harald Welte 2016-03-19 13:33:02 +01:00
  • d295b92192 ensure usb_msg_hdr contains raw message length Harald Welte 2016-03-18 21:01:36 +01:00
  • b8f9450c18 shrink ringbuffer size to 128 bytes Harald Welte 2016-03-18 10:33:31 +01:00
  • 9f240b6d34 use irq-safe version of llist operations between USB callback and main Harald Welte 2016-03-18 10:32:56 +01:00
  • da15ca01bf mode_cardemu: mask the USART status register with mask register Harald Welte 2016-03-17 21:14:04 +01:00
  • 3d27c84635 host_comm: Fix race condition in handling OUT USB transfers Harald Welte 2016-03-17 20:07:45 +01:00
  • 250cd2c062 host_communication: set rctx->tot_len after receiving USB transfer Harald Welte 2016-03-17 18:19:39 +01:00
  • 372f4cc7ba board_lowlevel: Use LED definitions from board.h Harald Welte 2016-03-16 22:17:39 +01:00
  • 5820ea9327 dispatch_usb_command: Ensure list consistency + avoid mem leaks Harald Welte 2016-03-16 22:12:00 +01:00
  • 0eaa992682 cardem: Add support for USB host based set/clear of card_insert Harald Welte 2016-03-04 03:03:49 +01:00
  • 7abdb51f8f ringbuffer: Make ring buffer access irq-save Harald Welte 2016-03-03 17:48:32 +01:00
  • 7dd3dfd992 convert all src_simtrace code to kernel coding style Harald Welte 2016-03-03 12:32:04 +01:00
  • 1605564489 ensure USB config numbers always start from 1 Harald Welte 2016-03-03 11:02:45 +01:00
  • 072daddf98 main.c: Only call the configure() function of a configuration if it exists Harald Welte 2016-03-03 10:45:16 +01:00
  • 40901a0f14 various printf/debug output improvements Harald Welte 2016-03-03 10:42:45 +01:00
  • 57b3a250d4 Add Card-Emulation for second UART/USIM to USB descriptors Harald Welte 2016-03-02 15:20:27 +01:00
  • 13e8202c81 mode_cardem: Prepare for full support of second UART/USIM Harald Welte 2016-03-02 15:17:53 +01:00
  • 06b27f64a2 mode_cardemu: Implement CEMU_USB_MSGT_DT_SET_ATR Harald Welte 2016-03-02 14:26:38 +01:00
  • ebb80eda19 introduce 'main' queue between USB receive and UART TX Harald Welte 2016-03-02 13:56:59 +01:00
  • ad43440d93 card_emu: Fix various compiler warnings by switch/default/break Harald Welte 2016-03-02 11:18:29 +01:00
  • 5e00400a05 board_lowlevel.c: Improve main oscillator initialization Harald Welte 2016-03-16 20:40:19 +01:00
  • a0cf200695 host_communication: keep track of number of pending/queued req_ctx Harald Welte 2016-03-02 10:35:51 +01:00
  • acd48c51f2 HACK: always use the USART interrupt handler of mode_cardemu() Harald Welte 2016-03-02 10:34:24 +01:00
  • fcdd660fb1 card_emu: Don't de-reference a NULL variable Harald Welte 2016-03-02 10:33:58 +01:00
  • fde250a54b uart_console.c: Don't redefine constants from board.h Harald Welte 2016-03-02 10:33:11 +01:00
  • 715bc05f55 Increase serial console sped to 230400 bps Harald Welte 2016-03-02 10:31:59 +01:00
  • 12d4bdfbb1 mode_cardemu: Process RX interrupts before TX Harald Welte 2016-03-02 10:31:03 +01:00
  • dda7355306 card_emu: Only transmit NULL byte from the right state Harald Welte 2016-03-02 10:29:55 +01:00
  • f1697e2dd9 card_emu: Only allocate a new buffer if needed in send_tpdu_header() Harald Welte 2016-03-02 10:28:54 +01:00
  • acae412b2a explicitly inform card_emu once data to transmit has arrived Harald Welte 2016-03-02 10:27:58 +01:00
  • 8a416b1812 mode_cardemu: fix ordering of events when switching rx/tx mode Harald Welte 2016-03-01 00:42:04 +01:00
  • 45688d4c3b mode_cardemu: Disable UART TXRDY generation if we don't have data to TX Harald Welte 2016-02-29 21:35:38 +01:00
  • 349c54bc3b req_ctx: LF -> CR+LF Harald Welte 2016-02-29 21:35:24 +01:00
  • 22925ea707 test: Add TRACE_INFO and TRACE_ERROR definitions Harald Welte 2016-02-29 21:14:25 +01:00
  • 4678388c3c board_lowlevel: More comments about clock initialization Harald Welte 2016-02-29 19:45:59 +01:00
  • ebbb645f4b req_ctx: Fix allocation (allocate 1 block, not all) and call _init() Harald Welte 2016-02-29 17:57:51 +01:00
  • 54cb3d017f host_communication/card_emu: adapt to nwe req_ctx / queuing paradignm Harald Welte 2016-02-29 14:12:40 +01:00
  • f672e9d63a req_ctx: Convert from hand-coded linked lists to linuxlist.h Harald Welte 2016-02-29 14:08:12 +01:00
  • b66ce249d0 req_ctx: Add better explanation about the various states Harald Welte 2016-02-29 14:07:07 +01:00
  • 22bf67fc9c card_emu: Use \r\n instead of \n Harald Welte 2016-02-29 10:18:48 +01:00
  • 708d85c085 trace.h: Don't print file/function name in TRACE_DEBUG() Harald Welte 2016-02-29 10:16:05 +01:00
  • c0bd7f0aaa mode_cardemu: Move GPIO detection to IRQ, use ring buffer for UART RX Harald Welte 2016-02-29 10:13:33 +01:00
  • 47ee283d14 card_emu_io_statechg(): properly determine edges from levels Harald Welte 2016-02-29 10:09:46 +01:00
  • 99f62a6def mode_cardemu: update_fidi just needs to execute Harald Welte 2016-02-29 10:08:49 +01:00
  • 2ad0ca15a8 host_communication: Fix TRACE_ERROR syntax Harald Welte 2016-02-29 10:07:16 +01:00
  • 43f7949fe0 card_emu: Add TRACE_DEBUG once TPDU header is sent to USB Harald Welte 2016-02-29 10:06:54 +01:00
  • b086ab0242 owhw: Fix GPIO for USIM1_RST (24, not 23!) and enable SET_USIM1_PRES Harald Welte 2016-02-29 10:05:53 +01:00
  • 9dbc46e799 mode_cardemu: Proper enabling/disabling of USART IRQ sources Harald Welte 2016-02-29 10:05:10 +01:00
  • ba0c688103 owhw: Make owhw/board.h the default for now Harald Welte 2016-02-28 19:32:36 +01:00
  • 4dc3db7beb req_ctx: Use only 10 small buffers, and no large ones Harald Welte 2016-02-28 19:32:01 +01:00
  • 203ea19227 req_ctx: Use the linked lists between req_ctx to ensure ordering Harald Welte 2016-02-28 19:31:24 +01:00
  • bd71768e5f mode_card_emu: connect the update_fidi() callback Harald Welte 2016-02-28 19:30:05 +01:00
  • 2a6d3afd6c re-introduce req_ctx buffers into the host communication Harald Welte 2016-02-28 19:29:14 +01:00
  • 29f8f0e5d4 improvements in req_ctx debugging Harald Welte 2016-02-28 12:44:30 +01:00
  • 2fb5996d30 owhw: fix GPIO definitions (output low level by default) Harald Welte 2016-02-28 12:34:26 +01:00
  • 8c49636127 card_emu.c: avoid re-defining update_fidi() symbol Harald Welte 2016-02-27 16:24:09 +01:00
  • 390760a006 add board/owhw.c Harald Welte 2016-02-27 16:23:46 +01:00
  • 54a7cec7bd Add card_emu_target.c to bind card_emu.c code into target firmware Harald Welte 2016-02-27 16:23:14 +01:00
  • 17db2f1112 card_emu: Fix PTS checksum verification Harald Welte 2016-02-26 09:48:57 +01:00
  • 4ba66d0098 implement forwarding of PTS/PPS from emulator to host PC + test case Harald Welte 2016-02-25 19:38:56 +01:00
  • 86d047b8f4 card_emu_test: Verify content of emulator->reader bytes Harald Welte 2016-02-25 00:26:17 +01:00
  • 0ef96d5735 card_emu: Ensure the length is properly set on a TPDU header rctx Harald Welte 2016-02-25 00:09:17 +01:00
  • 0ab6fcd173 card_emu_tests: Verify context of USB request contexts Harald Welte 2016-02-25 00:08:22 +01:00
  • c043e64ef1 card_emu_tests: move test cases into functions Harald Welte 2016-02-24 23:26:55 +01:00
  • eef6c2a46c card_emu_test: Add test for card-TX (reader-RX) APDU Harald Welte 2016-02-24 22:19:03 +01:00
  • f16b618755 card_emu: Fix the length checks for transmit beyond rctx->tot_len Harald Welte 2016-02-24 22:18:46 +01:00
  • 22cdf2af59 card_sim: fix passing handle to tc_etu_*() functions Harald Welte 2016-02-24 22:18:11 +01:00
  • 6bf8c12b13 update card_emu_tests to recent card_emu changes Harald Welte 2016-02-24 21:04:08 +01:00
  • 042f0d366b tc_etu: Add explicit enable/disable functions Harald Welte 2016-02-24 21:01:50 +01:00
  • 855ba9e168 card_emu: Ensure TX happens synchronously before state changes Harald Welte 2016-02-24 21:00:46 +01:00
  • 849269f4cc add OWHW board.h file Harald Welte 2015-11-30 12:16:53 +01:00
  • 2d3371ed65 split board.h into generic part and simtrace-specific part Harald Welte 2015-11-30 11:59:03 +01:00
  • 61bb30e4ea card_emu: Correctly handle SW after reader -> card data phase Harald Welte 2015-11-14 23:44:14 +01:00
  • 84ec252ff4 card_emu_test: test APDUs with both Rx and Tx data phase Harald Welte 2015-11-14 23:03:50 +01:00