diff options
author | utzig <utzig@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-09-01 00:06:27 +0000 |
---|---|---|
committer | utzig <utzig@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-09-01 00:06:27 +0000 |
commit | 998ddd679e4eab75a1ce797a437edad629a18a44 (patch) | |
tree | 8d82c0fe0d8242bdbaf2462162f8861391563190 | |
parent | 5f454cad47e60e5562b092bb64aec334a375cdb9 (diff) | |
download | ChibiOS-998ddd679e4eab75a1ce797a437edad629a18a44.tar.gz ChibiOS-998ddd679e4eab75a1ce797a437edad629a18a44.tar.bz2 ChibiOS-998ddd679e4eab75a1ce797a437edad629a18a44.zip |
[KINETIS] Improved PORT IRQC definition
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7213 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/ext/CMSIS/KINETIS/kl25z.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/os/ext/CMSIS/KINETIS/kl25z.h b/os/ext/CMSIS/KINETIS/kl25z.h index 16db6ebd4..32168eecf 100644 --- a/os/ext/CMSIS/KINETIS/kl25z.h +++ b/os/ext/CMSIS/KINETIS/kl25z.h @@ -587,7 +587,9 @@ typedef struct /****************************************************************/ /******** Bits definition for PORTx_PCRn register *************/ #define PORTx_PCRn_ISR ((uint32_t)0x01000000) /*!< Interrupt Status Flag */ -#define PORTx_PCRn_IRQC ((uint32_t)0x000F0000) /*!< Interrupt Configuration */ +#define PORTx_PCRn_IRQC_SHIFT 16 +#define PORTx_PCRn_IRQC_MASK ((uint32_t)0x000F0000) /*!< Interrupt Configuration */ +#define PORTx_PCRn_IRQC(x) ((uint32_t)(((uint32_t)(x) << PORTx_PCRn_IRQC_SHIFT) & PORTx_PCRn_IRQC_MASK)) #define PORTx_PCRn_MUX_SHIFT 8 /*!< Pin Mux Control (shift) */ #define PORTx_PCRn_MUX_MASK ((uint32_t)0x00000700) /*!< Pin Mux Control (mask) */ #define PORTx_PCRn_MUX(x) ((uint32_t)(((uint32_t)(x) << PORTx_PCRn_MUX_SHIFT) & PORTx_PCRn_MUX_MASK)) /*!< Pin Mux Control */ |