MSPM0C1105_C1106 Driver Library  2.05.01.00
Macros | Functions
dl_core.h File Reference

Detailed Description

CPU Core Driver Library.


#include <stdint.h>
#include <ti/devices/msp/msp.h>
Include dependency graph for dl_core.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DL_CORE_CACHE_ENABLED   (CPUSS_CTL_ICACHE_ENABLE)
 Enables instruction caching on flash access.
 
#define DL_CORE_CACHE_DISABLED   (CPUSS_CTL_ICACHE_DISABLE)
 Disables instruction caching on flash access.
 
#define DL_CORE_PREFETCH_ENABLED   (CPUSS_CTL_PREFETCH_ENABLE)
 Enables instruction prefetch to Flash.
 
#define DL_CORE_PREFETCH_DISABLED   (CPUSS_CTL_PREFETCH_DISABLE)
 Disables instruction prefetch to Flash.
 
#define DL_CORE_LITERAL_CACHE_ENABLED   (CPUSS_CTL_LITEN_ENABLE)
 Enables caching and prefetching of literals. This is set only if the ICACHE or PREFETCH bits have been set respectively.
 
#define DL_CORE_LITERAL_CACHE_DISABLED   (CPUSS_CTL_LITEN_DISABLE)
 Disables caching and prefetching of literals.
 
#define delay_cycles(cycles)   DL_Common_delayCycles(cycles)
 Alias for DL_Common_delayCycles.
 

Functions

__STATIC_INLINE uint32_t DL_CORE_getImplementer (void)
 Get the implementer code for the processor. More...
 
__STATIC_INLINE uint32_t DL_CORE_getVariant (void)
 Get the major revision number 'n' in the 'npm' revision status. More...
 
__STATIC_INLINE uint32_t DL_CORE_getArchitecture (void)
 Get the architecture of the processor. More...
 
__STATIC_INLINE uint32_t DL_CORE_getPartNumber (void)
 Get part number of the processor (not the device) More...
 
__STATIC_INLINE uint32_t DL_CORE_getRevision (void)
 Get the minor revision number 'm' in the 'npm' revision status. More...
 
__STATIC_INLINE void DL_CORE_configInstruction (uint32_t icache, uint32_t prefetch, uint32_t litCache)
 Configures instruction caching in flash accesses and instruction prefetch to flash. More...
 
__STATIC_INLINE uint32_t DL_CORE_getInstructionConfig (void)
 Returns instruction caching, prefetch, and literal cache configuration. More...
 

Function Documentation

§ DL_CORE_getImplementer()

__STATIC_INLINE uint32_t DL_CORE_getImplementer ( void  )

Get the implementer code for the processor.

Returns
The implementer code
Return values
0x41for ARM

§ DL_CORE_getVariant()

__STATIC_INLINE uint32_t DL_CORE_getVariant ( void  )

Get the major revision number 'n' in the 'npm' revision status.

Returns
The major revision number
Return values
0x00for revision 0

§ DL_CORE_getArchitecture()

__STATIC_INLINE uint32_t DL_CORE_getArchitecture ( void  )

Get the architecture of the processor.

Returns
Value that defines the architecture of the processor
Return values
0x0Cfor ARMv6-M architecture

§ DL_CORE_getPartNumber()

__STATIC_INLINE uint32_t DL_CORE_getPartNumber ( void  )

Get part number of the processor (not the device)

Returns
Value that defines the processor
Return values
0x0C60for Cortex-M0+

§ DL_CORE_getRevision()

__STATIC_INLINE uint32_t DL_CORE_getRevision ( void  )

Get the minor revision number 'm' in the 'npm' revision status.

Returns
The minor revision number
Return values
0x01for patch 1

§ DL_CORE_configInstruction()

__STATIC_INLINE void DL_CORE_configInstruction ( uint32_t  icache,
uint32_t  prefetch,
uint32_t  litCache 
)

§ DL_CORE_getInstructionConfig()

__STATIC_INLINE uint32_t DL_CORE_getInstructionConfig ( void  )
© Copyright 1995-2025, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale