1 /* 2 * Copyright (c) 2017, Linaro Limited. and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 /* 8 * @file zephyr/init.c 9 * @brief Zephyr libmetal initialization. 10 */ 11 12 #include <metal/device.h> 13 #include <metal/sys.h> 14 #include <metal/utilities.h> 15 16 struct metal_state _metal; 17 metal_sys_init(const struct metal_init_params * params)18int metal_sys_init(const struct metal_init_params *params) 19 { 20 metal_bus_register(&metal_generic_bus); 21 return 0; 22 } 23 metal_sys_finish(void)24void metal_sys_finish(void) 25 { 26 metal_bus_unregister(&metal_generic_bus); 27 } 28