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 44... | Line 44... | ||
| 44 | /** No such instruction on ARM to sleep CPU. */ |
44 | /** No such instruction on ARM to sleep CPU. */ |
| 45 | static inline void cpu_sleep(void) |
45 | static inline void cpu_sleep(void) |
| 46 | { |
46 | { |
| 47 | } |
47 | } |
| 48 | 48 | ||
| 49 | static inline void pio_write_8(ioport_t port, uint8_t v) |
49 | static inline void pio_write_8(ioport8_t *port, uint8_t v) |
| 50 | { |
50 | { |
| 51 | /* XXX */ |
51 | *port = v; |
| 52 | } |
52 | } |
| 53 | 53 | ||
| 54 | static inline uint8_t pio_read_8(ioport_t port) |
54 | static inline void pio_write_16(ioport16_t *port, uint16_t v) |
| 55 | { |
55 | { |
| - | 56 | *port = v; |
|
| - | 57 | } |
|
| - | 58 | ||
| - | 59 | static inline void pio_write_32(ioport32_t *port, uint32_t v) |
|
| - | 60 | { |
|
| - | 61 | *port = v; |
|
| - | 62 | } |
|
| - | 63 | ||
| - | 64 | static inline uint8_t pio_read_8(ioport8_t *port) |
|
| - | 65 | { |
|
| 56 | return 0; /* XXX */ |
66 | return *port; |
| - | 67 | } |
|
| - | 68 | ||
| - | 69 | static inline uint16_t pio_read_16(ioport16_t *port) |
|
| - | 70 | { |
|
| - | 71 | return *port; |
|
| - | 72 | } |
|
| - | 73 | ||
| - | 74 | static inline uint32_t pio_read_32(ioport32_t *port) |
|
| - | 75 | { |
|
| - | 76 | return *port; |
|
| 57 | } |
77 | } |
| 58 | 78 | ||
| 59 | /** Return base address of current stack. |
79 | /** Return base address of current stack. |
| 60 | * |
80 | * |
| 61 | * Return the base address of the current stack. |
81 | * Return the base address of the current stack. |