Subversion Repositories DashDisplay

Rev

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 5
Line 1... Line 1...
1
/**
1
/**
2
  ******************************************************************************
2
  ******************************************************************************
3
  * @file    stm32f1xx_hal_cortex.c
3
  * @file    stm32f1xx_hal_cortex.c
4
  * @author  MCD Application Team
4
  * @author  MCD Application Team
5
  * @version V1.0.1
5
  * @version V1.0.4
6
  * @date    31-July-2015
6
  * @date    29-April-2016
7
  * @brief   CORTEX HAL module driver.
7
  * @brief   CORTEX HAL module driver.
8
  *
8
  *
9
  *          This file provides firmware functions to manage the following
9
  *          This file provides firmware functions to manage the following
10
  *          functionalities of the CORTEX:
10
  *          functionalities of the CORTEX:
11
  *           + Initialization and de-initialization functions
11
  *           + Initialization and de-initialization functions
Line 72... Line 72...
72
        (++) Resets the SysTick Counter register.
72
        (++) Resets the SysTick Counter register.
73
        (++) Configures the SysTick Counter clock source to be Core Clock Source (HCLK).
73
        (++) Configures the SysTick Counter clock source to be Core Clock Source (HCLK).
74
        (++) Enables the SysTick Interrupt.
74
        (++) Enables the SysTick Interrupt.
75
        (++) Starts the SysTick Counter.
75
        (++) Starts the SysTick Counter.
76
   
76
   
77
   (+) You can change the SysTick Clock source to be HCLK_Div8 by calling the macro
77
   (+) You can change the SysTick Clock source to be HCLK_Div8 by calling the function
78
       __HAL_CORTEX_SYSTICKCLK_CONFIG(SYSTICK_CLKSOURCE_HCLK_DIV8) just after the
78
       HAL_SYSTICK_CLKSourceConfig(SYSTICK_CLKSOURCE_HCLK_DIV8) just after the
79
       HAL_SYSTICK_Config() function call. The __HAL_CORTEX_SYSTICKCLK_CONFIG() macro is defined
-
 
80
       inside the stm32f1xx_hal_cortex.h file.
79
       HAL_SYSTICK_Config() function call.
81
 
80
 
82
   (+) You can change the SysTick IRQ priority by calling the
81
   (+) You can change the SysTick IRQ priority by calling the
83
       HAL_NVIC_SetPriority(SysTick_IRQn,...) function just after the HAL_SYSTICK_Config() function
82
       HAL_NVIC_SetPriority(SysTick_IRQn,...) function just after the HAL_SYSTICK_Config() function
84
       call. The HAL_NVIC_SetPriority() call the NVIC_SetPriority() function which is a CMSIS function.
83
       call. The HAL_NVIC_SetPriority() call the NVIC_SetPriority() function which is a CMSIS function.
85
 
84
 
Line 91... Line 90...
91
   
90
   
92
  @endverbatim
91
  @endverbatim
93
  ******************************************************************************
92
  ******************************************************************************
94
  * @attention
93
  * @attention
95
  *
94
  *
96
  * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
95
  * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
97
  *
96
  *
98
  * Redistribution and use in source and binary forms, with or without modification,
97
  * Redistribution and use in source and binary forms, with or without modification,
99
  * are permitted provided that the following conditions are met:
98
  * are permitted provided that the following conditions are met:
100
  *   1. Redistributions of source code must retain the above copyright notice,
99
  *   1. Redistributions of source code must retain the above copyright notice,
101
  *      this list of conditions and the following disclaimer.
100
  *      this list of conditions and the following disclaimer.