Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
PPSi
Commits
3548d7cd
Commit
3548d7cd
authored
Mar 21, 2012
by
Grzegorz Daniluk
Committed by
Alessandro Rubini
Mar 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec-startup: update to use syscon for gpio handling
parent
d4d320e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
spec-startup.c
arch-spec/spec-startup.c
+5
-4
No files found.
arch-spec/spec-startup.c
View file @
3548d7cd
...
...
@@ -4,9 +4,10 @@
#include <pptp/pptp.h>
#include <pptp/diag.h>
#include "spec.h"
#include "include/
gpio
.h"
#include "include/
syscon
.h"
static
struct
pp_instance
ppi_static
;
int
pp_diag_verbosity
=
0
;
void
pptp_main
(
void
)
{
...
...
@@ -17,9 +18,9 @@ void pptp_main(void)
pp_puts
(
"Spec: starting. Compiled on "
__DATE__
"
\n
"
);
/* leds are off and button is input */
gpio_dir
(
GPIO_PIN_BTN1
,
0
);
gpio_dir
(
GPIO_PIN_LED_LINK
,
1
);
gpio_dir
(
GPIO_PIN_LED_STATUS
,
1
);
//
gpio_dir(GPIO_PIN_BTN1, 0);
//
gpio_dir(GPIO_PIN_LED_LINK, 1);
//
gpio_dir(GPIO_PIN_LED_STATUS, 1);
gpio_out
(
GPIO_PIN_LED_LINK
,
0
);
gpio_out
(
GPIO_PIN_LED_STATUS
,
0
);
...
...
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