/*============================================================================== * Èíèöèàëèçàöèÿ Ê1921ÂÊ035 *------------------------------------------------------------------------------ * ÍÈÈÝÒ, Áîãäàí Êîëáîâ *============================================================================== * ÄÀÍÍÎÅ ÏÐÎÃÐÀÌÌÍÎÅ ÎÁÅÑÏÅ×ÅÍÈÅ ÏÐÅÄÎÑÒÀÂËßÅÒÑß «ÊÀÊ ÅÑÒÜ», ÁÅÇ ÊÀÊÈÕ-ËÈÁÎ * ÃÀÐÀÍÒÈÉ, ßÂÍÎ ÂÛÐÀÆÅÍÍÛÕ ÈËÈ ÏÎÄÐÀÇÓÌÅÂÀÅÌÛÕ, ÂÊËÞ×Àß ÃÀÐÀÍÒÈÈ ÒÎÂÀÐÍÎÉ * ÏÐÈÃÎÄÍÎÑÒÈ, ÑÎÎÒÂÅÒÑÒÂÈß ÏÎ ÅÃÎ ÊÎÍÊÐÅÒÍÎÌÓ ÍÀÇÍÀ×ÅÍÈÞ È ÎÒÑÓÒÑÒÂÈß * ÍÀÐÓØÅÍÈÉ, ÍÎ ÍÅ ÎÃÐÀÍÈ×ÈÂÀßÑÜ ÈÌÈ. ÄÀÍÍÎÅ ÏÐÎÃÐÀÌÌÍÎÅ ÎÁÅÑÏÅ×ÅÍÈÅ * ÏÐÅÄÍÀÇÍÀ×ÅÍÎ ÄËß ÎÇÍÀÊÎÌÈÒÅËÜÍÛÕ ÖÅËÅÉ È ÍÀÏÐÀÂËÅÍÎ ÒÎËÜÊÎ ÍÀ * ÏÐÅÄÎÑÒÀÂËÅÍÈÅ ÄÎÏÎËÍÈÒÅËÜÍÎÉ ÈÍÔÎÐÌÀÖÈÈ Î ÏÐÎÄÓÊÒÅ, Ñ ÖÅËÜÞ ÑÎÕÐÀÍÈÒÜ ÂÐÅÌß * ÏÎÒÐÅÁÈÒÅËÞ. ÍÈ Â ÊÀÊÎÌ ÑËÓ×ÀÅ ÀÂÒÎÐÛ ÈËÈ ÏÐÀÂÎÎÁËÀÄÀÒÅËÈ ÍÅ ÍÅÑÓÒ * ÎÒÂÅÒÑÒÂÅÍÍÎÑÒÈ ÏÎ ÊÀÊÈÌ-ËÈÁÎ ÈÑÊÀÌ, ÇÀ ÏÐßÌÎÉ ÈËÈ ÊÎÑÂÅÍÍÛÉ ÓÙÅÐÁ, ÈËÈ * ÏÎ ÈÍÛÌ ÒÐÅÁÎÂÀÍÈßÌ, ÂÎÇÍÈÊØÈÌ ÈÇ-ÇÀ ÈÑÏÎËÜÇÎÂÀÍÈß ÏÐÎÃÐÀÌÌÍÎÃÎ ÎÁÅÑÏÅ×ÅÍÈß * ÈËÈ ÈÍÛÕ ÄÅÉÑÒÂÈÉ Ñ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ. * * 2018 ÀÎ "ÍÈÈÝÒ" *============================================================================== */ #ifndef SYSTEM_K1921VK035_H #define SYSTEM_K1921VK035_H #ifdef __cplusplus extern "C" { #endif //-- Includes ------------------------------------------------------------------ #include //-- Defines ------------------------------------------------------------------- #define OSICLK_VAL 8000000 #ifndef OSECLK_VAL #define OSECLK_VAL 12000000 #endif #define OSECLK_STARTUP_TIMEOUT 0x100000 #define SYSCLK_SWITCH_TIMEOUT 0x100000 #define SYSCLK_PLL // Èñïîëüçîâàòü PLL äëÿ òàêòèðîâàíèÿ //-- Variables ----------------------------------------------------------------- extern uint32_t SystemCoreClock; // System Clock Frequency (Core Clock) //-- Functions ----------------------------------------------------------------- // Initialize the System extern void SystemInit(void); // Updates the SystemCoreClock with current core Clock retrieved from registers extern void SystemCoreClockUpdate(void); #ifdef __cplusplus } #endif #endif // SYSTEM_K1921VK035_H