diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-10 21:26:24 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-10 21:26:24 +0200 |
commit | d6d1bdfefafff50b7b6d15d218c0a188570be541 (patch) | |
tree | 15ee8de727d0be5d126efda146b2879de0a72773 /src/hardware/port.c | |
parent | eea5bf4b859eb56c5772c58ca54937a90a10e7ee (diff) | |
download | abaos-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.c | 17 |
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; +} |