Prepending 'shared' to files in shared folder to make more clear that these files should only be edited from the shared folder as they're copied into source folder at compile time. Any edits from source folder will get stopped, and committing shared files outside of shared folder is not desired.
This commit is contained in:
parent
ab52b30d8d
commit
70e700c7e8
|
|
@ -13,14 +13,10 @@
|
|||
#include "dbg.h"
|
||||
|
||||
#include "usb_operations.h"
|
||||
#include "usb_commands.h"
|
||||
#include "write_operations.h"
|
||||
|
||||
|
||||
// vendor requests also defined in firmware
|
||||
// TODO put in combined .h file for both host and fw
|
||||
//#define REQ_LED_ON 1
|
||||
//#define REQ_LED_OFF 2
|
||||
//TODO remove once commands removed from main
|
||||
#include "shared_usb_commands.h"
|
||||
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
|
|
|||
|
|
@ -1,20 +1,5 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <libusb.h>
|
||||
|
||||
//uncomment to DEBUG this file alone
|
||||
//#define DEBUG
|
||||
//"make debug" to get DEBUG msgs on entire program
|
||||
#include "dbg.h"
|
||||
|
||||
#include "usb_operations.h"
|
||||
|
||||
//USB timeout
|
||||
#define SEC_5 5000
|
||||
|
||||
//control transfer request types
|
||||
//uint8_t libusb_control_setup::bmRequestType
|
||||
//Request type.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,19 @@
|
|||
#ifndef _usb_operations_h
|
||||
#define _usb_operations_h
|
||||
|
||||
#include "usb_operations.h"
|
||||
#include "usb_commands.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <libusb.h>
|
||||
|
||||
//uncomment to DEBUG this file alone
|
||||
//#define DEBUG
|
||||
//"make debug" to get DEBUG msgs on entire program
|
||||
#include "dbg.h"
|
||||
|
||||
#include "shared_usb_commands.h"
|
||||
|
||||
//control transfer request types
|
||||
//uint8_t libusb_control_setup::bmRequestType
|
||||
|
|
|
|||
|
|
@ -1,18 +1,4 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <libusb.h>
|
||||
|
||||
//uncomment to DEBUG this file alone
|
||||
#define DEBUG
|
||||
//"make debug" to get DEBUG msgs on entire program
|
||||
#include "dbg.h"
|
||||
|
||||
#include "write_operations.h"
|
||||
#include "usb_operations.h"
|
||||
#include "usb_commands.h"
|
||||
|
||||
#define SIZE_NES_HEADER 16
|
||||
#define SIZE_PRG_BANK 16384
|
||||
|
|
|
|||
|
|
@ -1,7 +1,21 @@
|
|||
#ifndef _write_operations_h
|
||||
#define _write_operations_h
|
||||
|
||||
#include "write_operations.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <libusb.h>
|
||||
|
||||
#include "usb_operations.h"
|
||||
#include "shared_usb_commands.h"
|
||||
|
||||
//uncomment to DEBUG this file alone
|
||||
#define DEBUG
|
||||
//"make debug" to get DEBUG msgs on entire program
|
||||
#include "dbg.h"
|
||||
|
||||
|
||||
int write_file( libusb_device_handle *usbhandle, char *filename, char *ines_mapper, char *board_config );
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
#ifndef _shared_usb_commands_h
|
||||
#define _shared_usb_commands_h
|
||||
|
||||
#define REQ_LED_ON 1
|
||||
#define REQ_LED_OFF 2
|
||||
|
||||
#endif
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
#ifndef _usb_commands_h
|
||||
#define _usb_commands_h
|
||||
|
||||
#define REQ_LED_ON 1
|
||||
#define REQ_LED_OFF 2
|
||||
|
||||
#endif
|
||||
Loading…
Reference in New Issue