Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
osie
Commits
bb8124a7
Commit
bb8124a7
authored
May 03, 2022
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup.
parent
1232881c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
coupler/opc-ua-server/README.md
coupler/opc-ua-server/README.md
+0
-0
coupler/opc-ua-server/common.h
coupler/opc-ua-server/common.h
+0
-1
coupler/opc-ua-server/keep_alive.h
coupler/opc-ua-server/keep_alive.h
+1
-0
coupler/opc-ua-server/mod_io_i2c.h
coupler/opc-ua-server/mod_io_i2c.h
+3
-3
No files found.
coupler/opc-ua-server/R
eadme
.md
→
coupler/opc-ua-server/R
EADME
.md
View file @
bb8124a7
File moved
coupler/opc-ua-server/common.h
View file @
bb8124a7
...
...
@@ -4,7 +4,6 @@
#include <sys/time.h>
#include <stdio.h>
#include <open62541/server.h>
...
...
coupler/opc-ua-server/keep_alive.h
View file @
bb8124a7
...
...
@@ -6,6 +6,7 @@ const int DEFAULT_HEART_BEAT_INTERVAL = 250;
static
int
HEART_BEAT_INTERVAL
=
DEFAULT_HEART_BEAT_INTERVAL
;
// the list of couplers onto which we depend for properly running$
// XXX: assume ONLY 8 couplers!
unsigned
int
HEART_BEAT_ID_LIST
[]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
// the interval for publishing messages$
...
...
coupler/opc-ua-server/mod_io_i2c.h
View file @
bb8124a7
// global relay state
uint8_t
I2C_0_RELAYS_STATE
=
0
;
// state of 4 relays at I2C slave 0
uint8_t
I2C_1_RELAYS_STATE
=
0
;
// state of 4 relays at I2C slave 1
// XXX: what if we have more than 2 MOd-IOs / I2C slaves, we need better structure
// the default addresses of MOD-IOs
static
char
*
DEFAULT_I2C_0_ADDR
=
"0x58"
;
// the list of attached I2C slaves
const
int
DEFAULT_I2C_SLAVE_ADDR
=
0x58
;
// XXX: make dynamic array
int
I2C_SLAVE_ADDR_LIST
[]
=
{
0
,
0
,
0
,
0
,
0
};
// XXX:code assumes only 8 I2C slaves but it can be more
int
I2C_SLAVE_ADDR_LIST
[]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
// the block device at host machine
static
char
*
DEFAULT_I2C_BLOCK_DEVICE_NAME
=
"/dev/i2c-1"
;
...
...
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