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:
Godzil
2021-12-20 15:43:04 +00:00
parent 8fa2ef06ab
commit 6f56a8efda
33 changed files with 1017 additions and 699 deletions

24
source/includes/device.h Normal file
View 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 */