From 13435bfc961fd2abd5f688ce37e94d5f96b0873b Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 22 Jul 2017 22:17:18 +0200 Subject: added 16-bit port class --- src/hardware/port.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/hardware/port.c') 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 ) ); -- cgit v1.2.3-54-g00ecf