Fixed GNU extension issue
- Removed the anonamous structure crap.
This commit is contained in:
parent
7e0b1e3244
commit
f88d650035
1 changed files with 8 additions and 8 deletions
|
|
@ -218,8 +218,8 @@ typedef struct
|
||||||
{
|
{
|
||||||
__I uint16_t REVID;
|
__I uint16_t REVID;
|
||||||
__I uint16_t DEVID;
|
__I uint16_t DEVID;
|
||||||
};
|
}s;
|
||||||
};
|
}u;
|
||||||
} INFO_TypeDef;
|
} INFO_TypeDef;
|
||||||
|
|
||||||
/* General Purpose I/O */
|
/* General Purpose I/O */
|
||||||
|
|
@ -257,7 +257,7 @@ typedef union {
|
||||||
GPIO_CFGLR_PIN_MODE_Typedef PIN5 :4;
|
GPIO_CFGLR_PIN_MODE_Typedef PIN5 :4;
|
||||||
GPIO_CFGLR_PIN_MODE_Typedef PIN6 :4;
|
GPIO_CFGLR_PIN_MODE_Typedef PIN6 :4;
|
||||||
GPIO_CFGLR_PIN_MODE_Typedef PIN7 :4;
|
GPIO_CFGLR_PIN_MODE_Typedef PIN7 :4;
|
||||||
};
|
}s;
|
||||||
} GPIO_CFGLR_t;
|
} GPIO_CFGLR_t;
|
||||||
typedef union {
|
typedef union {
|
||||||
uint32_t __FULL;
|
uint32_t __FULL;
|
||||||
|
|
@ -271,7 +271,7 @@ typedef union {
|
||||||
uint32_t IDR6 :1;
|
uint32_t IDR6 :1;
|
||||||
uint32_t IDR7 :1;
|
uint32_t IDR7 :1;
|
||||||
uint32_t :24;
|
uint32_t :24;
|
||||||
};
|
}s;
|
||||||
} GPIO_INDR_t;
|
} GPIO_INDR_t;
|
||||||
typedef union {
|
typedef union {
|
||||||
uint32_t __FULL;
|
uint32_t __FULL;
|
||||||
|
|
@ -285,7 +285,7 @@ typedef union {
|
||||||
uint32_t ODR6 :1;
|
uint32_t ODR6 :1;
|
||||||
uint32_t ODR7 :1;
|
uint32_t ODR7 :1;
|
||||||
uint32_t :24;
|
uint32_t :24;
|
||||||
};
|
}s;
|
||||||
} GPIO_OUTDR_t;
|
} GPIO_OUTDR_t;
|
||||||
typedef union {
|
typedef union {
|
||||||
uint32_t __FULL;
|
uint32_t __FULL;
|
||||||
|
|
@ -308,7 +308,7 @@ typedef union {
|
||||||
uint32_t BR6 :1;
|
uint32_t BR6 :1;
|
||||||
uint32_t BR7 :1;
|
uint32_t BR7 :1;
|
||||||
uint32_t :8;
|
uint32_t :8;
|
||||||
};
|
}s;
|
||||||
} GPIO_BSHR_t;
|
} GPIO_BSHR_t;
|
||||||
typedef union {
|
typedef union {
|
||||||
uint32_t __FULL;
|
uint32_t __FULL;
|
||||||
|
|
@ -322,7 +322,7 @@ typedef union {
|
||||||
uint32_t BR6 :1;
|
uint32_t BR6 :1;
|
||||||
uint32_t BR7 :1;
|
uint32_t BR7 :1;
|
||||||
uint32_t :24;
|
uint32_t :24;
|
||||||
};
|
}s;
|
||||||
} GPIO_BCR_t;
|
} GPIO_BCR_t;
|
||||||
typedef union {
|
typedef union {
|
||||||
uint32_t __FULL;
|
uint32_t __FULL;
|
||||||
|
|
@ -337,7 +337,7 @@ typedef union {
|
||||||
uint32_t LCK7 :1;
|
uint32_t LCK7 :1;
|
||||||
uint32_t LCKK :1;
|
uint32_t LCKK :1;
|
||||||
uint32_t :23;
|
uint32_t :23;
|
||||||
};
|
}s;
|
||||||
} GPIO_LCKR_t;
|
} GPIO_LCKR_t;
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue