Starting a rewrite of how the IO works.
Currently 100% broken, also going to change how devices are selected for each system so no more if/else everywhere and system should be more accurate.
This commit is contained in:
24
source/includes/device.h
Normal file
24
source/includes/device.h
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* NewOswan
|
||||
* device.h:
|
||||
*
|
||||
* Created by Manoël Trapier on 19/12/2021.
|
||||
* Copyright (c) 2014-2021 986-Studio. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef NEWOSWAN_DEVICE_H
|
||||
#define NEWOSWAN_DEVICE_H
|
||||
|
||||
typedef void (*device_init)(void);
|
||||
typedef void (*device_reset)(void);
|
||||
typedef void (*device_free)(void);
|
||||
|
||||
typedef struct device_t
|
||||
{
|
||||
device_init *init;
|
||||
device_reset *reset;
|
||||
device_free *free;
|
||||
} device_t;
|
||||
|
||||
#endif /* NEWOSWAN_DEVICE_H */
|
||||
Reference in New Issue
Block a user