<commit_before>#include "interface/usb.h"
#include "util/bytebuffer.h"
#include "util/log.h"
#include "power.h"
#include "config.h"
#include "gpio.h"
#include "usb_config.h"

#define USB_HANDLE_MAX_WAIT_COUNT 1000
#include "fs_platforms.h"

namespace gpio = openxc::gpio;
namespace commands = openxc::commands;
namespace usb = openxc::interface::usb;

using openxc::util::log::debug;
using openxc::interface::usb::UsbDevice;
using openxc::interface::usb::UsbEndpoint;
using openxc::interface::usb::UsbEndpointDirection;
using openxc::gpio::GPIO_DIRECTION_INPUT;
using openxc::util::bytebuffer::processQueue;
using openxc::config::getConfiguration;

// This is a reference to the last packet read
extern volatile CTRL_TRF_SETUP SetupPkt;

#ifdef FS_SUPPORT
#include "USB/usb_function_msd.h"
#include "app_device_msd.h"
namespace fs = openxc::interface::fs;
#endif	



/* Private: Arm the given endpoint for a read from the device to host.
 *
 * This also puts a NUL char in the beginning of the buffer so you don't get
 * confused that it's still a valid message.
 *
 * device - the CAN USB device to arm the endpoint on
 * endpoint - the endpoint to arm.
 * buffer - the destination buffer for the next OUT transfer.
 */
static void armForRead(UsbDevice* usbDevice, UsbEndpoint* endpoint) {
    memset(endpoint->receiveBuffer, sizeof(endpoint->receiveBuffer), 0);<commit_msg>Fixed usb.cpp header include<commit_after>#include "interface/usb.h"
#include "util/bytebuffer.h"
#include "util/log.h"
#include "power.h"
#include "config.h"
#include "gpio.h"
#include "usb_config.h"

#define USB_HANDLE_MAX_WAIT_COUNT 1000
#include "fs_platforms.h"

namespace gpio = openxc::gpio;
namespace commands = openxc::commands;
namespace usb = openxc::interface::usb;

using openxc::util::log::debug;
using openxc::interface::usb::UsbDevice;
using openxc::interface::usb::UsbEndpoint;
using openxc::interface::usb::UsbEndpointDirection;
using openxc::gpio::GPIO_DIRECTION_INPUT;
using openxc::util::bytebuffer::processQueue;
using openxc::config::getConfiguration;

// This is a reference to the last packet read
extern volatile CTRL_TRF_SETUP SetupPkt;

#ifdef FS_SUPPORT
//#include "USB/usb_function_msd.h"
#include "app_device_msd.h"
namespace fs = openxc::interface::fs;
#endif	



/* Private: Arm the given endpoint for a read from the device to host.
 *
 * This also puts a NUL char in the beginning of the buffer so you don't get
 * confused that it's still a valid message.
 *
 * device - the CAN USB device to arm the endpoint on
 * endpoint - the endpoint to arm.
 * buffer - the destination buffer for the next OUT transfer.
 */
static void armForRead(UsbDevice* usbDevice, UsbEndpoint* endpoint) {
    memset(endpoint->receiveBuffer, sizeof(endpoint->receiveBuffer), 0);
{'fraction_non_alphanumeric': 0.11384170581857607, 'fraction_numerical': 0.003614022406938923, 'mean_word_length': 5.834567901234568, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4249752', 'n_tokens_mistral': 885, 'n_tokens_neox': 856, 'n_words': 270}