Harald Welte
2a6d3afd6c
re-introduce req_ctx buffers into the host communication
2016-02-28 19:29:14 +01:00
Harald Welte
2fb5996d30
owhw: fix GPIO definitions (output low level by default)
2016-02-28 12:34:26 +01:00
Harald Welte
8d6a5d8f89
move USBDDriverCallbacks_ConfigurationChanged() to main.c
...
This alows us to mark simtrace_config as static variable and keep all
code related to this variable local to main.c
2015-11-07 18:27:05 +01:00
Harald Welte
d4c1421c91
conf_func: Mark const and static.
...
const saves RAM, and static avoids namespace pollution.
2015-11-07 18:25:46 +01:00
Harald Welte
fefd571701
conf_func: Use named struct initializers and named array subscripts
...
As part of this, we also do away with the '-1' based array subscripts
2015-11-07 18:25:19 +01:00
Harald Welte
15d72cc631
add some comments on the conf_func members
2015-11-07 18:19:06 +01:00
Christina Quast
3d8c093cb2
main: Increase timeout for USB configured state
...
When the timeout was too small, the main function would infinitely
loop around, restarting the board and waiting for the USB interface
to get configured. But since configuration seems to take more than
one second, it rarely succeeded.
Increasing the timeout makes the USB configuration finish in the
first try.
2015-06-24 16:02:52 +02:00
Christina Quast
560ade3239
main.c: Removed TC_Start/_Stop (was commented out)
...
Removed FIXME comment
Removed TC_Start, TC_Stop function call, which was commented out anyways.
2015-05-08 16:45:28 +02:00
Christina Quast
9dbf1c90ac
main.c: Set green LED when USB is configured
2015-05-06 08:46:32 +02:00
Christina Quast
2379ac8e32
main.c: Removed double declaration of var i
2015-04-16 11:09:37 +02:00
Christina Quast
de68867402
main.c: Reset board if USB not configured
2015-04-12 15:20:57 +02:00
Christina Quast
95d6616ba1
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
2015-04-09 22:38:47 +02:00
Christina Quast
e2dddd5885
Renamed simtrace_src to src_simtrace
2015-04-09 17:40:48 +02:00