Changeset 1e23e16 in mainline


Ignore:
Timestamp:
2009-02-21T19:18:58Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
00eace3
Parents:
9688513
Message:

PIO functions for arm32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/include/asm.h

    r9688513 r1e23e16  
    4949static inline void pio_write_8(ioport8_t *port, uint8_t v)
    5050{
    51         /* XXX */
     51        *port = v;
     52}
     53
     54static inline void pio_write_16(ioport16_t *port, uint16_t v)
     55{
     56        *port = v;
     57}
     58
     59static inline void pio_write_32(ioport32_t *port, uint32_t v)
     60{
     61        *port = v;
    5262}
    5363
    5464static inline uint8_t pio_read_8(ioport8_t *port)
    5565{
    56         return 0;       /* XXX */
     66        return *port;
     67}
     68
     69static inline uint16_t pio_read_16(ioport16_t *port)
     70{
     71        return *port;
     72}
     73
     74static inline uint32_t pio_read_32(ioport32_t *port)
     75{
     76        return *port;
    5777}
    5878
Note: See TracChangeset for help on using the changeset viewer.