Compare commits
2 Commits
573234295f
...
5ab6aefa49
Author | SHA1 | Date | |
---|---|---|---|
5ab6aefa49 | |||
de55b4cdd6 |
8
Makefile
8
Makefile
@ -42,4 +42,10 @@ clean:
|
|||||||
.PHONY: run
|
.PHONY: run
|
||||||
.SILENT: run
|
.SILENT: run
|
||||||
run: all
|
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
|
||||||
|
@ -11,7 +11,7 @@ Drivers **must** expose the following symbols:
|
|||||||
void driver_init(); // Initialization
|
void driver_init(); // Initialization
|
||||||
uint32_t driver_getkey(); // Calls to this function must return USB keys that this driver registers, until 0
|
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_name(void* handle); // Returns peripheral name
|
||||||
char* driver_get_image(void* handle); // Returns peripheral image
|
char* driver_get_image(void* handle); // Returns peripheral image
|
||||||
char* driver_get_manufacturer(void* handle); // Returns manufacturer name
|
char* driver_get_manufacturer(void* handle); // Returns manufacturer name
|
||||||
|
Loading…
Reference in New Issue
Block a user