Register definitions: get rid of some macro magic that doesn't help much
Instead of e.g. GPIO.DATA.GPIO_08, you now use GPIO->DATA.GPIO_08.
This commit is contained in:
parent
bf94b6d3bd
commit
ac2cac1e1d
5 changed files with 17 additions and 25 deletions
|
@ -218,8 +218,7 @@ struct CRM_struct {
|
|||
uint32_t reserved6;
|
||||
};
|
||||
|
||||
static volatile struct CRM_struct * const _CRM = (void *) (CRM_BASE);
|
||||
#define CRM (*_CRM)
|
||||
static volatile struct CRM_struct * const CRM = (void *) (CRM_BASE);
|
||||
|
||||
|
||||
/* Old register definitions, for compatibility */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue