M3和M4支持硬件方式的位域操作,而M7内核不支持。
定义:
typedef struct
{
uint32_t tGPRS_TERM_ON : 1;
uint32_t tGPRS_RESET :1;
uint32_t tNRF24L01_CE :1;
uint32_t tNRF905_TX_EN :1;
uint32_t tNRF905_TRX_CE :1;
uint32_t tNRF905_PWR_UP :1;
uint32_t tESP8266_G0 :1;
uint32_t tESP8266_G2 :1;
uint32_t tLED1 :1;
uint32_t tLED2 :1;
uint32_t tLED3 :1;
uint32_t tLED4 :1;
uint32_t tTP_NRST :1;
uint32_t tAD7606_OS0 :1;
uint32_t tAD7606_OS1 :1;
uint32_t tAD7606_OS2 :1;
uint32_t tY50_0 :1;
uint32_t tY50_1 :1;
uint32_t tY50_2 :1;
uint32_t tY50_3 :1;
uint32_t tY50_4 :1;
uint32_t tY50_5 :1;
uint32_t tY50_6 :1;
uint32_t tY50_7 :1;
uint32_t tAD7606_RESET :1;
uint32_t tAD7606_RANGE :1;
uint32_t tY33_2 :1;
uint32_t tY33_3 :1;
uint32_t tY33_4 :1;
uint32_t tY33_5 :1;
uint32_t tY33_6 :1;
uint32_t tY33_7 :1;
}FMCIO_ODR;
FMCIO_ODR *FMC_EXTIO = (FMCIO_ODR *)0x60001000; |