From c5758ac3742d036b5ddc1668d33ee81261e873b0 Mon Sep 17 00:00:00 2001 From: Tau Date: Sat, 4 May 2019 12:04:38 -0400 Subject: [PATCH] amex/amex.c: Add amex_hook_init() helper --- amex/amex.c | 15 +++++++++++++++ amex/amex.h | 3 +++ amex/meson.build | 2 ++ 3 files changed, 20 insertions(+) create mode 100644 amex/amex.c create mode 100644 amex/amex.h diff --git a/amex/amex.c b/amex/amex.c new file mode 100644 index 0000000..f30195b --- /dev/null +++ b/amex/amex.c @@ -0,0 +1,15 @@ +#include "amex/amex.h" +#include "amex/ds.h" +#include "amex/eeprom.h" +#include "amex/gpio.h" +#include "amex/jvs.h" +#include "amex/sram.h" + +void amex_hook_init(void) +{ + ds_hook_init(); + eeprom_hook_init(); + gpio_hook_init(); + jvs_hook_init(); + sram_hook_init(); +} diff --git a/amex/amex.h b/amex/amex.h new file mode 100644 index 0000000..63591e0 --- /dev/null +++ b/amex/amex.h @@ -0,0 +1,3 @@ +#pragma once + +void amex_hook_init(void); diff --git a/amex/meson.build b/amex/meson.build index 38c3c6a..d50418d 100644 --- a/amex/meson.build +++ b/amex/meson.build @@ -7,6 +7,8 @@ amex_lib = static_library( capnhook.get_variable('hook_dep'), ], sources : [ + 'amex.c', + 'amex.h', 'ds.c', 'ds.h', 'eeprom.c',