bsp/mpc55xx: Add defines for MPC5668

This commit is contained in:
Sebastian Huber
2014-08-25 09:30:53 +02:00
parent 0a31483901
commit f3237a3c3b
2 changed files with 13 additions and 7 deletions

View File

@@ -5184,7 +5184,7 @@ extern "C" {
} B;
} EISR; /* External Interrupt Status Register */
union {
union SIU_DIRER_tag {
uint32_t R;
struct {
uint32_t:16;
@@ -5207,7 +5207,7 @@ extern "C" {
} B;
} DIRER; /* DMA/Interrupt Request Enable Register */
union {
union SIU_DIRSR_tag {
uint32_t R;
struct {
uint32_t:30;
@@ -5239,7 +5239,7 @@ extern "C" {
} B;
} OSR; /* Overrun Status Register */
union {
union SIU_ORER_tag {
uint32_t R;
struct {
uint32_t:16;
@@ -5262,7 +5262,7 @@ extern "C" {
} B;
} ORER; /* Overrun Request Enable Register */
union {
union SIU_IREER_tag {
uint32_t R;
struct {
uint32_t NREE0:1;
@@ -5287,7 +5287,7 @@ extern "C" {
} B;
} IREER; /* External IRQ Rising-Edge Event Enable Register */
union {
union SIU_IFEER_tag {
uint32_t R;
struct {
uint32_t NFEE0:1;
@@ -5312,7 +5312,7 @@ extern "C" {
} B;
} IFEER; /* External IRQ Falling-Edge Event Enable Register */
union {
union SIU_IDFR_tag {
uint32_t R;
struct {
uint32_t:28;
@@ -5354,7 +5354,7 @@ extern "C" {
uint16_t PA:2;
uint16_t OBE:1;
uint16_t IBE:1;
uint16_t:2;
uint16_t DSC:2;
uint16_t ODE:1;
uint16_t HYS:1;
uint16_t SRC:2;

View File

@@ -223,6 +223,12 @@ extern "C" {
#define MPC55XX_IRQ_PIT_CHANNEL(ch) \
((unsigned) (ch) < 9U ? 148U + (ch) : MPC55XX_IRQ_INVALID)
/* SIU external interrupts */
#define MPC55XX_IRQ_SIU_EXTERNAL_0 53U
#define MPC55XX_IRQ_SIU_EXTERNAL_1 54U
#define MPC55XX_IRQ_SIU_EXTERNAL_2 55U
#define MPC55XX_IRQ_SIU_EXTERNAL_3 56U
/* eMIOS */
#define MPC55XX_IRQ_EMIOS(ch) \
((unsigned) (ch) < 24U ? 58U + (ch) : \