summaryrefslogtreecommitdiff
path: root/src/hardware/port.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-06-10 21:26:24 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-06-10 21:26:24 +0200
commitd6d1bdfefafff50b7b6d15d218c0a188570be541 (patch)
tree15ee8de727d0be5d126efda146b2879de0a72773 /src/hardware/port.c
parenteea5bf4b859eb56c5772c58ca54937a90a10e7ee (diff)
downloadabaos-d6d1bdfefafff50b7b6d15d218c0a188570be541.tar.gz
abaos-d6d1bdfefafff50b7b6d15d218c0a188570be541.tar.bz2
some big renames into subdirs of aspects
updated README removed size_t in sys/types.h and sys/types.h itself, size_t is in stddef.h
Diffstat (limited to 'src/hardware/port.c')
-rw-r--r--src/hardware/port.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/hardware/port.c b/src/hardware/port.c
new file mode 100644
index 0000000..46e7f37
--- /dev/null
+++ b/src/hardware/port.c
@@ -0,0 +1,17 @@
+#include "port.h"
+
+#include "string.h"
+
+void port8_init( port8_t *port, uint16_t number )
+{
+ memset( port, 0, sizeof( port8_t ) );
+
+ port->number = number;
+}
+
+void port32_init( port32_t *port, uint16_t number )
+{
+ memset( port, 0, sizeof( port32_t ) );
+
+ port->number = number;
+}