mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-19 14:58:35 +03:00
Split init into configure and init
* Implemented configure, init, exit functions:
When a configuration is changed, interrupts for reset pins
should be disabled
* Moved variables shared between code files to simtrace.h
This commit is contained in:
@@ -602,13 +602,10 @@ const USBDDriverDescriptors driverDescriptors = {
|
||||
/*----------------------------------------------------------------------------
|
||||
* Callbacks
|
||||
*----------------------------------------------------------------------------*/
|
||||
extern uint8_t conf_changed;
|
||||
extern uint8_t simtrace_config;
|
||||
|
||||
void USBDDriverCallbacks_ConfigurationChanged(uint8_t cfgnum)
|
||||
{
|
||||
TRACE_INFO_WP("cfgChanged%d ", cfgnum);
|
||||
conf_changed =1;
|
||||
simtrace_config = cfgnum;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user