Skip to content

Commit

Permalink
add typedef guard
Browse files Browse the repository at this point in the history
  • Loading branch information
wertarbyte committed Jul 15, 2012
1 parent f4dd32b commit d2c92ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions input.h
Expand Up @@ -5,7 +5,10 @@
#define SRC_TWI_ADC 4
#define SRC_NUNCHUK 5

#ifndef TYPEDEF_ISRC_T
#define TYPEDEF_ISRC_T
typedef uint8_t isrc_t;
#endif

#define SRC_ID(s,n) ( (((s)&0x0F)<<4) | ((n)&0x0F) )

Expand Down

0 comments on commit d2c92ae

Please sign in to comment.