Added Matrix clock enable in SAMA/SAMA5D2x/hal_lld.c

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10619 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Rocco Marco Guglielmi 2017-09-17 17:04:55 +00:00
parent c082ec5564
commit d7dca11fbf
1 changed files with 11 additions and 0 deletions

View File

@ -59,6 +59,17 @@
* @notapi
*/
void hal_lld_init(void) {
/* Disabling PMC write protection. */
pmcDisableWP();
/* Enabling matrix clock */
pmcEnableH32MX();
pmcEnableH64MX();
/* Enabling write protection. */
pmcEnableWP();
#if defined(SAMA_DMA_REQUIRED)
dmaInit();
#endif