Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
scouting-demonstrator
SCONE
Commits
0a86f9e3
Commit
0a86f9e3
authored
Dec 10, 2020
by
Gaia Grosso
Browse files
Update functions.c
parent
c8720ae4
Changes
1
Hide whitespace changes
Inline
Side-by-side
functions.c
View file @
0a86f9e3
#
#include <stdint.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
...
...
@@ -40,7 +40,7 @@ int write_bits(char *device_loc, char *address, unsigned int writeval)
printf
(
"address: 0x%08x
\n
"
,
(
unsigned
int
)
target
);
/* open device */
int
fd
=
open
(
device_loc
,
O_RDWR
|
O_SYNC
)
)
;
int
fd
=
open
(
device_loc
,
O_RDWR
|
O_SYNC
);
if
(
fd
==
-
1
)
{
FATAL
;
return
-
1
;
...
...
@@ -80,7 +80,7 @@ int read_bits(char *device_loc, char *address, uint32_t *read_result)
printf
(
"address: 0x%08x
\n
"
,
(
unsigned
int
)
target
);
/* open device */
int
fd
=
open
(
device_loc
,
O_RDWR
|
O_SYNC
)
)
;
int
fd
=
open
(
device_loc
,
O_RDWR
|
O_SYNC
);
if
(
fd
==
-
1
){
FATAL
;
return
-
1
;
...
...
Write
Preview
Supports
Markdown
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