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 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.

Change-Id: I77118114ba873fdf0778137402888b40f2442456
This commit is contained in:
Alexander Couzens
2024-05-31 16:32:36 +02:00
parent 2fd8d3c18c
commit 504c0fab50
5 changed files with 56 additions and 5 deletions

View File

@@ -124,4 +124,8 @@ extern void mode_cardemu_usart1_irq(void);
void Timer_Init( void );
void TC0_Counter_Reset( void );
/* Sim presence pins */
bool mode_cardemu_get_prensence_pol(uint8_t instance);
void mode_cardemu_set_prensence_pol(uint8_t instance, bool high);
#endif /* SIMTRACE_H */