Compare commits

...

2 Commits

Author SHA1 Message Date
5ab6aefa49 Added debug target in Makefile 2023-11-07 13:33:39 +01:00
de55b4cdd6 Fixed README 2023-11-07 13:33:26 +01:00
2 changed files with 8 additions and 2 deletions

View File

@ -42,4 +42,10 @@ clean:
.PHONY: run
.SILENT: run
run: all
XDG_DATA_DIRS=./$(BUILD_DIR) ./$(BUILD_DIR)/ginput
XDG_DATA_DIRS=./$(BUILD_DIR) ./$(BUILD_DIR)/$(NAME)
$(BUILD_DIR)/$(NAME).dbg: $(BUILD_DIR)/resource.c $(C_FILES) | $(BUILD_DIR)
$(CC) $(CFLAGS) -g -o $@ $^ $(LDFLAGS)
debug: $(BUILD_DIR)/$(NAME).dbg $(BUILD_DIR)/drivers resources
XDG_DATA_DIRS=./$(BUILD_DIR) gdb --args ./$(BUILD_DIR)/$(NAME).dbg

View File

@ -11,7 +11,7 @@ Drivers **must** expose the following symbols:
void driver_init(); // Initialization
uint32_t driver_getkey(); // Calls to this function must return USB keys that this driver registers, until 0
device_type_t driver_get_capacity(); // Returns device capacity (see below)
device_capacity_t driver_get_capacity(void* handle); // Returns device capacity (see below)
char* driver_get_name(void* handle); // Returns peripheral name
char* driver_get_image(void* handle); // Returns peripheral image
char* driver_get_manufacturer(void* handle); // Returns manufacturer name