<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/simtrace2/+/24519">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">octsimtest: remove lots of unused #defines<br><br>The octsimtest board only supports cardem mode, not 'ccid'<br>nor 'sniffer'.  Remove related GPIO pin #defines from board.h<br><br>Change-Id: I43e8631d945ba183a1e5b1e37dd4565adb377154<br>---<br>M firmware/libboard/octsimtest/include/board.h<br>1 file changed, 0 insertions(+), 55 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/simtrace2 refs/changes/19/24519/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/firmware/libboard/octsimtest/include/board.h b/firmware/libboard/octsimtest/include/board.h</span><br><span>index 2b8e7bf..a267f0f 100644</span><br><span>--- a/firmware/libboard/octsimtest/include/board.h</span><br><span>+++ b/firmware/libboard/octsimtest/include/board.h</span><br><span>@@ -50,33 +50,8 @@</span><br><span> /* Button to force bootloader start (shorted to ground when pressed */</span><br><span> #define PIN_BOOTLOADER_SW      {PIO_PA5, PIOA, ID_PIOA, PIO_INPUT, PIO_PULLUP}</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-//FIXME SIM_PWEN_PIN collides with PA5/bootloader_sw on octsimtest</span><br><span style="color: hsl(0, 100%, 40%);">-/* Enable powering the card using the second 3.3 V output of the LDO (active high) */</span><br><span style="color: hsl(0, 100%, 40%);">-#define SIM_PWEN_PIN           {PIO_PA12, PIOA, ID_PIOA, PIO_OUTPUT_1, PIO_DEFAULT}</span><br><span style="color: hsl(0, 100%, 40%);">-/* Enable powering the SIM card */</span><br><span style="color: hsl(0, 100%, 40%);">-#define PWR_PINS                SIM_PWEN_PIN</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span> // FIXME PA8 is 32khz xtal on octsimtest</span><br><span style="color: hsl(0, 100%, 40%);">-/* Card presence pin */</span><br><span style="color: hsl(0, 100%, 40%);">-#define SW_SIM                  PIO_PA11</span><br><span> /* Pull card presence pin high (shorted to ground in card slot when card is present) */</span><br><span style="color: hsl(0, 100%, 40%);">-#define SMARTCARD_CONNECT_PIN  {SW_SIM, PIOA, ID_PIOA, PIO_INPUT, PIO_PULLUP | PIO_DEBOUNCE | PIO_DEGLITCH | PIO_IT_EDGE }</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-/** Smart card connection **/</span><br><span style="color: hsl(0, 100%, 40%);">-//FIXME</span><br><span style="color: hsl(0, 100%, 40%);">-/* Card RST reset signal input (active low; RST_SIM in schematic) */</span><br><span style="color: hsl(0, 100%, 40%);">-#define PIN_SIM_RST            {PIO_PA13, PIOA, ID_PIOA, PIO_OUTPUT_0, PIO_DEFAULT}</span><br><span style="color: hsl(0, 100%, 40%);">-/* Card I/O data signal input/output (I/O_SIM in schematic) */</span><br><span style="color: hsl(0, 100%, 40%);">-#define PIN_SIM_IO             {PIO_PA6A_TXD0, PIOA, ID_PIOA, PIO_PERIPH_A, PIO_DEFAULT}</span><br><span style="color: hsl(0, 100%, 40%);">-/* Card CLK clock input (CLK_SIM in schematic) */</span><br><span style="color: hsl(0, 100%, 40%);">-#define PIN_SIM_CLK            {PIO_PA2B_SCK0, PIOA, ID_PIOA, PIO_PERIPH_B, PIO_DEFAULT}</span><br><span style="color: hsl(0, 100%, 40%);">-/* Pin to measure card I/O timing (to start measuring the ETU on I/O activity; connected I/O_SIM in schematic) */</span><br><span style="color: hsl(0, 100%, 40%);">-#define PIN_SIM_IO_INPUT       {PIO_PA1B_TIOB0, PIOA, ID_PIOA, PIO_PERIPH_B, PIO_DEFAULT}</span><br><span style="color: hsl(0, 100%, 40%);">-//FIXME PIO_PA4B_TCLK0 PA4 is LED on octsimtest</span><br><span style="color: hsl(0, 100%, 40%);">-/* Pin used as clock input (to measure the ETU duration; connected to CLK_SIM in schematic) */</span><br><span style="color: hsl(0, 100%, 40%);">-#define PIN_SIM_CLK_INPUT      {PIO_PA14, PIOA, ID_PIOA, PIO_PERIPH_B, PIO_DEFAULT}</span><br><span style="color: hsl(0, 100%, 40%);">-/* Pins used to measure ETU timing (using timer counter) */ </span><br><span style="color: hsl(0, 100%, 40%);">-#define PINS_TC                 PIN_SIM_IO_INPUT, PIN_SIM_CLK_INPUT</span><br><span> </span><br><span> /** Phone connection **/</span><br><span> /* Phone USIM slot 1 VCC pin (VCC_PHONE in schematic) */</span><br><span>@@ -95,36 +70,6 @@</span><br><span> #define PIN_PHONE_CLK_INPUT    {PIO_PA29B_TCLK2, PIOA, ID_PIOA, PIO_PERIPH_B, PIO_DEFAULT}</span><br><span> </span><br><span> /** Default pin configuration **/</span><br><span style="color: hsl(0, 100%, 40%);">-/* Disconnect VPP, CLK, and RST lines between card and phone using bus switch (high sets bus switch to high-impedance) */</span><br><span style="color: hsl(0, 100%, 40%);">-#define PIN_SC_SW_DEFAULT      {PIO_PA20, PIOA, ID_PIOA, PIO_OUTPUT_1, PIO_DEFAULT}</span><br><span style="color: hsl(0, 100%, 40%);">-/* Disconnect I/O line between card and phone using bus switch (high sets bus switch to high-impedance) */</span><br><span style="color: hsl(0, 100%, 40%);">-#define PIN_IO_SW_DEFAULT      {PIO_PA19, PIOA, ID_PIOA, PIO_OUTPUT_1, PIO_DEFAULT}</span><br><span style="color: hsl(0, 100%, 40%);">-/* Disconnect all lines (VPP, CLK, RST, and I/O) between card and phone */</span><br><span style="color: hsl(0, 100%, 40%);">-#define PINS_BUS_DEFAULT        PIN_SC_SW_DEFAULT, PIN_IO_SW_DEFAULT</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-/** Sniffer configuration **/</span><br><span style="color: hsl(0, 100%, 40%);">-/* Connect VPP, CLK, and RST lines between card and phone using bus switch (low connects signals on bus switch) */</span><br><span style="color: hsl(0, 100%, 40%);">-#define PIN_SC_SW_SNIFF        {PIO_PA20, PIOA, ID_PIOA, PIO_OUTPUT_0, PIO_DEFAULT}</span><br><span style="color: hsl(0, 100%, 40%);">-/* Connect I/O line between card and phone using bus switch (low connects signals on bus switch) */</span><br><span style="color: hsl(0, 100%, 40%);">-#define PIN_IO_SW_SNIFF        {PIO_PA19, PIOA, ID_PIOA, PIO_OUTPUT_0, PIO_DEFAULT}</span><br><span style="color: hsl(0, 100%, 40%);">-/* Connect all lines (VPP, CLK, RST, and I/O) between card and phone */</span><br><span style="color: hsl(0, 100%, 40%);">-#define PINS_BUS_SNIFF          PIN_SC_SW_SNIFF, PIN_IO_SW_SNIFF</span><br><span style="color: hsl(0, 100%, 40%);">-/* Card RST reset signal input (use as input since the phone will drive it) */</span><br><span style="color: hsl(0, 100%, 40%);">-#define PIN_SIM_RST_SNIFF      {PIO_PA7, PIOA, ID_PIOA, PIO_INPUT, PIO_DEGLITCH | PIO_IT_EDGE}</span><br><span style="color: hsl(0, 100%, 40%);">-/* Pins used to sniff phone-card communication */</span><br><span style="color: hsl(0, 100%, 40%);">-#define PINS_SIM_SNIFF          PIN_SIM_IO, PIN_SIM_CLK, PIN_SIM_RST_SNIFF</span><br><span style="color: hsl(0, 100%, 40%);">-/* Disable power converter 4.5-6V to 3.3V (active high) */</span><br><span style="color: hsl(0, 100%, 40%);">-#define PIN_SIM_PWEN_SNIFF     {SIM_PWEN, PIOA, ID_PIOA, PIO_OUTPUT_0, PIO_DEFAULT}</span><br><span style="color: hsl(0, 100%, 40%);">-/* Enable power switch to forward VCC_PHONE to VCC_SIM (active high) */</span><br><span style="color: hsl(0, 100%, 40%);">-#define PIN_VCC_FWD_SNIFF      {VCC_FWD, PIOA, ID_PIOA, PIO_OUTPUT_1, PIO_DEFAULT}</span><br><span style="color: hsl(0, 100%, 40%);">-/* Use phone VCC to power card */</span><br><span style="color: hsl(0, 100%, 40%);">-#define PINS_PWR_SNIFF          PIN_SIM_PWEN_SNIFF, PIN_VCC_FWD_SNIFF</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-/** CCID configuration */</span><br><span style="color: hsl(0, 100%, 40%);">-/* Card RST reset signal input (active low; RST_SIM in schematic) */</span><br><span style="color: hsl(0, 100%, 40%);">-#define PIN_ISO7816_RSTMC      {PIO_PA7, PIOA, ID_PIOA, PIO_OUTPUT_0, PIO_DEFAULT}</span><br><span style="color: hsl(0, 100%, 40%);">-/* ISO7816-communication related pins */</span><br><span style="color: hsl(0, 100%, 40%);">-#define PINS_ISO7816            PIN_SIM_IO,  PIN_SIM_CLK,  PIN_ISO7816_RSTMC // SIM_PWEN_PIN, PIN_SIM_IO2, PIN_SIM_CLK2</span><br><span> </span><br><span> /** External SPI flash interface   **/</span><br><span> /* SPI MISO pin definition */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/simtrace2/+/24519">change 24519</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/simtrace2/+/24519"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: simtrace2 </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I43e8631d945ba183a1e5b1e37dd4565adb377154 </div>
<div style="display:none"> Gerrit-Change-Number: 24519 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>