Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
haoJin750TFT
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
时昊
haoJin750TFT
Commits
086a463f
Commit
086a463f
authored
Jul 11, 2024
by
时昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:修改rtc驱动
parent
0e4e8eb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
+11
-14
RTE_CLOCK_Select_BAT32A279.c
...n/BAT32A279/RTE/CLOCK_Select/RTE_CLOCK_Select_BAT32A279.c
+11
-14
No files found.
Firmware/Source/Device/Cmsemicon/BAT32A279/RTE/CLOCK_Select/RTE_CLOCK_Select_BAT32A279.c
View file @
086a463f
...
@@ -11,24 +11,21 @@ uint32_t RTE_SystemCoreClock;
...
@@ -11,24 +11,21 @@ uint32_t RTE_SystemCoreClock;
extern
uint32_t
SystemCoreClock
;
extern
uint32_t
SystemCoreClock
;
void
RTE_CLOCK_Select_Start
(
void
)
void
RTE_CLOCK_Select_Start
(
void
)
{
{
////uint32_t msCnt;
#ifdef USED_FX_FCLK
#ifdef USED_FX_FCLK
/* config clock */
CGC_Osc_Setting
(
OSC_OSCILLATOR
,
OSC_UNDER_10M
,
OSC_OSCILLATOR
,
OSC_NORMAL_POWER
);
CGC_HSEConfig
(
OSC_OSCILLATOR
,
OSC_UNDER_10M
);
CGC_PLL_Setting
(
PLL_SR_fMX
,
PLL_DIV_2
,
PLL_MUL_16
);
CGC_PLL_Setting
(
PLL_SR_fMX
,
PLL_DIV_2
,
PLL_MUL_16
);
CGC_PLL_CFG_AS_FCLK
();
CGC_PLL_CFG_AS_FCLK
();
delay_init
(
64000000
);
SystemCoreClockUpdate
();
SystemCoreClock
=
64000000UL
;
RTE_SystemCoreClock
=
SystemCoreClock
;
delay_init
(
64000000
);
SystemCoreClock
=
64000000UL
;
#endif
#endif
#ifdef USED_FHOCO_FCLK
#ifdef USED_FHOCO_FCLK
SystemCoreClockUpdate
();
SystemCoreClockUpdate
();
msCnt
=
SystemCoreClock
/
1000
;
msCnt
=
SystemCoreClock
/
1000
;
SysTick_Config
(
msCnt
);
SysTick_Config
(
msCnt
);
delay_init
(
SystemCoreClock
);
delay_init
(
SystemCoreClock
);
#endif
#endif
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment