SmartSnippets DA1459x SDK
Data Structures | Functions

System Driver header file. More...

#include "sdk_defs.h"
#include "hw_pd.h"
#include <hw_memctrl.h>

Go to the source code of this file.

Data Structures

struct  hw_sys_reg_config_t
 Register configuration. More...
 

Functions

__STATIC_INLINE void hw_sys_set_cache_retained (void)
 Enable Cache retainability. More...
 
__STATIC_INLINE void hw_sys_setup_retmem (void)
 Setup the Retention Memory configuration. More...
 
__STATIC_INLINE void hw_sys_no_retmem (void)
 Disable memory retention. More...
 
__STATIC_FORCEINLINE void hw_sys_track_reset_type (void)
 Prepare RESET type tracking.
 
__STATIC_INLINE void hw_sys_enable_reset_on_wup (void)
 Activate the "Reset on wake-up" functionality. More...
 
void hw_sys_set_preferred_values (HW_PD pd)
 Set the preferred settings of a power domain. More...
 
void hw_sys_setup_sw_cursor (void)
 Set the GPIO used for the SW cursor to High-Z. More...
 
void hw_sys_trigger_sw_cursor (void)
 Triggers the GPIO used for the SW cursor. More...
 
__STATIC_FORCEINLINE void hw_sys_enable_debugger (void)
 Enable the debugger. More...
 
__STATIC_FORCEINLINE void hw_sys_disable_debugger (void)
 Disable the debugger. More...
 
__STATIC_FORCEINLINE bool hw_sys_is_debugger_attached (void)
 Check if the debugger is attached. More...
 
__STATIC_FORCEINLINE void hw_sys_enable_hibernation (void)
 Enable hibernation mode. More...
 
__STATIC_FORCEINLINE void hw_sys_enable_cmac_cache_ram (void)
 Enable CMAC cache RAM. More...
 
__STATIC_FORCEINLINE void hw_sys_disable_cmac_cache_ram (void)
 Disable CMAC cache RAM. More...
 
__ALWAYS_RETAINED_CODE void hw_sys_assert_trigger_gpio (void)
 Trigger a GPIO when ASSERT_WARNING() or ASSERT_ERROR() hits. More...
 
void hw_sys_enable_cmac_mem_protection (void)
 Enables read only protection in CMAC code and data. More...
 
void hw_sys_enable_ivt_mem_protection (void)
 Enables "Read-only by any privilege level" and "execute_never" memory protection of IVT. More...
 
__STATIC_FORCEINLINE void hw_sys_set_por_timer (uint8_t time)
 Set POR-trigger minimum duration. More...
 
bool hw_sys_hw_bsr_try_lock (HW_BSR_MASTER_ID hw_bsr_master_id, HW_BSR_POS pos)
 Try to lock a BSR entry. More...
 
void hw_sys_hw_bsr_unlock (HW_BSR_MASTER_ID hw_bsr_master_id, HW_BSR_POS pos)
 Unlock a BSR entry. More...
 
void hw_sys_sw_bsr_init (void)
 Initializes the software busy status register.
 
bool hw_sys_sw_bsr_try_acquire (SW_BSR_MASTER_ID sw_bsr_master_id, uint32_t periph_id)
 Tries to acquire exclusive access to a specific peripheral when it is also used by other masters (CMAC). More...
 
bool hw_sys_sw_bsr_acquired (SW_BSR_MASTER_ID sw_bsr_master_id, uint32_t periph_id)
 Checks if exclusive access to a specific peripheral has been acquired from a given master. More...
 
void hw_sys_sw_bsr_release (SW_BSR_MASTER_ID sw_bsr_master_id, uint32_t periph_id)
 Releases the exclusive access from a specific peripheral so it it can be also used by other masters (CMAC). More...
 
void hw_sys_pd_com_enable (void)
 Enables the COM power domain. More...
 
void hw_sys_pd_com_disable (void)
 Disables the COM power domain. If it has not been enabled by any other modules, it will be disabled.
 
void hw_sys_pd_periph_enable (void)
 Enables the PERIPH power domain. More...
 
void hw_sys_pd_periph_disable (void)
 Disables the PERIPH power domain. If it has not been enabled by any other modules, it will be disabled.
 
__RETAINED_CODE void hw_sys_pd_audio_enable (void)
 Enables the AUDIO power domain. More...
 
__RETAINED_CODE void hw_sys_pd_audio_disable (void)
 Disables the AUDIO power domain. If it has not been enabled by any other modules, it will be disabled.
 
uint32_t hw_sys_reg_add_config (const hw_sys_reg_config_t *config, uint32_t num_of_entries)
 Add register configuration entries in the system register configuration table. More...
 
hw_sys_reg_config_thw_sys_reg_get_config (uint32_t index)
 Get a register configuration entry. More...
 
void hw_sys_reg_modify_config (uint32_t index, __IO uint32_t *addr, uint32_t value)
 Modify a register configuration entry. More...
 
uint32_t * hw_sys_reg_get_num_of_config_entries (void)
 Get the number of entries in the system register configuration table. More...
 
__RETAINED_CODE void hw_sys_reg_apply_config (void)
 Apply system register configuration. More...
 
void hw_sys_apply_default_values (void)
 Checks whether there are register entries in CS for the following registers. More...
 

Detailed Description

System Driver header file.

Copyright (C) 2017-2023 Renesas Electronics Corporation and/or its affiliates. All rights reserved. Confidential Information.

This software ("Software") is supplied by Renesas Electronics Corporation and/or its affiliates ("Renesas"). Renesas grants you a personal, non-exclusive, non-transferable, revocable, non-sub-licensable right and license to use the Software, solely if used in or together with Renesas products. You may make copies of this Software, provided this copyright notice and disclaimer ("Notice") is included in all such copies. Renesas reserves the right to change or discontinue the Software at any time without notice.

THE SOFTWARE IS PROVIDED "AS IS". RENESAS DISCLAIMS ALL WARRANTIES OF ANY KIND, WHETHER EXPRESS, IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. TO THE MAXIMUM EXTENT PERMITTED UNDER LAW, IN NO EVENT SHALL RENESAS BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE, EVEN IF RENESAS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. USE OF THIS SOFTWARE MAY BE SUBJECT TO TERMS AND CONDITIONS CONTAINED IN AN ADDITIONAL AGREEMENT BETWEEN YOU AND RENESAS. IN CASE OF CONFLICT BETWEEN THE TERMS OF THIS NOTICE AND ANY SUCH ADDITIONAL LICENSE AGREEMENT, THE TERMS OF THE AGREEMENT SHALL TAKE PRECEDENCE. BY CONTINUING TO USE THIS SOFTWARE, YOU AGREE TO THE TERMS OF THIS NOTICE.IF YOU DO NOT AGREE TO THESE TERMS, YOU ARE NOT PERMITTED TO USE THIS SOFTWARE.