Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
VILLASfpga
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
12
Issues
12
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ACS
P
Public
VILLASframework
VILLASfpga
Commits
c749b422
Commit
c749b422
authored
Nov 22, 2017
by
Daniel Krebs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ips/gpio: add skeleton for GPIO IP
parent
616620cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
lib/CMakeLists.txt
lib/CMakeLists.txt
+1
-0
lib/ips/gpio.c
lib/ips/gpio.c
+48
-0
No files found.
lib/CMakeLists.txt
View file @
c749b422
...
...
@@ -10,6 +10,7 @@ set(SOURCES
ips/fifo.c
ips/dma.c
ips/intc.c
ips/gpio.c
ips/rtds_axis.c
kernel/kernel.c
...
...
lib/ips/gpio.c
0 → 100644
View file @
c749b422
/** GPIO related helper functions
*
* @author Daniel Krebs <github@daniel-krebs.net>
* @copyright 2017, Daniel Krebs
* @license GNU General Public License (version 3)
*
* VILLASfpga
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************************/
#include "config.h"
#include "plugin.h"
#include "fpga/ip.h"
#include "fpga/card.h"
static
int
gpio_start
(
struct
fpga_ip
*
c
)
{
(
void
)
c
;
return
0
;
}
static
struct
plugin
p
=
{
.
name
=
"Xilinx's GPIO controller"
,
.
description
=
""
,
.
type
=
PLUGIN_TYPE_FPGA_IP
,
.
ip
=
{
.
vlnv
=
{
"xilinx.com"
,
"ip"
,
"axi_gpio"
,
NULL
},
.
type
=
FPGA_IP_TYPE_MISC
,
.
start
=
gpio_start
,
.
size
=
0
}
};
REGISTER_PLUGIN
(
&
p
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment