From 9f95ff5b6ba01db09552b84a0ab79607060a2666 Mon Sep 17 00:00:00 2001 From: Ali Labbene Date: Wed, 11 Dec 2019 08:59:21 +0100 Subject: Official ARM version: v5.4.0 Add CMSIS V5.4.0, please refer to index.html available under \docs folder. Note: content of \CMSIS\Core\Include has been copied under \Include to keep the same structure used in existing projects, and thus avoid projects mass update Note: the following components have been removed from ARM original delivery (as not used in ST packages) - CMSIS_EW2018.pdf - .gitattributes - .gitignore - \Device - \CMSIS - \CoreValidation - \DAP - \Documentation - \DoxyGen - \Driver - \Pack - \RTOS\CMSIS_RTOS_Tutorial.pdf - \RTOS\RTX - \RTOS\Template - \RTOS2\RTX - \Utilities - All ARM/GCC projects files are deleted from \DSP, \RTOS and \RTOS2 Change-Id: Ia026c3f0f0d016627a4fb5a9032852c33d24b4d3 --- Documentation/Core/html/_using__c_m_s_i_s.html | 177 ------------------------- 1 file changed, 177 deletions(-) delete mode 100644 Documentation/Core/html/_using__c_m_s_i_s.html (limited to 'Documentation/Core/html/_using__c_m_s_i_s.html') diff --git a/Documentation/Core/html/_using__c_m_s_i_s.html b/Documentation/Core/html/_using__c_m_s_i_s.html deleted file mode 100644 index 6c17a2e..0000000 --- a/Documentation/Core/html/_using__c_m_s_i_s.html +++ /dev/null @@ -1,177 +0,0 @@ - - - - - -Basic CMSIS Example -CMSIS-CORE: Basic CMSIS Example - - - - - - - - - - - - - - - -
-
- - - - - - - -
-
CMSIS-CORE -  Version 4.30 -
-
CMSIS-CORE support for Cortex-M processor-based devices
-
-
- -
-
    - -
-
- - - -
-
- -
-
-
- -
- - - - -
- -
- -
-
-
Basic CMSIS Example
-
-
-

A typical example for using the CMSIS layer is provided below. The example is based on a STM32F10x Device.

-
#include <stm32f10x.h> // File name depends on device used
-
-
uint32_t volatile msTicks; // Counter for millisecond Interval
-
-
void SysTick_Handler (void) { // SysTick Interrupt Handler
-
msTicks++; // Increment Counter
-
}
-
-
void WaitForTick (void) {
-
uint32_t curTicks;
-
-
curTicks = msTicks; // Save Current SysTick Value
-
while (msTicks == curTicks) { // Wait for next SysTick Interrupt
-
__WFE (); // Power-Down until next Event/Interrupt
-
}
-
}
-
-
void TIM1_UP_IRQHandler (void) { // Timer Interrupt Handler
-
; // Add user code here
-
}
-
-
void timer1_init(int frequency) { // Set up Timer (device specific)
-
NVIC_SetPriority (TIM1_UP_IRQn, 1); // Set Timer priority
-
NVIC_EnableIRQ (TIM1_UP_IRQn); // Enable Timer Interrupt
-
}
-
-
-
void Device_Initialization (void) { // Configure & Initialize MCU
-
if (SysTick_Config (SystemCoreClock / 1000)) { // SysTick 1mSec
-
: // Handle Error
-
}
-
timer1_init (); // setup device-specific timer
-
}
-
-
-
// The processor clock is initialized by CMSIS startup + system file
-
void main (void) { // user application starts here
-
Device_Initialization (); // Configure & Initialize MCU
-
while (1) { // Endless Loop (the Super-Loop)
-
__disable_irq (); // Disable all interrupts
-
Get_InputValues (); // Read Values
-
__enable_irq (); // Enable all interrupts
-
Calculation_Response (); // Calculate Results
-
Output_Response (); // Output Results
-
WaitForTick (); // Synchronize to SysTick Timer
-
}
-
}
-
-
- - - - -- cgit