diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-07-29 07:12:36 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-07-29 07:12:36 -0600 |
commit | efc287bb003a4c552efeef079cff184a71444f30 (patch) | |
tree | a089573bf49140991a6c2d8fc024a128a2f19ed2 /nuttx/configs/sama5d4-ek | |
parent | fea858322ce8e3db1987327593c848f366d8585c (diff) | |
download | px4-nuttx-efc287bb003a4c552efeef079cff184a71444f30.tar.gz px4-nuttx-efc287bb003a4c552efeef079cff184a71444f30.tar.bz2 px4-nuttx-efc287bb003a4c552efeef079cff184a71444f30.zip |
SAMA5D-EK: Correct system timer frequency. Input clock is MCK/2, not MCK
Diffstat (limited to 'nuttx/configs/sama5d4-ek')
-rw-r--r-- | nuttx/configs/sama5d4-ek/include/board_384mhz.h | 1 | ||||
-rw-r--r-- | nuttx/configs/sama5d4-ek/include/board_396mhz.h | 1 | ||||
-rw-r--r-- | nuttx/configs/sama5d4-ek/include/board_528mhz.h | 1 | ||||
-rw-r--r-- | nuttx/configs/sama5d4-ek/include/board_sdram.h | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/configs/sama5d4-ek/include/board_384mhz.h b/nuttx/configs/sama5d4-ek/include/board_384mhz.h index 48df412b9..d1797e393 100644 --- a/nuttx/configs/sama5d4-ek/include/board_384mhz.h +++ b/nuttx/configs/sama5d4-ek/include/board_384mhz.h @@ -169,6 +169,7 @@ * REVISIT: I am not sure why this is. Perhaps because of H32MXDIV? */ +#define BOARD_PIT_FREQUENCY (BOARD_MCK_FREQUENCY >> 1) #define BOARD_USART_FREQUENCY (BOARD_MCK_FREQUENCY >> 1) /* HSMCI clocking diff --git a/nuttx/configs/sama5d4-ek/include/board_396mhz.h b/nuttx/configs/sama5d4-ek/include/board_396mhz.h index 978d88ebf..58895ae32 100644 --- a/nuttx/configs/sama5d4-ek/include/board_396mhz.h +++ b/nuttx/configs/sama5d4-ek/include/board_396mhz.h @@ -127,6 +127,7 @@ * REVISIT: I am not sure why this is. Perhaps because of H32MXDIV? */ +#define BOARD_PIT_FREQUENCY (BOARD_MCK_FREQUENCY >> 1) #define BOARD_USART_FREQUENCY (BOARD_MCK_FREQUENCY >> 1) #if defined(CONFIG_SAMA5_EHCI) || defined(CONFIG_SAMA5_OHCI) || \ diff --git a/nuttx/configs/sama5d4-ek/include/board_528mhz.h b/nuttx/configs/sama5d4-ek/include/board_528mhz.h index 74c63cf59..31b05e36e 100644 --- a/nuttx/configs/sama5d4-ek/include/board_528mhz.h +++ b/nuttx/configs/sama5d4-ek/include/board_528mhz.h @@ -126,6 +126,7 @@ * REVISIT: I am not sure why this is. Perhaps because of H32MXDIV? */ +#define BOARD_PIT_FREQUENCY (BOARD_MCK_FREQUENCY >> 1) #define BOARD_USART_FREQUENCY (BOARD_MCK_FREQUENCY >> 1) #if defined(CONFIG_SAMA5_EHCI) || defined(CONFIG_SAMA5_OHCI) || \ diff --git a/nuttx/configs/sama5d4-ek/include/board_sdram.h b/nuttx/configs/sama5d4-ek/include/board_sdram.h index 496cd5202..535bc9196 100644 --- a/nuttx/configs/sama5d4-ek/include/board_sdram.h +++ b/nuttx/configs/sama5d4-ek/include/board_sdram.h @@ -67,6 +67,7 @@ * REVISIT: I am not sure why this is. Perhaps because of H32MXDIV? */ +#define BOARD_PIT_FREQUENCY (BOARD_MCK_FREQUENCY >> 1) #define BOARD_USART_FREQUENCY (BOARD_MCK_FREQUENCY >> 1) #if defined(CONFIG_SAMA5_EHCI) || defined(CONFIG_SAMA5_OHCI) || \ |