Rev 4343 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4343 | Rev 4344 | ||
---|---|---|---|
Line 73... | Line 73... | ||
73 | extern ipl_t interrupts_enable(void); |
73 | extern ipl_t interrupts_enable(void); |
74 | extern void interrupts_restore(ipl_t ipl); |
74 | extern void interrupts_restore(ipl_t ipl); |
75 | extern ipl_t interrupts_read(void); |
75 | extern ipl_t interrupts_read(void); |
76 | extern void asm_delay_loop(uint32_t t); |
76 | extern void asm_delay_loop(uint32_t t); |
77 | 77 | ||
78 | static inline void pio_write_8(ioport_t port, uint8_t v) |
78 | static inline void pio_write_8(ioport8_t *port, uint8_t v) |
79 | { |
79 | { |
80 | /* XXX */ |
80 | *port = v; |
81 | } |
81 | } |
82 | 82 | ||
83 | static inline uint8_t pio_read_8(ioport_t port) |
83 | static inline void pio_write_16(ioport16_t *port, uint16_t v) |
84 | { |
84 | { |
- | 85 | *port = v; |
|
- | 86 | } |
|
- | 87 | ||
- | 88 | static inline void pio_write_32(ioport32_t *port, uint32_t v) |
|
- | 89 | { |
|
- | 90 | *port = v; |
|
- | 91 | } |
|
- | 92 | ||
- | 93 | static inline uint8_t pio_read_8(ioport8_t *port) |
|
- | 94 | { |
|
85 | return 0; /* XXX */ |
95 | return *port; |
- | 96 | } |
|
- | 97 | ||
- | 98 | static inline uint16_t pio_read_16(ioport16_t *port) |
|
- | 99 | { |
|
- | 100 | return *port; |
|
- | 101 | } |
|
- | 102 | ||
- | 103 | static inline uint32_t pio_read_32(ioport32_t *port) |
|
- | 104 | { |
|
- | 105 | return *port; |
|
86 | } |
106 | } |
87 | 107 | ||
88 | #endif |
108 | #endif |
89 | 109 | ||
90 | /** @} |
110 | /** @} |