Harald Welte
4c769e9a7d
migrate from BSC_FD_* to OSMO_FD_*
...
Change-Id: I9d341d24527ca739424a68059126a7f789206c42
2020-10-18 21:38:19 +00:00
Harald Welte
6b2ff3bc08
ccid_host: Migrate to OpenMoko USB VID/PID
...
We used 0x2342 just for internal testing. Let's use a proper
unique allocation even for the FunctionFS version of the code.
Change-Id: Idbaf173b0ec1fd80885f26b3df24a4412913c100
2020-09-03 10:18:26 +02:00
Harald Welte
a67be5ff1e
add copyright + license disclaimers to ccid_common + ccid_host
...
Change-Id: I1b0f876de337c625081dc5b579dd0a88d62c857c
2020-09-03 10:12:36 +02:00
Eric Wild
70f3691a59
proper card powerup handling
...
Now that the timers work as intended other voltages (that lead to
timeouts) may be used.
Change-Id: I6105ce7f827aaec8ac36b940766fe05d47145edb
2020-08-10 17:38:04 +02:00
Eric Wild
dd2e82e2b5
rename the global talloc context
...
both the host and the firmware build require a global talloc context
with external linkage, so let's agree on one name.
Change-Id: Idced24869863983bfde0c9c438498999717f2042
2019-12-02 14:21:19 +01:00
Eric Wild
e84a571c04
fix the host/emulation build
...
Going for __ARM__ to distinguish host and firmware builds is not
sufficient here, since we might be building on a ARM host, so there is
now a OCTSIMFWBUILD define.
Change-Id: Ib07a58b6102b1709f295d08a764c6f118a2d0b9e
2019-12-02 08:47:45 +00:00
Harald Welte
03d6ebbd9a
Add card_uart driver for ASF4 USART
...
Change-Id: Ic690055bc332ccca3de7c5f4429399cf9ff1d4da
2019-11-28 13:42:16 +01:00
Harald Welte
fef5a24833
ccid_main_functionfs: Set "TPDU level" of exchange, not character
...
Change-Id: I3d16a83c93bc2d4c6a06d0fb585d496a0b5ff132
2019-10-10 14:58:42 +02:00
Harald Welte
31313a6cf7
cuart_[fsm]_test: Avoid hard-coded 'ttyUSB5'; use command line arg
...
Change-Id: I0b66ed7c037376e4a5a9283cb972012594bc35d2
2019-10-09 22:30:31 +02:00
Harald Welte
6603d95119
card_uart_tx: Allow caller to specify if Rx should be active after Tx
...
This reverts commit 02dd911163
.
Change-Id: Ibe02d283701dbfff5ab47e1b8195369c134cde03
2019-10-09 22:30:30 +02:00
Harald Welte
7b64fc0020
cuart: Integrate software WT (waiting time) timer
...
Change-Id: If94d7bdca0e5571d4f2f53862fc574c33a05ce43
2019-10-09 22:30:15 +02:00
Harald Welte
9700d39b08
card_uart_ctrl: change from bool to integer argument
...
This allows for control functions for e.g. baud rate or waiting time
Change-Id: Ifa8dde9dbcd27b79055aaac1a05bb040be616e05
2019-10-09 22:29:35 +02:00
Harald Welte
02dd911163
card_uart_tx: Remove last argument (we always have the receiver active)
...
Change-Id: I8f82e9108d0eae86bbe4535403ccc680b7379a0e
2019-10-09 18:09:57 +02:00
Harald Welte
727d67536d
make ccid_main_functionfs use iso7816_fsm and cuart_driver_tty
...
This works up to the point that we're getting the ATR displayed in
pcsc_scan
Change-Id: Ic656fff4a9c6b9aaf4b91aa16f66972ad28f8423
2019-10-09 18:09:57 +02:00
Harald Welte
0b778c379a
Add cuart_fsm_test program
...
Change-Id: I2b4be908b1bbd9b02f591a79b0eefaeae04badb8
2019-10-09 18:09:21 +02:00
Harald Welte
18ec32218a
cuart_driver_tty: Work around linux kernel bug ignoring CREAD
...
Almost all linux USB serial drivers are ignoring CREAD and hence
cannot disable the receiver hardware, see https://bugzilla.kernel.org/show_bug.cgi?id=205033
We therefore have to receive every byte we transmit before notifying the
user of transmit completion.
Change-Id: Id3cca29f78ee5469a1142aaa1ff754cc0427ec93
2019-10-09 18:08:10 +02:00
Harald Welte
a40c8e502d
'cuart' Card-UART abstraction + driver for simple serial reader
...
Change-Id: Ic7e324d99f78b3bfb98fc667d9a1b7fa363f092d
2019-10-09 18:08:07 +02:00
Harald Welte
06348367fa
ISO7816-3 FSMs as osmo_fsm
...
This implements ISO 7816-3 T=0 as three finite state machines using
osmo_fsm.
Change-Id: I0145b77e6165d36d33f18ef3a452f2c37913bd73
2019-10-09 17:58:15 +02:00
Harald Welte
6312b444b9
contrib/jenkins.sh: Also build host/gadget code
...
Change-Id: Ided54d69a776ce2b86f4117a27fc7ad3b7a1a1d2
2019-10-09 17:58:15 +02:00
Harald Welte
13950f5ebe
ccid_host/Makefile: Ensure 'make clean' succeeds (rm -f)
...
Change-Id: Ie4e1fa64b707d86a20582b1b88612e5d268db558
2019-10-09 14:37:56 +02:00
Eric Wild
d5eaa9f400
split ccid into common and host-only code
...
Change-Id: I175c4efdafedc1d8953d3fb03f2d622a7a74af3b
2019-10-09 13:18:21 +02:00