mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-19 06:48:34 +03:00
firmware: allow to change the sim presence pin polarity
The sim presence pin allows the simtrace2 to inform the modem about the presence of the simcard. On a generic simcard slot a button is pressed by the simcard which generate a high or low voltage level. Even though there are specifications of minipcie or ngff defining this signal, certain modems behave different. Certain modems require different signals from the specification. Extend the usb protocol to set the behaviour at runtime. Related: SYS#6946 Change-Id: I77118114ba873fdf0778137402888b40f2442456
This commit is contained in:
@@ -7,6 +7,7 @@ CFLAGS=-g -Wall $(LIBOSMOCORE_CFLAGS) \
|
||||
-I../atmel_softpack_libraries/libchip_sam3s/cmsis \
|
||||
-I../atmel_softpack_libraries/libchip_sam3s/include \
|
||||
-I../atmel_softpack_libraries/usb/include \
|
||||
-I../atmel_softpack_libraries/ \
|
||||
-I../libcommon/include \
|
||||
-I../libboard/common/include \
|
||||
-I../libboard/simtrace/include \
|
||||
|
||||
@@ -93,7 +93,14 @@ void card_emu_uart_reset_wt(uint8_t uart_chan)
|
||||
printf("%s(uart_chan=%u\n", __func__, uart_chan);
|
||||
}
|
||||
|
||||
void mode_cardemu_set_presence_pol(uint8_t instance, bool high)
|
||||
{
|
||||
}
|
||||
|
||||
bool mode_cardemu_get_presence_pol(uint8_t instance)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* test helper functions
|
||||
|
||||
Reference in New Issue
Block a user