mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-20 07:18:33 +03:00
migrate from req_ctx to msgb
We now generalize the USB communiction and abandon the 'req_ctx' structure inherited from openpcd. Instead we use the libosmocore 'msgb' structure to handle incoming and outgoing USB tranfers. We also use linuxlist-based msgb-queues for each endpoint.
This commit is contained in:
@@ -4,12 +4,12 @@
|
||||
#include "board.h"
|
||||
#include "simtrace.h"
|
||||
#include "utils.h"
|
||||
#include "req_ctx.h"
|
||||
#include "wwan_led.h"
|
||||
#include "wwan_perst.h"
|
||||
#include "boardver_adc.h"
|
||||
#include "card_pres.h"
|
||||
#include "osmocom/core/timer.h"
|
||||
#include "usb_buf.h"
|
||||
|
||||
static const Pin pin_hubpwr_override = PIN_PRTPWR_OVERRIDE;
|
||||
static const Pin pin_hub_rst = {PIO_PA13, PIOA, ID_PIOA, PIO_OUTPUT_0, PIO_DEFAULT};
|
||||
@@ -231,6 +231,8 @@ void board_exec_dbg_cmd(int ch)
|
||||
|
||||
void board_main_top(void)
|
||||
{
|
||||
usb_buf_init();
|
||||
|
||||
wwan_led_init();
|
||||
wwan_perst_init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user