Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
DIOT Monitoring Module
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
6
Issues
6
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
DIOT Monitoring Module
Commits
42058a96
Commit
42058a96
authored
May 16, 2022
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bootloader: clock changes
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
7bd0a325
Pipeline
#3664
passed with stage
in 50 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
21 deletions
+22
-21
atmel_start_config.atstart
bootloader/atmel_start_prj/atmel_start_config.atstart
+14
-14
hpl_gclk_config.h
bootloader/atmel_start_prj/config/hpl_gclk_config.h
+1
-1
hpl_sysctrl_config.h
bootloader/atmel_start_prj/config/hpl_sysctrl_config.h
+4
-4
hpl_init.c
bootloader/atmel_start_prj/hpl/core/hpl_init.c
+3
-2
No files found.
bootloader/atmel_start_prj/atmel_start_config.atstart
View file @
42058a96
...
...
@@ -26,10 +26,10 @@ drivers:
functionality: System
api: HAL:HPL:GCLK
configuration:
$input:
4
8000000
$input_id:
Digital Frequency Locked Loop (DFLL4
8M)
RESERVED_InputFreq:
4
8000000
RESERVED_InputFreq_id:
Digital Frequency Locked Loop (DFLL4
8M)
$input: 8000000
$input_id:
8MHz Internal Oscillator (OSC
8M)
RESERVED_InputFreq: 8000000
RESERVED_InputFreq_id:
8MHz Internal Oscillator (OSC
8M)
_$freq_output_Generic clock generator 0: 24000000
_$freq_output_Generic clock generator 1: 31250
_$freq_output_Generic clock generator 2: 48000000
...
...
@@ -54,7 +54,7 @@ drivers:
enable_gclk_gen_6__externalclock: 1000000
enable_gclk_gen_7: false
enable_gclk_gen_7__externalclock: 1000000
gclk_arch_gen_0_RUNSTDBY:
fals
e
gclk_arch_gen_0_RUNSTDBY:
tru
e
gclk_arch_gen_0_enable: true
gclk_arch_gen_0_idc: false
gclk_arch_gen_0_oe: false
...
...
@@ -69,7 +69,7 @@ drivers:
gclk_arch_gen_2_idc: false
gclk_arch_gen_2_oe: false
gclk_arch_gen_2_oov: false
gclk_arch_gen_3_RUNSTDBY:
fals
e
gclk_arch_gen_3_RUNSTDBY:
tru
e
gclk_arch_gen_3_enable: true
gclk_arch_gen_3_idc: false
gclk_arch_gen_3_oe: false
...
...
@@ -97,7 +97,7 @@ drivers:
gclk_gen_0_div: 2
gclk_gen_0_div_sel: false
gclk_gen_0_oscillator: Digital Frequency Locked Loop (DFLL48M)
gclk_gen_1_div:
32
gclk_gen_1_div:
256
gclk_gen_1_div_sel: false
gclk_gen_1_oscillator: 8MHz Internal Oscillator (OSC8M)
gclk_gen_2_div: 1
...
...
@@ -162,7 +162,7 @@ drivers:
i2c_slave_amode: Mask
i2c_slave_gencen: false
i2c_slave_lowtout: false
i2c_slave_runstdby:
fals
e
i2c_slave_runstdby:
tru
e
i2c_slave_sclsm: false
i2c_slave_sdahold: 300-600ns hold time
i2c_slave_sexttoen: false
...
...
@@ -481,7 +481,7 @@ drivers:
$input_id: Generic clock generator 1
RESERVED_InputFreq: 31250
RESERVED_InputFreq_id: Generic clock generator 1
_$freq_output_8MHz Internal Oscillator (OSC8M):
1
000000
_$freq_output_8MHz Internal Oscillator (OSC8M):
8
000000
_$freq_output_Digital Frequency Locked Loop (DFLL48M): 48000000
_$freq_output_External Crystal Oscillator 0.4-32MHz (XOSC): 400000
_$freq_output_Fractional Digital Phase Locked Loop (FDPLL96M): 45775390.625
...
...
@@ -494,12 +494,12 @@ drivers:
dfll48m_arch_llaw: false
dfll48m_arch_ondemand: false
dfll48m_arch_qldis: false
dfll48m_arch_runstdby:
fals
e
dfll48m_arch_runstdby:
tru
e
dfll48m_arch_stable: false
dfll48m_arch_usbcrm:
tru
e
dfll48m_arch_usbcrm:
fals
e
dfll48m_arch_waitlock: false
dfll48m_mode: Closed Loop Mode
dfll48m_mul:
48000
dfll48m_mul:
1536
dfll48m_ref_clock: Generic clock generator 1
dfll_arch_cstep: 3
dfll_arch_fstep: 31
...
...
@@ -531,8 +531,8 @@ drivers:
osc8m_arch_enable: true
osc8m_arch_ondemand: true
osc8m_arch_overwrite_calibration: false
osc8m_arch_runstdby:
fals
e
osc8m_presc: '
8
'
osc8m_arch_runstdby:
tru
e
osc8m_presc: '
1
'
osculp32k_arch_calib: 0
osculp32k_arch_overwrite_calibration: false
osculp32k_arch_wrtlock: false
...
...
bootloader/atmel_start_prj/config/hpl_gclk_config.h
View file @
42058a96
...
...
@@ -151,7 +151,7 @@
// <i>
// <id> gclk_gen_1_div
#ifndef CONF_GCLK_GEN_1_DIV
#define CONF_GCLK_GEN_1_DIV
32
#define CONF_GCLK_GEN_1_DIV
256
#endif
// </h>
...
...
bootloader/atmel_start_prj/config/hpl_sysctrl_config.h
View file @
42058a96
...
...
@@ -84,7 +84,7 @@
// <i> Default: No Prescaling
// <id> osc8m_presc
#ifndef CONF_OSC8M_PRESC
#define CONF_OSC8M_PRESC SYSCTRL_OSC8M_PRESC_
3
_Val
#define CONF_OSC8M_PRESC SYSCTRL_OSC8M_PRESC_
0
_Val
#endif
// <q> Overwrite Default Osc Calibration
...
...
@@ -479,14 +479,14 @@
// <i> If this bit is 1: The DFLL is not stopped in standby sleep mode.
// <id> dfll48m_arch_runstdby
#ifndef CONF_DFLL_RUNSTDBY
#define CONF_DFLL_RUNSTDBY
0
#define CONF_DFLL_RUNSTDBY
1
#endif
// <q> USB Clock Recovery Mode
// <i> USB Clock Recovery Mode
// <id> dfll48m_arch_usbcrm
#ifndef CONF_DFLL_USBCRM
#define CONF_DFLL_USBCRM
1
#define CONF_DFLL_USBCRM
0
#endif
#if CONF_DFLL_USBCRM == 1
...
...
@@ -540,7 +540,7 @@
// <i> Default: 0
// <id> dfll48m_mul
#ifndef CONF_DFLL_MUL
#define CONF_DFLL_MUL
48000
#define CONF_DFLL_MUL
1536
#endif
// <e> DFLL Calibration Overwrite
...
...
bootloader/atmel_start_prj/hpl/core/hpl_init.c
View file @
42058a96
...
...
@@ -41,10 +41,11 @@
#include <hpl_dmac_config.h>
/* Referenced GCLKs (out of 0~7), should be initialized firstly
* - GCLK 1 for DFLL48M
*/
#define _GCLK_INIT_1ST 0x0000000
0
#define _GCLK_INIT_1ST 0x0000000
2
/* Not referenced GCLKs, initialized last */
#define _GCLK_INIT_LAST 0x000000F
F
#define _GCLK_INIT_LAST 0x000000F
D
/**
* \brief Initialize the hardware abstraction layer
...
...
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