Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/nvgubba/lacu gpio #422

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
First LC GPIO Metal changes
  • Loading branch information
¨NagaVenkatarajesh committed Aug 13, 2021
commit 24f77eb3df72d6b3bee8011824a59215a631d714
2 changes: 2 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ nobase_include_HEADERS += \
metal/drivers/sifive_gpio-leds.h \
metal/drivers/sifive_gpio-switches.h \
metal/drivers/sifive_gpio0.h \
metal/drivers/sifive_gpio2.h \
metal/drivers/sifive_i2c0.h \
metal/drivers/sifive_l2pf0.h \
metal/drivers/sifive_l2pf1.h \
Expand Down Expand Up @@ -129,6 +130,7 @@ libmetal_a_SOURCES = \
src/drivers/sifive_gpio-leds.c \
src/drivers/sifive_gpio-switches.c \
src/drivers/sifive_gpio0.c \
src/drivers/sifive_gpio2.c \
src/drivers/sifive_i2c0.c \
src/drivers/sifive_l2pf0.c \
src/drivers/sifive_l2pf1.c \
Expand Down
65 changes: 35 additions & 30 deletions Makefile.in

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions metal/drivers/sifive_gpio2.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* Copyright 2018 SiFive, Inc */
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef METAL__DRIVERS__SIFIVE_GPI02_H
#define METAL__DRIVERS__SIFIVE_GPI02_H

#include <metal/compiler.h>
#include <metal/gpio.h>

struct __metal_driver_vtable_sifive_gpio2 {
const struct __metal_gpio_vtable gpio;
};

// struct __metal_driver_sifive_gpio2;

__METAL_DECLARE_VTABLE(__metal_driver_vtable_sifive_gpio2)

struct __metal_driver_sifive_gpio2 {
struct metal_gpio gpio;
};

#endif
Loading