whiskers 0.4.0
RP2350 BadUSB Tool
Loading...
Searching...
No Matches
wlua_fops.h
1/* Copyright (c) 2026 Zane A. Maples
2 Licensed under the MIT license. See LICENSE in the main repository for more information. */
3
4#ifndef W_LUA_FOPS_H
5#define W_LUA_FOPS_H
6
7#include <string.h>
8#include <stdlib.h>
9#include "../../hal/file.h"
10#include "../usb/wusb.h"
11#include "../../lua/lua.h"
12#include "../../lua/lualib.h"
13#include "../../lua/lauxlib.h"
14
15#define WLUA_SEND_FILE_RAW_BUF_SIZE 4096 /* Max string size to be sent at once */
16
17/* Note this file holds all the "glue" functions for file operations in lua */
18
19void register_lua_fops(lua_State *lua);
20
21#endif
HAL file functions.
High-level code for setting up the USB stack.