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
6
Merge Requests
6
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
913cd974
Commit
913cd974
authored
Mar 18, 2020
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev/syscon: removed legacy GPIO functions & definitions
parent
9c097e86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
26 deletions
+2
-26
syscon.h
include/dev/syscon.h
+2
-26
No files found.
include/dev/syscon.h
View file @
913cd974
...
...
@@ -78,6 +78,8 @@ struct SYSCON_WB {
uint32_t
WDIAG_TEMP
;
};
/* GPIO pins */
extern
const
struct
gpio_pin
pin_sysc_led_link
;
extern
const
struct
gpio_pin
pin_sysc_led_stat
;
extern
const
struct
gpio_pin
pin_sysc_btn1
;
...
...
@@ -97,17 +99,6 @@ extern struct i2c_bus dev_i2c_fmc;
extern
struct
i2c_bus
dev_i2c_sfp
;
extern
struct
spi_flash_device
wrc_flash_dev
;
/*GPIO pins*/
#define GPIO_LED_LINK SYSC_GPSR_LED_LINK
#define GPIO_LED_STAT SYSC_GPSR_LED_STAT
#define GPIO_BTN1 SYSC_GPSR_BTN1
#define GPIO_BTN2 SYSC_GPSR_BTN2
#define GPIO_SFP_DET SYSC_GPSR_SFP_DET
#define GPIO_SPI_SCLK SYSC_GPSR_SPI_SCLK
#define GPIO_SPI_NCS SYSC_GPSR_SPI_NCS
#define GPIO_SPI_MOSI SYSC_GPSR_SPI_MOSI
#define GPIO_SPI_MISO SYSC_GPSR_SPI_MISO
#define WRPC_FMC_I2C 0
#define WRPC_SFP_I2C 1
#define FMC_I2C_DELAY 15
...
...
@@ -127,21 +118,6 @@ void timer_init(uint32_t enable);
extern
volatile
struct
SYSCON_WB
*
syscon
;
/****************************
* GPIO
***************************/
static
inline
void
gpio_out
(
int
pin
,
int
val
)
{
if
(
val
)
syscon
->
GPSR
=
pin
;
else
syscon
->
GPCR
=
pin
;
}
static
inline
int
gpio_in
(
int
pin
)
{
return
syscon
->
GPSR
&
pin
?
1
:
0
;
}
static
inline
int
sysc_get_memsize
(
void
)
{
...
...
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