mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
qmod: Set PIN_PRTPWR_OVERRIDE to output/low
This commit is contained in:
@@ -41,6 +41,8 @@
|
||||
|
||||
#define PINS_CARDSIM { PIN_SET_USIM1_PRES, PIN_SET_USIM2_PRES }
|
||||
|
||||
#define PIN_PRTPWR_OVERRIDE {PIO_PA8, PIOA, ID_PIOA, PIO_OUTPUT_0, PIO_DEFAULT}
|
||||
|
||||
#define SIMTRACE_VENDOR_ID 0x1d50
|
||||
#define SIMTRACE_PRODUCT_ID 0x60e3 /* FIXME */
|
||||
#define USB_VENDOR_ID SIMTRACE_VENDOR_ID
|
||||
|
||||
@@ -164,6 +164,11 @@ static const unsigned int __eeprom_bin_len = 256;
|
||||
PIO_Configure(&pin_hub_rst, 1);
|
||||
i2c_pin_init();
|
||||
|
||||
/* set PIN_PRTPWR_OVERRIDE to output-low to avoid the internal
|
||||
* pull-up on the input to keep SIMTRACE12 alive */
|
||||
static const Pin pin_hubpwr_override = PIN_PRTPWR_OVERRIDE;
|
||||
PIO_Configure(&pin_hubpwr_override, 1);
|
||||
|
||||
/* wait */
|
||||
volatile int v;
|
||||
/* 440ns per cycle here */
|
||||
|
||||
Reference in New Issue
Block a user