change operands for some instructions and start work on devices
This commit is contained in:
12
src/device.c
Normal file
12
src/device.c
Normal file
@@ -0,0 +1,12 @@
|
||||
#include "device.h"
|
||||
|
||||
Device* createDevice(
|
||||
const char* name,
|
||||
void (*sendToDevice)(uint16_t number),
|
||||
uint16_t (*receiveFromDevice)(),
|
||||
void (*update)()
|
||||
) {
|
||||
Device* new = malloc(sizeof(Device));
|
||||
if (!new)
|
||||
return NULL;
|
||||
}
|
||||
Reference in New Issue
Block a user