Subversion Repositories DashDisplay

Rev

Rev 3 | Rev 7 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 5
Line 32... Line 32...
32
  ******************************************************************************
32
  ******************************************************************************
33
  */
33
  */
34
/* Includes ------------------------------------------------------------------*/
34
/* Includes ------------------------------------------------------------------*/
35
#include "stm32f1xx_hal.h"
35
#include "stm32f1xx_hal.h"
36
 
36
 
-
 
37
extern void Error_Handler(void);
37
/* USER CODE BEGIN 0 */
38
/* USER CODE BEGIN 0 */
38
 
39
 
39
/* USER CODE END 0 */
40
/* USER CODE END 0 */
40
 
41
 
41
/**
42
/**
Line 56... Line 57...
56
  HAL_NVIC_SetPriority(MemoryManagement_IRQn, 0, 0);
57
  HAL_NVIC_SetPriority(MemoryManagement_IRQn, 0, 0);
57
  /* BusFault_IRQn interrupt configuration */
58
  /* BusFault_IRQn interrupt configuration */
58
  HAL_NVIC_SetPriority(BusFault_IRQn, 0, 0);
59
  HAL_NVIC_SetPriority(BusFault_IRQn, 0, 0);
59
  /* UsageFault_IRQn interrupt configuration */
60
  /* UsageFault_IRQn interrupt configuration */
60
  HAL_NVIC_SetPriority(UsageFault_IRQn, 0, 0);
61
  HAL_NVIC_SetPriority(UsageFault_IRQn, 0, 0);
-
 
62
  /* SVCall_IRQn interrupt configuration */
-
 
63
  HAL_NVIC_SetPriority(SVCall_IRQn, 0, 0);
61
  /* DebugMonitor_IRQn interrupt configuration */
64
  /* DebugMonitor_IRQn interrupt configuration */
62
  HAL_NVIC_SetPriority(DebugMonitor_IRQn, 0, 0);
65
  HAL_NVIC_SetPriority(DebugMonitor_IRQn, 0, 0);
-
 
66
  /* PendSV_IRQn interrupt configuration */
-
 
67
  HAL_NVIC_SetPriority(PendSV_IRQn, 0, 0);
63
  /* SysTick_IRQn interrupt configuration */
68
  /* SysTick_IRQn interrupt configuration */
64
  HAL_NVIC_SetPriority(SysTick_IRQn, 0, 0);
69
  HAL_NVIC_SetPriority(SysTick_IRQn, 0, 0);
65
 
70
 
66
    /**NOJTAG: JTAG-DP Disabled and SW-DP Enabled
71
    /**NOJTAG: JTAG-DP Disabled and SW-DP Enabled
67
    */
72
    */
Line 215... Line 220...
215
    PA2     ------> USART2_TX
220
    PA2     ------> USART2_TX
216
    PA3     ------> USART2_RX
221
    PA3     ------> USART2_RX
217
    */
222
    */
218
    GPIO_InitStruct.Pin = GPIO_PIN_2;
223
    GPIO_InitStruct.Pin = GPIO_PIN_2;
219
    GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
224
    GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
220
    GPIO_InitStruct.Speed = GPIO_SPEED_HIGH;
225
    GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
221
    HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
226
    HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
222
 
227
 
223
    GPIO_InitStruct.Pin = GPIO_PIN_3;
228
    GPIO_InitStruct.Pin = GPIO_PIN_3;
224
    GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
229
    GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
225
    GPIO_InitStruct.Pull = GPIO_NOPULL;
230
    GPIO_InitStruct.Pull = GPIO_NOPULL;