Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _targets/Makefile.armv7m7-imxrt106x
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
DEFAULT_COMPONENTS := imxrt-multi

ifneq (, $(findstring 117, $(TARGET)))
DEFAULT_COMPONENTS += libusbclient imxrt-flash cdc-demo imxrt117x-otp libusbehci umass libusbdrv-umass usbacm libusbdrv-usbacm
DEFAULT_COMPONENTS += libusbclient imxrt-flash cdc-demo imxrt117x-otp libusbehci umass libusbdrv-umass usbacm libusbdrv-usbacm usbwlan libusbdrv-usbwlan
else ifneq (, $(findstring 105, $(TARGET)))
# placeholder
else ifneq (, $(findstring 106, $(TARGET)))
Expand Down
15 changes: 15 additions & 0 deletions net/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Makefile for Phoenix-RTOS USB WLAN driver
#
# Copyright 2025 Phoenix Systems
#

NAME := libusbdrv-usbwlan
LOCAL_SRCS := usbwlan.c
LOCAL_HEADERS := usbwlan.h
include $(static-lib.mk)

NAME := usbwlan
LOCAL_SRCS := usbwlan.c srv.c
LIBS := libusb
include $(binary.mk)
35 changes: 35 additions & 0 deletions net/srv.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Phoenix-RTOS
*
* USB WLAN driver
*
* Device driver server
*
* Copyright 2025 Phoenix Systems
* Author: Julian Uziembło
*
* %LICENSE%
*/

#include <stdio.h>

#include <usbprocdriver.h>


int main(int argc, char *argv[])
{
int ret;
usb_driver_t *driver = usb_registeredDriverPop();
if (driver == NULL) {
fprintf(stderr, "usbwlan: no driver registered!\n");
return 1;
}

ret = usb_driverProcRun(driver, NULL);
if (ret < 0) {
fprintf(stderr, "usbwlan: failed to start server: %d\n", ret);
return 1;
}

return 0;
}
Loading
Loading