1/* 2 * Copyright 2019, Data61 3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO) 4 * ABN 41 687 119 230. 5 * 6 * This software may be distributed and modified according to the terms of 7 * the BSD 2-Clause license. Note that NO WARRANTY is provided. 8 * See "LICENSE_BSD2.txt" for details. 9 * 10 * @TAG(DATA61_BSD) 11 */ 12 13#pragma once 14 15#include <platsupport/io.h> 16#include <platsupport/gpio.h> 17 18/* The header below abstracts over the platform-specific headers. Some 19 * platforms have headers outside of libplatsupport and in other places. */ 20#include <gpiomuxserver_plat.h> 21 22int gpiomuxserver_gpio_interface_init(int (*gpiomuxserver_init_pin)(gpio_id_t pin_id, gpio_dir_t dir), 23 int (*gpiomuxserver_set_level)(gpio_id_t pin_id, gpio_level_t level), 24 int (*gpiomuxserver_read_level)(gpio_id_t pin_id), 25 gpio_sys_t *gpio_sys); 26 27int gpiomuxserver_mux_interface_init(int (*gpiomuxserver_feature_enable)(mux_feature_t mux_feature, 28 mux_gpio_dir_t mux_gpio_dir), 29 int (*gpiomuxserver_feature_disable)(mux_feature_t mux_feature), 30 mux_sys_t *mux_sys); 31