aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorisiora <none@example.com>2017-08-17 21:20:46 +0000
committerisiora <none@example.com>2017-08-17 21:20:46 +0000
commit4058d89f6148bc998ff35c41d3715543a97cd6c7 (patch)
tree7f967669463d945f666879a9cfbe165e08cb6276
parentb93e802d530010da35f45e93a427609b57a3aed2 (diff)
downloadChibiOS-4058d89f6148bc998ff35c41d3715543a97cd6c7.tar.gz
ChibiOS-4058d89f6148bc998ff35c41d3715543a97cd6c7.tar.bz2
ChibiOS-4058d89f6148bc998ff35c41d3715543a97cd6c7.zip
Fixed SAMA_PIT define. Now it includes the dependency on busses clock ratio.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10445 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/hal/ports/SAMA/SAMA5D2x/hal_st_lld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/SAMA/SAMA5D2x/hal_st_lld.c b/os/hal/ports/SAMA/SAMA5D2x/hal_st_lld.c
index bb62f242b..67f54b3cc 100644
--- a/os/hal/ports/SAMA/SAMA5D2x/hal_st_lld.c
+++ b/os/hal/ports/SAMA/SAMA5D2x/hal_st_lld.c
@@ -31,7 +31,7 @@
/**
* @brief Periodic Interrupt Timer frequency.
*/
-#define SAMA_PIT (SAMA_MCK / 16)
+#define SAMA_PIT (SAMA_MCK / 16 / SAMA_H64MX_H32MX_RATIO)
/*===========================================================================*/
/* Driver exported variables. */