-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decouple timers from system clock #16958
Merged
carlescufi
merged 33 commits into
zephyrproject-rtos:master
from
carlescufi:decouple-timers-v2
Jul 24, 2019
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
c175847
drivers: i2c_bitbang: Do not use CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC
pizi-nordic 060b4cb
drivers: pwm_qmsi: Do not use CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC
pizi-nordic ab48cfc
drivers: timer: Do not use CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC
pizi-nordic 4484bd1
debug: Do not use CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC
pizi-nordic ffa9369
logging: Do not use CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC
pizi-nordic 4bbc37b
tests: benchmarks: Do not use CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC
pizi-nordic 94f0762
drivers: i2c_cc32xx: Get clock frequency from DTS
pizi-nordic 55a832a
soc: snps_arc_iot: Get CPU clock frequency from DTS
pizi-nordic d6d0037
soc: sam3x: Get CPU clock frequency from DTS
pizi-nordic 3a72781
soc: sam4s: Get CPU clock frequency from DTS
pizi-nordic caa08fb
soc: samd2x: Get CPU clock frequency from DTS
pizi-nordic c81013e
soc: samr21: Get CPU clock frequency from DTS
pizi-nordic 02a7d41
soc: same70: Get CPU clock frequency from DTS
pizi-nordic e953624
soc: k6x: Get CPU clock frequency from DTS
pizi-nordic d7e3316
soc: kl2x: Get CPU clock frequency from DTS
pizi-nordic 28a2444
soc: kwx: Get CPU clock frequency from DTS
pizi-nordic c28c44b
soc: lpc54xxx: Get CPU clock frequency from DTS
pizi-nordic 59812b0
arch: xtensa: Get CPU clock frequency from DTS
pizi-nordic 788e4e8
soc: msp432p4xx: Get CPU clock frequency from DTS
pizi-nordic bb7b545
soc: nxp_rt: Get system clock frequency from DTS
pizi-nordic c8c9cf3
drivers: beetle_clock_control: Get CPU clock frequency from DTS
pizi-nordic 75d1fc7
logging: log_backend_swo: Get clock frequency from DTS
pizi-nordic 2b2800d
drivers: spi_dw: Get clock frequency from DTS
pizi-nordic 9000a51
drivers: uart_cmsdk_apb: Get clock frequency from DTS
pizi-nordic 0e25db3
drivers: uart_pl011: Get clock frequency from DTS
pizi-nordic 3098758
drivers: uart_cc32xx: Get clock frequency from DTS
pizi-nordic 8219a3a
drivers: uart_msp432p4xx: Get clock frequency from DTS
pizi-nordic 7ae312a
drivers: uart_qmsi: Get clock frequency from DTS
pizi-nordic 1ef851b
drivers: uart_stellaris: Get clock frequency from DTS
pizi-nordic d5db8cf
drivers: uart_cc13xx_cc26xx: Get clock frequency from DTS
pizi-nordic bccdf56
drivers: wdog_cmsdk_apb: Get clock frequency from DTS
pizi-nordic efebd07
drivers: adc_stm32: Get clock frequency from DTS
pizi-nordic 7850fb5
debug: tracing: Fix compilation error
pizi-nordic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this
SystemCoreClock
vs sys_clock_hw_cycles_per_sec()?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requested by code owner for this file some review rounds ago. Note, that there should be CPU frequency as the
wait_cycles
is used to spin around:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@erwango does this need to be
SystemCoreClock
?