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
a908b16b
Commit
a908b16b
authored
Oct 20, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
warnings: fix sockitowm/
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
0f3fabe7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
eep43.c
sockitowm/eep43.c
+4
-4
owerr.c
sockitowm/owerr.c
+1
-3
No files found.
sockitowm/eep43.c
View file @
a908b16b
#include <wrc.h>
#include "ownet.h"
#include "ownet.h"
#define READ_SCRATCH_CMD 0xaa
#define READ_SCRATCH_CMD 0xaa
...
@@ -8,6 +9,8 @@
...
@@ -8,6 +9,8 @@
//#define DEBUG_EEP43 1
//#define DEBUG_EEP43 1
static
int
Copy2Mem43
(
int
portnum
,
uchar
*
SerialNum
);
int
Write43
(
int
portnum
,
uchar
*
SerialNum
,
int
page
,
uchar
*
page_buffer
)
int
Write43
(
int
portnum
,
uchar
*
SerialNum
,
int
page
,
uchar
*
page_buffer
)
{
{
uchar
rt
=
FALSE
;
uchar
rt
=
FALSE
;
...
@@ -62,11 +65,9 @@ int Write43(int portnum, uchar * SerialNum, int page, uchar * page_buffer)
...
@@ -62,11 +65,9 @@ int Write43(int portnum, uchar * SerialNum, int page, uchar * page_buffer)
return
rt
;
return
rt
;
}
}
int
Copy2Mem43
(
int
portnum
,
uchar
*
SerialNum
)
static
int
Copy2Mem43
(
int
portnum
,
uchar
*
SerialNum
)
{
{
uchar
rt
=
FALSE
;
uchar
rt
=
FALSE
;
ushort
lastcrc16
;
int
i
;
uchar
read_data
;
uchar
read_data
;
owSerialNum
(
portnum
,
SerialNum
,
FALSE
);
owSerialNum
(
portnum
,
SerialNum
,
FALSE
);
...
@@ -164,7 +165,6 @@ int ReadMem43(int portnum, uchar * SerialNum, int page, uchar * page_buffer)
...
@@ -164,7 +165,6 @@ int ReadMem43(int portnum, uchar * SerialNum, int page, uchar * page_buffer)
uchar
rt
=
FALSE
;
uchar
rt
=
FALSE
;
ushort
lastcrc16
;
ushort
lastcrc16
;
int
i
;
int
i
;
ushort
target_addr
=
0
;
uchar
read_data
;
uchar
read_data
;
owSerialNum
(
portnum
,
SerialNum
,
FALSE
);
owSerialNum
(
portnum
,
SerialNum
,
FALSE
);
...
...
sockitowm/owerr.c
View file @
a908b16b
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
//
//
#include <string.h>
#include <string.h>
#include <wrc.h>
//#include <stdio.h>
//#include <stdio.h>
#include "ownet.h"
#include "ownet.h"
#include "uart.h"
#include "uart.h"
...
@@ -314,9 +315,6 @@ void owPrintErrorMsg(FILE * filenum)
...
@@ -314,9 +315,6 @@ void owPrintErrorMsg(FILE * filenum)
char
*
f
=
owErrorStack
[
owErrorPointer
].
filename
;
char
*
f
=
owErrorStack
[
owErrorPointer
].
filename
;
int
err
=
owGetErrorNum
();
int
err
=
owGetErrorNum
();
//fprintf(filenum,"Error %d: %s line %d: %s\r\n",err,f,l,owErrorMsg[err]);
//fprintf(filenum,"Error %d: %s line %d: %s\r\n",err,f,l,owErrorMsg[err]);
#else
int
err
=
owGetErrorNum
();
//fprintf(filenum,"Error %d: %s\r\n",err,owErrorMsg[err]);
#endif
#endif
}
}
...
...
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