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
37146359
Commit
37146359
authored
Mar 27, 2012
by
Grzegorz Daniluk
Committed by
Alessandro Rubini
Mar 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec: added global variables assigned to ppi fields
parent
4a06dc16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
spec-startup.c
arch-spec/spec-startup.c
+22
-0
No files found.
arch-spec/spec-startup.c
View file @
37146359
...
...
@@ -9,6 +9,17 @@
static
struct
pp_instance
ppi_static
;
int
pp_diag_verbosity
=
0
;
/*ppi fields*/
static
UInteger16
sent_seq_id
[
16
];
static
DSDefault
defaultDS
;
static
DSCurrent
currentDS
;
static
DSParent
parentDS
;
static
DSPort
portDS
;
static
DSTimeProperties
timePropertiesDS
;
static
struct
pp_net_path
net_path
;
static
struct
pp_servo
servo
;
static
struct
pp_frgn_master
frgn_master
;
void
pptp_main
(
void
)
{
struct
pp_instance
*
ppi
=
&
ppi_static
;
/* no malloc, one instance */
...
...
@@ -22,6 +33,17 @@ void pptp_main(void)
//gpio_dir(GPIO_PIN_LED_LINK, 1);
//gpio_dir(GPIO_PIN_LED_STATUS, 1);
ppi
->
sent_seq_id
=
sent_seq_id
;
ppi
->
defaultDS
=
&
defaultDS
;
ppi
->
currentDS
=
&
currentDS
;
ppi
->
parentDS
=
&
parentDS
;
ppi
->
portDS
=
&
portDS
;
ppi
->
timePropertiesDS
=
&
timePropertiesDS
;
ppi
->
net_path
=
&
net_path
;
ppi
->
servo
=
&
servo
;
ppi
->
frgn_master
=
&
frgn_master
;
ppi
->
arch_data
=
NULL
;
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