NOVA
Stripped down NOVA kernel for the OSY course
Loading...
Searching...
No Matches
Io Class Reference

Static Public Member Functions

template<typename T>
static ALWAYS_INLINE unsigned in (unsigned port)
template<typename T>
static ALWAYS_INLINE void out (unsigned port, T val)

Member Function Documentation

◆ in()

template<typename T>
ALWAYS_INLINE unsigned Io::in ( unsigned port)
inlinestatic
29 {
30 T val;
31 asm volatile ("in %w1, %0" : "=a" (val) : "Nd" (port));
32 return val;
33 }

◆ out()

template<typename T>
ALWAYS_INLINE void Io::out ( unsigned port,
T val )
inlinestatic
38 {
39 asm volatile ("out %0, %w1" : : "a" (val), "Nd" (port));
40 }

The documentation for this class was generated from the following file: