Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
redox-os
pthreads-emb
Commits
6720dfdc
Verified
Commit
6720dfdc
authored
Dec 09, 2018
by
Jeremy Soller
Browse files
Add makefile and include osal and types
parent
9fbd1537
Pipeline
#2153
failed with stages
in 46 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Makefile
0 → 100644
View file @
6720dfdc
SRC
=
$(
wildcard
*
.c
)
OBJ
=
$(
patsubst
%.c,%.o,
$(SRC)
)
all
:
libpthread.a
libpthread.a
:
$(OBJ)
$(AR)
-rcs
$@
$(OBJ)
%.o
:
%.c
$(CC)
$(CFLAGS)
-I
.
-c
$<
-o
$@
pte_osal.h
0 → 100644
View file @
6720dfdc
#ifndef _OS_SUPPORT_H_
#define _OS_SUPPORT_H_
#ifdef __cplusplus
extern
"C"
{
#endif // __cplusplus
#include <sys/types.h>
// XXX
typedef
unsigned
long
pte_osThreadHandle
;
typedef
unsigned
long
pte_osSemaphoreHandle
;
typedef
int32_t
*
pte_osMutexHandle
;
#include <pte_generic_osal.h>
#ifdef __cplusplus
}
#endif // __cplusplus
#endif // _OS_SUPPORT_H
pte_types.h
0 → 100644
View file @
6720dfdc
#ifndef PTE_TYPES_H
#define PTE_TYPES_H
#include <errno.h>
#include <sys/types.h>
#include <sys/timeb.h>
#endif
/* PTE_TYPES_H */
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