Macros
hw_memmap.h File Reference

Go to the source code of this file.

Macros

#define __DRIVERLIB_MSP432P4XX_FAMILY__
 
#define STATUS_SUCCESS   0x01
 
#define STATUS_FAIL   0x00
 
#define HWREG8(x)   (*((volatile uint8_t *)(x)))
 
#define HWREG16(x)   (*((volatile uint16_t *)(x)))
 
#define HWREG32(x)   (*((volatile uint32_t *)(x)))
 
#define HWREG(x)   (HWREG16(x))
 
#define HWREG8_L(x)   (*((volatile uint8_t *)((uint8_t *)&x)))
 
#define HWREG8_H(x)   (*((volatile uint8_t *)(((uint8_t *)&x)+1)))
 
#define HWREG16_L(x)   (*((volatile uint16_t *)((uint16_t *)&x)))
 
#define HWREG16_H(x)   (*((volatile uint16_t *)(((uint16_t *)&x)+1)))
 
#define __MAIN_MEMORY_START__   (0x00000000)
 
#define __MAIN_MEMORY_END__   (0x0003FFFF)
 
#define __BSL_MEMORY_START__   (0x00202000)
 
#define __BSL_MEMORY_END__   (0x00203FFF)
 
#define __SRAM_START__   (0x20000000)
 
#define __SRAM_END__   (0x2000FFFF)
 
#define HWREGBIT8(x, b)   (HWREG8(((uint32_t)(x) & 0xF0000000) | 0x02000000 | (((uint32_t)(x) & 0x000FFFFF) << 5) | ((b) << 2)))
 
#define HWREGBIT16(x, b)   (HWREG16(((uint32_t)(x) & 0xF0000000) | 0x02000000 | (((uint32_t)(x) & 0x000FFFFF) << 5) | ((b) << 2)))
 
#define HWREGBIT32(x, b)   (HWREG32(((uint32_t)(x) & 0xF0000000) | 0x02000000 | (((uint32_t)(x) & 0x000FFFFF) << 5) | ((b) << 2)))
 

Macro Definition Documentation

#define __DRIVERLIB_MSP432P4XX_FAMILY__
#define STATUS_SUCCESS   0x01
#define STATUS_FAIL   0x00
#define HWREG8 (   x)    (*((volatile uint8_t *)(x)))
#define HWREG16 (   x)    (*((volatile uint16_t *)(x)))
#define HWREG32 (   x)    (*((volatile uint32_t *)(x)))
#define HWREG (   x)    (HWREG16(x))
#define HWREG8_L (   x)    (*((volatile uint8_t *)((uint8_t *)&x)))
#define HWREG8_H (   x)    (*((volatile uint8_t *)(((uint8_t *)&x)+1)))
#define HWREG16_L (   x)    (*((volatile uint16_t *)((uint16_t *)&x)))
#define HWREG16_H (   x)    (*((volatile uint16_t *)(((uint16_t *)&x)+1)))
#define __MAIN_MEMORY_START__   (0x00000000)
#define __MAIN_MEMORY_END__   (0x0003FFFF)

Main Flash memory end address

Referenced by FlashCtl_eraseSector(), FlashCtl_initiateSectorErase(), and FlashCtl_verifyMemory().

#define __BSL_MEMORY_START__   (0x00202000)

BSL memory start address

#define __BSL_MEMORY_END__   (0x00203FFF)

BSL memory end address

#define __SRAM_START__   (0x20000000)

SRAM memory start address

#define __SRAM_END__   (0x2000FFFF)

SRAM memory end address

#define HWREGBIT8 (   x,
 
)    (HWREG8(((uint32_t)(x) & 0xF0000000) | 0x02000000 | (((uint32_t)(x) & 0x000FFFFF) << 5) | ((b) << 2)))
#define HWREGBIT16 (   x,
 
)    (HWREG16(((uint32_t)(x) & 0xF0000000) | 0x02000000 | (((uint32_t)(x) & 0x000FFFFF) << 5) | ((b) << 2)))
#define HWREGBIT32 (   x,
 
)    (HWREG32(((uint32_t)(x) & 0xF0000000) | 0x02000000 | (((uint32_t)(x) & 0x000FFFFF) << 5) | ((b) << 2)))

Copyright 2016, Texas Instruments Incorporated