Add interface to wait for IO port changes.

This commit is contained in:
Jonas 'Sortie' Termansen 2015-01-16 01:18:47 +01:00
parent 39d8894fc0
commit eb11613da6
1 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
/*******************************************************************************
Copyright(C) Jonas 'Sortie' Termansen 2014.
Copyright(C) Jonas 'Sortie' Termansen 2014, 2015.
This file is part of Sortix.
@ -78,6 +78,9 @@ static inline uint32_t inport32(uint16_t port)
return result;
}
bool wait_inport8_clear(uint16_t ioport, uint8_t bits, bool any, unsigned int msecs);
bool wait_inport8_set(uint16_t ioport, uint8_t bits, bool any, unsigned int msecs);
} // namespace Sortix
#endif