Move includes to header

This commit is contained in:
Jonathan Bennett
2025-06-01 14:42:55 -05:00
committed by Tom Fifield
parent c7dd670e61
commit 4e23fac167
2 changed files with 7 additions and 8 deletions

View File

@@ -4,7 +4,13 @@
#ifndef __CH341A_I2C_H__
#define __CH341A_I2C_H__
#include <assert.h>
#include <errno.h>
#include <libusb-1.0/libusb.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define BULK_WRITE_ENDPOINT 0x02 /* bEndpointAddress 0x02 EP 2 OUT (Bulk)*/
#define BULK_READ_ENDPOINT 0x82 /* bEndpointAddress 0x82 EP 2 IN (Bulk)*/