Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
8c9bc6da
Commit
8c9bc6da
authored
8 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Trivial changes from review of last PR
parent
2dbd6b3d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arch/arm/src/kinetis/kinetis_clockconfig.c
+3
-11
3 additions, 11 deletions
arch/arm/src/kinetis/kinetis_clockconfig.c
configs/teensy-3.x/include/board.h
+2
-1
2 additions, 1 deletion
configs/teensy-3.x/include/board.h
with
5 additions
and
12 deletions
arch/arm/src/kinetis/kinetis_clockconfig.c
+
3
−
11
View file @
8c9bc6da
/****************************************************************************
* arch/arm/src/kinetis/kinetis_clockconfig.c
* arch/arm/src/chip/kinetis_clockconfig.c
*
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
* Copyright (C) 2011
, 2016
Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
...
...
@@ -66,14 +65,6 @@
void
__ramfunc__
kinesis_setdividers
(
uint32_t
div1
,
uint32_t
div2
,
uint32_t
div3
,
uint32_t
div4
);
/****************************************************************************
* Private Data
****************************************************************************/
/****************************************************************************
* Public Data
****************************************************************************/
/****************************************************************************
* Private Functions
****************************************************************************/
...
...
@@ -132,11 +123,12 @@ void kinetis_pllconfig(void)
* HGO = 1 (High Gain Oscillator Select)
* RANGE = 2 (Oscillator of 8 MHz to 32 MHz)
*/
#ifdef BOARD_EXTAL_LP
putreg8
(
MCG_C2_EREFS
|
MCG_C2_RANGE_VHIGH
,
KINETIS_MCG_C2
);
#else
putreg8
(
MCG_C2_EREFS
|
MCG_C2_HGO
|
MCG_C2_RANGE_VHIGH
,
KINETIS_MCG_C2
);
#endif
/*BOARD_EXTAL_LP*/
#endif
/*
BOARD_EXTAL_LP
*/
#endif
/* Released latched state of oscillator and GPIO */
...
...
This diff is collapsed.
Click to expand it.
configs/teensy-3.x/include/board.h
+
2
−
1
View file @
8c9bc6da
...
...
@@ -2,7 +2,7 @@
* configs/teensy-3.x/include/board.h
* include/arch/board/board.h
*
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
* Copyright (C) 2015
-2016
Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
...
...
@@ -63,6 +63,7 @@
* the C1 divider must be set so that the FLL clock is between 31.25 and 39.0625 khz.
* For teensy-3.x that works out to a divider of 512.
*/
#define BOARD_FR_DIV (4 << 3)
#define BOARD_EXTAL_FREQ 16000000
/* 16MHz crystal frequency (REFCLK) */
#define BOARD_XTAL32_FREQ 32768
/* 32KHz RTC Oscillator (not populated) */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment