Changed SHAL_Peripheral to take in a void* of any peripheral struct, and added SHAL_Peripheral_Register for individual registers
This commit is contained in:
@@ -14,6 +14,11 @@
|
||||
//Universal structs and defines ---------------------------
|
||||
|
||||
struct SHAL_Peripheral {
|
||||
void* registers;
|
||||
unsigned long global_offset;
|
||||
};
|
||||
|
||||
struct SHAL_Peripheral_Register {
|
||||
volatile uint32_t* reg;
|
||||
unsigned long offset;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user