diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-07-22 22:17:18 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-07-22 22:17:18 +0200 |
commit | 13435bfc961fd2abd5f688ce37e94d5f96b0873b (patch) | |
tree | b295a28626d56e244215b04d71173967a4239bc6 /src/hardware/port.c | |
parent | 107de40014ade48725b991dbe46f5d172da1078b (diff) | |
download | abaos-13435bfc961fd2abd5f688ce37e94d5f96b0873b.tar.gz abaos-13435bfc961fd2abd5f688ce37e94d5f96b0873b.tar.bz2 |
added 16-bit port class
Diffstat (limited to 'src/hardware/port.c')
-rw-r--r-- | src/hardware/port.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/hardware/port.c b/src/hardware/port.c index 46e7f37..aa92b82 100644 --- a/src/hardware/port.c +++ b/src/hardware/port.c @@ -9,6 +9,13 @@ void port8_init( port8_t *port, uint16_t number ) port->number = number; } +void port16_init( port16_t *port, uint16_t number ) +{ + memset( port, 0, sizeof( port16_t ) ); + + port->number = number; +} + void port32_init( port32_t *port, uint16_t number ) { memset( port, 0, sizeof( port32_t ) ); |