mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-24 17:28:32 +03:00
conf initially sniff conf
This commit is contained in:
@@ -23,7 +23,7 @@ conf_func config_func_ptrs[] = {
|
|||||||
/*------------------------------------------------------------------------------
|
/*------------------------------------------------------------------------------
|
||||||
* Internal variables
|
* Internal variables
|
||||||
*------------------------------------------------------------------------------*/
|
*------------------------------------------------------------------------------*/
|
||||||
uint8_t simtrace_config = 0;
|
uint8_t simtrace_config = CFG_NUM_SNIFF;
|
||||||
uint8_t conf_changed = 1;
|
uint8_t conf_changed = 1;
|
||||||
|
|
||||||
uint8_t rcvdChar = 0;
|
uint8_t rcvdChar = 0;
|
||||||
@@ -49,9 +49,11 @@ extern int main( void )
|
|||||||
|
|
||||||
printf("%s", "USB init\n\r");
|
printf("%s", "USB init\n\r");
|
||||||
|
|
||||||
while(USBD_GetState() < USBD_STATE_CONFIGURED);
|
// FIXME: why don't we get any interrupts with this line?:
|
||||||
|
// while(USBD_GetState() < USBD_STATE_CONFIGURED);
|
||||||
|
|
||||||
TRACE_DEBUG("%s", "Start\n\r");
|
TRACE_DEBUG("%s", "Start\n\r");
|
||||||
|
|
||||||
printf("%s", "Start\n\r");
|
printf("%s", "Start\n\r");
|
||||||
while(1) {
|
while(1) {
|
||||||
|
|
||||||
@@ -70,6 +72,8 @@ extern int main( void )
|
|||||||
// TC_Start(TC0, 0);
|
// TC_Start(TC0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// for (int i=0; i <10000; i++);
|
||||||
|
|
||||||
/* FIXME: Or should we move the while loop into every case, and break out
|
/* FIXME: Or should we move the while loop into every case, and break out
|
||||||
in case the config changes? */
|
in case the config changes? */
|
||||||
if (conf_changed) {
|
if (conf_changed) {
|
||||||
|
|||||||
Reference in New Issue
Block a user