Commit 6e3f3601 authored by patmos's avatar patmos
Browse files

add missing arch functions, fix compiler flags

parent 6519c9f4
No related merge requests found
Showing with 42 additions and 0 deletions
+42 -0
......@@ -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)
......
......@@ -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 */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment