lpcmanager

Parents 64c26e46c131
Children 06a9156429be
Added functions getByte() and setByte() that are used to get/set data from/to buffer.
  • +10 -0
    LPCBus/MC9.c
  • --- a/LPCBus/MC9.c Thu Oct 27 14:56:23 2016 +0200
    +++ b/LPCBus/MC9.c Thu Nov 03 10:53:38 2016 +0100
    @@ -42,6 +42,16 @@
    return((uint16_t)*buffer);
    }
    +static inline unsigned char getByte(char *buffer)
    +{
    + return((unsigned char)*buffer);
    +}
    +
    +static inline void setByte(char *buffer, unsigned char byte)
    +{
    + *buffer = byte;
    +}
    +
    typedef struct
    {
    unsigned char status; /* Current status of timer - running / expired */