Removed unused defines IO_REGx and IO_ROMx (#527)

This commit is contained in:
Stephan 2023-02-27 19:12:59 +01:00 committed by GitHub
commit dd6aca03f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 24 deletions

View file

@ -1660,7 +1660,7 @@ int main() {
**************************************************************************/
void sim_irq_trigger(uint32_t sel) {
*(IO_REG32 (0xFF000000)) = sel;
*((volatile uint32_t*) (0xFF000000)) = sel;
}

View file

@ -698,29 +698,6 @@ typedef volatile struct __attribute__((packed,aligned(4))) {
// ############################################################################################################################
/**********************************************************************//**
* @name Helper macros for easy memory-mapped register access (DEPRECATED!)
**************************************************************************/
/**@{*/
/** memory-mapped byte (8-bit) read/write register */
#define IO_REG8 (volatile uint8_t*)
/** memory-mapped half-word (16-bit) read/write register */
#define IO_REG16 (volatile uint16_t*)
/** memory-mapped word (32-bit) read/write register */
#define IO_REG32 (volatile uint32_t*)
/** memory-mapped double-word (64-bit) read/write register */
#define IO_REG64 (volatile uint64_t*)
/** memory-mapped byte (8-bit) read-only register */
#define IO_ROM8 (const volatile uint8_t*)
/** memory-mapped half-word (16-bit) read-only register */
#define IO_ROM16 (const volatile uint16_t*)
/** memory-mapped word (32-bit) read-only register */
#define IO_ROM32 (const volatile uint32_t*)
/** memory-mapped double-word (64-bit) read-only register */
#define IO_ROM64 (const volatile uint64_t*)
/**@}*/
/**********************************************************************//**
* @name IO Device: Custom Functions Subsystem (CFS)
**************************************************************************/