G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
g32r4xx_ddl_cortex.h File Reference

Header file of CORTEX DDL module. More...

#include "g32r4xx.h"

Go to the source code of this file.

Macros

#define DDL_SYSTICK_CLKSOURCE_HCLK_DIV8   0x00000000U
#define DDL_SYSTICK_CLKSOURCE_HCLK   SysTick_CTRL_CLKSOURCE_Msk
#define DDL_HANDLER_FAULT_USG   SCB_SHCSR_USGFAULTENA_Msk
#define DDL_HANDLER_FAULT_BUS   SCB_SHCSR_BUSFAULTENA_Msk
#define DDL_HANDLER_FAULT_MEM   SCB_SHCSR_MEMFAULTENA_Msk

Functions

__STATIC_INLINE uint32_t DDL_SYSTICK_IsActiveCounterFlag (void)
 This function checks if the Systick counter flag is active or not.
__STATIC_INLINE void DDL_SYSTICK_SetClkSource (uint32_t Source)
 Configures the SysTick clock source.
__STATIC_INLINE uint32_t DDL_SYSTICK_GetClkSource (void)
 Get the SysTick clock source.
__STATIC_INLINE void DDL_SYSTICK_EnableIT (void)
 Enable SysTick exception request.
__STATIC_INLINE void DDL_SYSTICK_DisableIT (void)
 Disable SysTick exception request.
__STATIC_INLINE uint32_t DDL_SYSTICK_IsEnabledIT (void)
 Checks if the SYSTICK interrupt is enabled or disabled.
__STATIC_INLINE void DDL_LPM_EnableSleep (void)
 Processor uses sleep as its low power mode.
__STATIC_INLINE void DDL_LPM_EnableDeepSleep (void)
 Processor uses deep sleep as its low power mode.
__STATIC_INLINE void DDL_LPM_EnableSleepOnExit (void)
 Configures sleep-on-exit when returning from Handler mode to Thread mode.
__STATIC_INLINE void DDL_LPM_DisableSleepOnExit (void)
 Do not sleep when returning to Thread mode.
__STATIC_INLINE void DDL_LPM_EnableEventOnPend (void)
 Enabled events and all interrupts, including disabled interrupts, can wakeup the processor.
__STATIC_INLINE void DDL_LPM_DisableEventOnPend (void)
 Only enabled interrupts or events can wakeup the processor, disabled interrupts are excluded.
__STATIC_INLINE void DDL_HANDLER_EnableFault (uint32_t Fault)
 Enable a fault in System handler control register (SHCSR).
__STATIC_INLINE void DDL_HANDLER_DisableFault (uint32_t Fault)
 Disable a fault in System handler control register (SHCSR).
__STATIC_INLINE uint32_t DDL_CPUID_GetImplementer (void)
 Get Implementer code.
__STATIC_INLINE uint32_t DDL_CPUID_GetVariant (void)
 Get Variant number (The r value in the rnpn product revision identifier).
__STATIC_INLINE uint32_t DDL_CPUID_GetConstant (void)
 Get Constant number.
__STATIC_INLINE uint32_t DDL_CPUID_GetParNo (void)
 Get Part number.
__STATIC_INLINE uint32_t DDL_CPUID_GetRevision (void)
 Get Revision number (The p value in the rnpn product revision identifier, indicates patch release).

Detailed Description

Header file of CORTEX DDL module.

==============================================================================
                   ##### How to use this driver #####
==============================================================================
  [..]
  The LL CORTEX driver contains a set of generic APIs that can be
  used by user:
    (+) SYSTICK configuration used by DDL_mDelay and DDL_Init1msTick
        functions
    (+) Low power mode configuration (SCB register of Cortex-MCU)
    (+) MPU API to configure and enable regions
        (MPU services provided only on some devices)
    (+) API to access to MCU info (CPUID register)
    (+) API to enable fault handler (SHCSR accesses)
Attention

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

The original code has been modified by Geehy Semiconductor.

Copyright (c) 2017 STMicroelectronics. Copyright (C) 2025 Geehy Semiconductor. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file g32r4xx_ddl_cortex.h.