SmartSnippets DA1459x SDK
Typedefs | Enumerations | Functions

Clock Driver header file. More...

#include "sdk_defs.h"
#include "hw_clk_da1459x.h"

Go to the source code of this file.

Typedefs

typedef enum lp_clk_is_type lp_clk_is_t
 The type of the LP clock.
 
typedef enum ahbdiv_type ahb_div_t
 The AMBA High-Performance Bus (AHB) clock divider.
 
typedef enum apbdiv_type apb_div_t
 The AMBA Peripheral Bus (APB) clock divider.
 

Enumerations

enum  lp_clk_is_type
 The type of the LP clock.
 
enum  ahbdiv_type {
  ahb_div1 = 0, ahb_div2, ahb_div4, ahb_div8,
  ahb_div16
}
 The AMBA High-Performance Bus (AHB) clock divider. More...
 
enum  apbdiv_type { apb_div1 = 0, apb_div2, apb_div4, apb_div8 }
 The AMBA Peripheral Bus (APB) clock divider. More...
 

Functions

__STATIC_FORCEINLINE ahb_div_t hw_clk_get_hclk_div (void)
 Get the divider of the AMBA High Speed Bus. More...
 
__STATIC_FORCEINLINE apb_div_t hw_clk_get_pclk_div (void)
 Get the divider of the AMBA Peripheral Bus. More...
 
__STATIC_FORCEINLINE void hw_clk_set_pclk_div (apb_div_t div)
 Set the divider of the AMBA Peripheral Bus. More...
 
__STATIC_INLINE void hw_clk_set_lpclk (lp_clk_is_t mode)
 Set Low Power clock. More...
 
__STATIC_INLINE bool hw_clk_lpclk_is (lp_clk_is_t clk)
 Check whether a clock is the Low Power clock. More...
 
__STATIC_INLINE lp_clk_is_t hw_clk_get_lpclk (void)
 Return the clock used as the Low Power clock. More...
 
__STATIC_INLINE void hw_clk_configure_lpclk (lp_clk_is_t clk)
 Configure a Low Power clock. This must be done only once since the register is retained. More...
 
__STATIC_INLINE void hw_clk_enable_lpclk (lp_clk_is_t clk)
 Activate a Low Power clock. More...
 
__STATIC_INLINE void hw_clk_disable_lpclk (lp_clk_is_t clk)
 Deactivate a Low Power clock. More...
 
__STATIC_FORCEINLINE uint32_t hw_clk_get_sys_clk_freq (sys_clk_t sys_clk)
 Get the system clock frequency. More...
 
__RETAINED_CODE void hw_clk_delay_usec (uint32_t usec)
 Add delay of N usecs. More...
 
__RETAINED_CODE uint32_t hw_clk_get_sysclk_freq (void)
 Get current system clock's frequency. More...
 

Detailed Description

Clock Driver header file.

Copyright (C) 2015-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.