<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[YTM32B1MD14低功耗问题]]></title><description><![CDATA[<p dir="auto">低功耗配置为standby模式，文档说standby模式下要配置GPIO时钟源为SXOSC才能正常实现唤醒，为什么我没配置GPIO时钟源也可IO中断唤醒standby。<br />
<img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1688/3db429ba-cea8-4d7a-9e97-d1277a9cd012.png" alt="dd2f7d90-c7af-4701-9a56-e043722dff82-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">时钟配置如下：<br />
/*</p>
<ul>
<li>Copyright 2020-2024 Yuntu Microelectronics co.,ltd</li>
<li>All rights reserved.</li>
<li></li>
<li>YUNTU Confidential. This software is owned or controlled by YUNTU and may only be</li>
<li>used strictly in accordance with the applicable license terms. By expressly</li>
<li>accepting such terms or by downloading, installing, activating and/or otherwise</li>
<li>using the software, you are agreeing that you have read, and that you agree to</li>
<li>comply with and are bound by, such license terms. If you do not agree to be</li>
<li>bound by the applicable license terms, then you may not retain, install,</li>
<li>activate or otherwise use the software. The production use license in</li>
<li>Section 2.3 is expressly granted for this software.</li>
<li></li>
<li>@file clock_config.c</li>
<li>@brief</li>
<li></li>
</ul>
<p dir="auto">*/</p>
<p dir="auto">#include "stddef.h"<br />
#include "clock_config.h"</p>
<p dir="auto">/*! @brief peripheral clock PeripheralClockConfig */</p>
<p dir="auto">peripheral_clock_config_t clock_config0PeripheralClockConfig[5] = {<br />
{<br />
.clkName = GPIO_CLK,<br />
.clkGate = true,<br />
.divider = DIV_BY_1,<br />
.clkSrc =CLK_SRC_DISABLED,<br />
},<br />
{<br />
.clkName = LINFlexD2_CLK,<br />
.clkGate = true,<br />
.divider = DIV_BY_1,<br />
.clkSrc = CLK_SRC_FXOSC,<br />
},<br />
{<br />
.clkName = lpTMR0_CLK,<br />
.clkGate = true,<br />
.divider = DIV_BY_1,<br />
.clkSrc = CLK_SRC_FXOSC,<br />
},<br />
{<br />
.clkName = WKU_CLK,<br />
.clkGate = true,<br />
.divider = DIV_BY_1,<br />
.clkSrc =CLK_SRC_FXOSC,<br />
},<br />
{<br />
.clkName = FlexCAN0_CLK,<br />
.clkGate = true,<br />
.divider = DIV_BY_1,<br />
.clkSrc = CLK_SRC_DISABLED,<br />
},<br />
};</p>
<p dir="auto">const scu_config_t clock_config0ScuConfig = {<br />
.fircEnable = true,<br />
.fircDeepSleepEnable = false,<br />
.sircDeepSleepEnable = true,<br />
.sircStandbyEnable = true,<br />
.sircPowerDownEnable = true,<br />
.sysClkSrc = SCU_SYSTEM_CLOCK_SRC_PLL,<br />
.fxoscConfig =<br />
{<br />
.enable = true,<br />
.bypassMode = false,<br />
.gainSelection = 5,<br />
.frequency = 24000000U,<br />
},<br />
.pllConfig =<br />
{<br />
.enable = true,<br />
.pllRefClock = SCU_PLL_REF_FXOSC_CLK,<br />
.pllFeedBackDiv = 10,<br />
.pllRefClkDiv = 1,<br />
},<br />
.sysDiv = SCU_SYS_CLK_DIV_BY_1,<br />
.fastBusDiv = SCU_SYS_CLK_DIV_BY_1,<br />
.slowBusDiv = SCU_SYS_CLK_DIV_BY_3,<br />
.flashDiv = SCU_SYS_CLK_DIV_BY_3,<br />
.clockOutConfig =<br />
{<br />
.enable = false,<br />
.source = SCU_CLKOUT_SEL_PLL_CLK,<br />
.divider = 1<br />
},<br />
};</p>
<p dir="auto">/*! @brief User Configuration structure clock_config0ClockManager */<br />
clock_manager_user_config_t clock_config0ClockManager = {<br />
.scuConfigPtr = &amp;clock_config0ScuConfig,<br />
.cmuConfigPtr = NULL,<br />
.ipcConfig =<br />
{<br />
.peripheralClocks = clock_config0PeripheralClockConfig,<br />
.count = 5,<br />
},<br />
};</p>
<p dir="auto">/*! @brief Array of pointers to User configuration structures */<br />
clock_manager_user_config_t const *g_clockManConfigsArr[] = {<br />
&amp;clock_config0ClockManager,<br />
};</p>
<p dir="auto">/*! @brief Array of pointers to User defined Callbacks configuration structures <em>/<br />
/</em> The tool do not support generate Callbacks configuration. It's always empty. */<br />
clock_manager_callback_user_config_t *g_clockManCallbacksArr[] = {(void *)0};</p>
]]></description><link>https://forum.ytmicro.com/topic/2061/ytm32b1md14低功耗问题</link><generator>RSS for Node</generator><lastBuildDate>Wed, 24 Jun 2026 19:03:46 GMT</lastBuildDate><atom:link href="https://forum.ytmicro.com/topic/2061.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 24 Jun 2026 01:52:36 GMT</pubDate><ttl>60</ttl></channel></rss>