Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
rt-UA
open62541
Commits
6e3f3601
Commit
6e3f3601
authored
5 years ago
by
patmos
Browse files
Options
Download
Email Patches
Plain Diff
add missing arch functions, fix compiler flags
parent
6519c9f4
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arch/patmos/CMakeLists.txt
+2
-0
arch/patmos/CMakeLists.txt
arch/patmos/ua_architecture_functions.c
+40
-0
arch/patmos/ua_architecture_functions.c
with
42 additions
and
0 deletions
+42
-0
arch/patmos/CMakeLists.txt
View file @
6e3f3601
...
...
@@ -4,6 +4,8 @@ ua_add_architecture("patmos")
if
(
"
${
UA_ARCHITECTURE
}
"
STREQUAL
"patmos"
)
ua_architecture_add_definitions
(
-Wno-error
)
ua_include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
)
ua_add_architecture_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/ua_clock.c
)
ua_add_architecture_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/ua_architecture_functions.c
)
...
...
This diff is collapsed.
Click to expand it.
arch/patmos/ua_architecture_functions.c
View file @
6e3f3601
...
...
@@ -11,8 +11,40 @@ void UA_deinitialize_architecture_network(void){
return
;
}
int
UA_sleep_ms
(
unsigned
int
miliSeconds
)
{
}
int
gethostname_ecos
(
char
*
name
,
size_t
len
){
return
0
;
}
int
UA_getsockname
(
int
sockfd
,
struct
sockaddr
*
addr
,
socklen_t
*
addrlen
){
return
0
;
}
int
accept
(
UA_SOCKET
sockfd
,
struct
sockaddr
*
addr
,
socklen_t
*
addrlen
)
{
return
0
;
}
int
listen
(
UA_SOCKET
sockfd
,
int
backlog
){
return
0
;
}
unsigned
int
UA_socket_set_blocking
(
UA_SOCKET
sockfd
){
return
0
;
}
unsigned
int
UA_socket_set_nonblocking
(
UA_SOCKET
sockfd
){
return
0
;
}
int
connect
(
int
sockfd
,
const
struct
sockaddr
*
addr
,
socklen_t
addrlen
){
return
0
;
}
int
socket
(
int
domain
,
int
type
,
int
protocol
){
return
0
;
...
...
@@ -26,6 +58,10 @@ int bind(int sockfd, const struct sockaddr *addr,
return
0
;
}
int
UA_shutdown
(
UA_SOCKET
sockfd
,
int
how
){
return
0
;
}
void
freeaddrinfo
(
struct
addrinfo
*
res
){
}
...
...
@@ -127,4 +163,8 @@ __uint32_t ntohl(__uint32_t v) {
return
htonl
(
v
);
}
__uint16_t
ntohs
(
__uint16_t
v
)
{
return
htons
(
v
);
}
#endif
/* UA_ARCHITECTURE_PATMOS */
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help