Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
ae9a049d
Commit
ae9a049d
authored
Oct 28, 2020
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
boards/wr-switch: added missing file
parent
89598f28
Pipeline
#587
passed with stage
in 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
gpio-wrs.c
boards/wr-switch/gpio-wrs.c
+38
-0
No files found.
boards/wr-switch/gpio-wrs.c
0 → 100644
View file @
ae9a049d
/*
* This work is part of the White Rabbit project
*
* Copyright (C) 2013-2019 CERN (www.cern.ch)
*
* 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 (at your
* option) 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 "board.h"
#include "dev/gpio.h"
#define GPIO_SYS_CLK_SEL 0
#define GPIO_PLL_RESET_N 1
#define GPIO_PERIPH_RESET_N 3
#define GPIO_LJD_BOARD_DETECT 4
static
struct
gpio_device
wrs_gpio
;
const
struct
gpio_pin
gpio_pin_sys_clk_sel
=
{
&
wrs_gpio
,
GPIO_SYS_CLK_SEL
};
const
struct
gpio_pin
gpio_pin_pll_reset_n
=
{
&
wrs_gpio
,
GPIO_PLL_RESET_N
};
const
struct
gpio_pin
gpio_pin_periph_reset_n
=
{
&
wrs_gpio
,
GPIO_PERIPH_RESET_N
};
const
struct
gpio_pin
gpio_pin_ljd_board_detect
=
{
&
wrs_gpio
,
GPIO_LJD_BOARD_DETECT
};
void
wrs_gpio_init
(
void
)
{
wb_gpio_create
(
&
wrs_gpio
,
BASE_GPIO
);
}
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