diff options
author | Keith Packard <keithp@keithp.com> | 2011-04-01 14:03:25 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-04-01 14:03:25 -0700 |
commit | ce18eaa28b1385c962c09459cbc5f20e234d9ad5 (patch) | |
tree | aafe1f7635d68da2b48f275d7e8a1dbed1dd90ba /src | |
parent | 8e74cf6d1c70a7a17d01c20f6831571245392498 (diff) |
altos: Add P2SEL_*_MASK defines to cc1111.h
These are used to avoid having the code "know" which selections are 1
and which are 0 bits.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/cc1111.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cc1111.h b/src/cc1111.h index effb1a68..a72d7416 100644 --- a/src/cc1111.h +++ b/src/cc1111.h @@ -565,14 +565,19 @@ sfr at 0xF5 P2SEL; #define P2SEL_PRI3P1_MASK (1 << 6) #define P2SEL_PRI2P1_USART1 (0 << 5) #define P2SEL_PRI2P1_TIMER3 (1 << 5) +#define P2SEL_PRI2P1_MASK (1 << 5) #define P2SEL_PRI1P1_TIMER1 (0 << 4) #define P2SEL_PRI1P1_TIMER4 (1 << 4) +#define P2SEL_PRI1P1_MASK (1 << 4) #define P2SEL_PRI0P1_USART0 (0 << 3) #define P2SEL_PRI0P1_TIMER1 (1 << 3) +#define P2SEL_PRI0P1_MASK (1 << 3) #define P2SEL_SELP2_4_GPIO (0 << 2) #define P2SEL_SELP2_4_PERIPHERAL (1 << 2) +#define P2SEL_SELP2_4_MASK (1 << 2) #define P2SEL_SELP2_3_GPIO (0 << 1) #define P2SEL_SELP2_3_PERIPHERAL (1 << 1) +#define P2SEL_SELP2_3_MASK (1 << 1) #define P2SEL_SELP2_0_GPIO (0 << 0) #define P2SEL_SELP2_0_PERIPHERAL (1 << 0) #define P2SEL_SELP2_0_MASK (1 << 0) |