Created
July 6, 2018 10:31
-
-
Save Tony607/8ce3a50d41faff0e10311ba19471c155 to your computer and use it in GitHub Desktop.
How to run deep learning model on microcontroller with CMSIS-NN (Part 1) | DLology
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
/******************** PLL Parameters ******************/ | |
/* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLL_M) * PLL_N | |
= 8000000 / 8 * 336 = 336MHz*/ | |
// PLL_M = HSE_VALUE (in Hz) / 1MHz = 8000000 / 1000000 = 8 | |
#define PLL_M 8 | |
#define PLL_N 336 | |
/* SYSCLK = PLL_VCO / PLL_P = 336MHz / 2 = 168MHz*/ | |
#define PLL_P 2 | |
/* USB OTG FS, SDIO and RNG Clock = PLL_VCO / PLLQ | |
= 336MHz / 7 = 48MHz*/ | |
#define PLL_Q 7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment