add exti
Showing
14 changed files
with
105 additions
and
40 deletions
... | @@ -21,6 +21,8 @@ SourceFiles#5=F:/IoT/STM32/workspace/STM32Test/Core/Src/stm32f0xx_it.c | ... | @@ -21,6 +21,8 @@ SourceFiles#5=F:/IoT/STM32/workspace/STM32Test/Core/Src/stm32f0xx_it.c |
21 | SourceFiles#6=F:/IoT/STM32/workspace/STM32Test/Core/Src/stm32f0xx_hal_msp.c | 21 | SourceFiles#6=F:/IoT/STM32/workspace/STM32Test/Core/Src/stm32f0xx_hal_msp.c |
22 | HeaderFiles#6=F:/IoT/STM32/workspace/STM32Test/Core/Inc/main.h | 22 | HeaderFiles#6=F:/IoT/STM32/workspace/STM32Test/Core/Inc/main.h |
23 | SourceFiles#7=F:/IoT/STM32/workspace/STM32Test/Core/Src/main.c | 23 | SourceFiles#7=F:/IoT/STM32/workspace/STM32Test/Core/Src/main.c |
24 | HeaderFiles=; | ||
25 | SourceFiles=; | ||
24 | 26 | ||
25 | [PreviousLibFiles] | 27 | [PreviousLibFiles] |
26 | LibFiles=Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h;Drivers/STM32F0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_exti.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_uart.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_uart_ex.h;Middlewares/Third_Party/FreeRTOS/Source/include/croutine.h;Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h;Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h;Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h;Middlewares/Third_Party/FreeRTOS/Source/include/list.h;Middlewares/Third_Party/FreeRTOS/Source/include/message_buffer.h;Middlewares/Third_Party/FreeRTOS/Source/include/mpu_prototypes.h;Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h;Middlewares/Third_Party/FreeRTOS/Source/include/portable.h;Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h;Middlewares/Third_Party/FreeRTOS/Source/include/queue.h;Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h;Middlewares/Third_Party/FreeRTOS/Source/include/stack_macros.h;Middlewares/Third_Party/FreeRTOS/Source/include/StackMacros.h;Middlewares/Third_Party/FreeRTOS/Source/include/stream_buffer.h;Middlewares/Third_Party/FreeRTOS/Source/include/task.h;Middlewares/Third_Party/FreeRTOS/Source/include/timers.h;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os.h;Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM0/portmacro.h;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_exti.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_uart.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_uart_ex.c;Middlewares/Third_Party/FreeRTOS/Source/croutine.c;Middlewares/Third_Party/FreeRTOS/Source/event_groups.c;Middlewares/Third_Party/FreeRTOS/Source/list.c;Middlewares/Third_Party/FreeRTOS/Source/queue.c;Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c;Middlewares/Third_Party/FreeRTOS/Source/tasks.c;Middlewares/Third_Party/FreeRTOS/Source/timers.c;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c;Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c;Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM0/port.c;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h;Drivers/STM32F0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_exti.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_uart.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_uart_ex.h;Middlewares/Third_Party/FreeRTOS/Source/include/croutine.h;Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h;Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h;Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h;Middlewares/Third_Party/FreeRTOS/Source/include/list.h;Middlewares/Third_Party/FreeRTOS/Source/include/message_buffer.h;Middlewares/Third_Party/FreeRTOS/Source/include/mpu_prototypes.h;Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h;Middlewares/Third_Party/FreeRTOS/Source/include/portable.h;Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h;Middlewares/Third_Party/FreeRTOS/Source/include/queue.h;Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h;Middlewares/Third_Party/FreeRTOS/Source/include/stack_macros.h;Middlewares/Third_Party/FreeRTOS/Source/include/StackMacros.h;Middlewares/Third_Party/FreeRTOS/Source/include/stream_buffer.h;Middlewares/Third_Party/FreeRTOS/Source/include/task.h;Middlewares/Third_Party/FreeRTOS/Source/include/timers.h;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os.h;Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM0/portmacro.h;Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f030x8.h;Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h;Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h;Drivers/CMSIS/Device/ST/STM32F0xx/Source/Templates/system_stm32f0xx.c;Drivers/CMSIS/Include/cmsis_armcc.h;Drivers/CMSIS/Include/cmsis_armclang.h;Drivers/CMSIS/Include/cmsis_compiler.h;Drivers/CMSIS/Include/cmsis_gcc.h;Drivers/CMSIS/Include/cmsis_iccarm.h;Drivers/CMSIS/Include/cmsis_version.h;Drivers/CMSIS/Include/core_armv8mbl.h;Drivers/CMSIS/Include/core_armv8mml.h;Drivers/CMSIS/Include/core_cm0.h;Drivers/CMSIS/Include/core_cm0plus.h;Drivers/CMSIS/Include/core_cm1.h;Drivers/CMSIS/Include/core_cm23.h;Drivers/CMSIS/Include/core_cm3.h;Drivers/CMSIS/Include/core_cm33.h;Drivers/CMSIS/Include/core_cm4.h;Drivers/CMSIS/Include/core_cm7.h;Drivers/CMSIS/Include/core_sc000.h;Drivers/CMSIS/Include/core_sc300.h;Drivers/CMSIS/Include/mpu_armv7.h;Drivers/CMSIS/Include/mpu_armv8.h;Drivers/CMSIS/Include/tz_context.h; | 28 | LibFiles=Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h;Drivers/STM32F0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_exti.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_uart.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_uart_ex.h;Middlewares/Third_Party/FreeRTOS/Source/include/croutine.h;Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h;Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h;Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h;Middlewares/Third_Party/FreeRTOS/Source/include/list.h;Middlewares/Third_Party/FreeRTOS/Source/include/message_buffer.h;Middlewares/Third_Party/FreeRTOS/Source/include/mpu_prototypes.h;Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h;Middlewares/Third_Party/FreeRTOS/Source/include/portable.h;Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h;Middlewares/Third_Party/FreeRTOS/Source/include/queue.h;Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h;Middlewares/Third_Party/FreeRTOS/Source/include/stack_macros.h;Middlewares/Third_Party/FreeRTOS/Source/include/StackMacros.h;Middlewares/Third_Party/FreeRTOS/Source/include/stream_buffer.h;Middlewares/Third_Party/FreeRTOS/Source/include/task.h;Middlewares/Third_Party/FreeRTOS/Source/include/timers.h;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os.h;Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM0/portmacro.h;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_exti.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_uart.c;Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_uart_ex.c;Middlewares/Third_Party/FreeRTOS/Source/croutine.c;Middlewares/Third_Party/FreeRTOS/Source/event_groups.c;Middlewares/Third_Party/FreeRTOS/Source/list.c;Middlewares/Third_Party/FreeRTOS/Source/queue.c;Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c;Middlewares/Third_Party/FreeRTOS/Source/tasks.c;Middlewares/Third_Party/FreeRTOS/Source/timers.c;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c;Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c;Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM0/port.c;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h;Drivers/STM32F0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_exti.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_uart.h;Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_uart_ex.h;Middlewares/Third_Party/FreeRTOS/Source/include/croutine.h;Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h;Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h;Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h;Middlewares/Third_Party/FreeRTOS/Source/include/list.h;Middlewares/Third_Party/FreeRTOS/Source/include/message_buffer.h;Middlewares/Third_Party/FreeRTOS/Source/include/mpu_prototypes.h;Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h;Middlewares/Third_Party/FreeRTOS/Source/include/portable.h;Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h;Middlewares/Third_Party/FreeRTOS/Source/include/queue.h;Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h;Middlewares/Third_Party/FreeRTOS/Source/include/stack_macros.h;Middlewares/Third_Party/FreeRTOS/Source/include/StackMacros.h;Middlewares/Third_Party/FreeRTOS/Source/include/stream_buffer.h;Middlewares/Third_Party/FreeRTOS/Source/include/task.h;Middlewares/Third_Party/FreeRTOS/Source/include/timers.h;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os.h;Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM0/portmacro.h;Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f030x8.h;Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h;Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h;Drivers/CMSIS/Device/ST/STM32F0xx/Source/Templates/system_stm32f0xx.c;Drivers/CMSIS/Include/cmsis_armcc.h;Drivers/CMSIS/Include/cmsis_armclang.h;Drivers/CMSIS/Include/cmsis_compiler.h;Drivers/CMSIS/Include/cmsis_gcc.h;Drivers/CMSIS/Include/cmsis_iccarm.h;Drivers/CMSIS/Include/cmsis_version.h;Drivers/CMSIS/Include/core_armv8mbl.h;Drivers/CMSIS/Include/core_armv8mml.h;Drivers/CMSIS/Include/core_cm0.h;Drivers/CMSIS/Include/core_cm0plus.h;Drivers/CMSIS/Include/core_cm1.h;Drivers/CMSIS/Include/core_cm23.h;Drivers/CMSIS/Include/core_cm3.h;Drivers/CMSIS/Include/core_cm33.h;Drivers/CMSIS/Include/core_cm4.h;Drivers/CMSIS/Include/core_cm7.h;Drivers/CMSIS/Include/core_sc000.h;Drivers/CMSIS/Include/core_sc300.h;Drivers/CMSIS/Include/mpu_armv7.h;Drivers/CMSIS/Include/mpu_armv8.h;Drivers/CMSIS/Include/tz_context.h; | ... | ... |
... | @@ -13,7 +13,15 @@ | ... | @@ -13,7 +13,15 @@ |
13 | #include "stm32f0xx_hal_gpio.h" | 13 | #include "stm32f0xx_hal_gpio.h" |
14 | 14 | ||
15 | /* key scan defines --------------------------------------------------------*/ | 15 | /* key scan defines --------------------------------------------------------*/ |
16 | #define KEY_read() HAL_GPIO_ReadPin(KEY_GPIO_Port, KEY_Pin) | 16 | #define KEY1_read() HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) |
17 | #define KEY2_read() HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) | ||
18 | |||
19 | #define KEY1_UP 1 | ||
20 | #define KEY1_DOWN !KEY1_UP | ||
21 | |||
22 | #define KEY2_UP 0 | ||
23 | #define KEY2_DOWN !KEY2_UP | ||
24 | |||
17 | 25 | ||
18 | /* Exported functions --------------------------------------------------------*/ | 26 | /* Exported functions --------------------------------------------------------*/ |
19 | extern uint8_t KEY_Scan(uint8_t mode); | 27 | extern uint8_t KEY_Scan(uint8_t mode); | ... | ... |
... | @@ -32,6 +32,8 @@ typedef enum | ... | @@ -32,6 +32,8 @@ typedef enum |
32 | #define LED2_Reset() HAL_GPIO_WritePin(LED2_GPIO_Port, LED2_Pin, GPIO_PIN_RESET) | 32 | #define LED2_Reset() HAL_GPIO_WritePin(LED2_GPIO_Port, LED2_Pin, GPIO_PIN_RESET) |
33 | #define LED2_Set() HAL_GPIO_WritePin(LED2_GPIO_Port, LED2_Pin, GPIO_PIN_SET) | 33 | #define LED2_Set() HAL_GPIO_WritePin(LED2_GPIO_Port, LED2_Pin, GPIO_PIN_SET) |
34 | 34 | ||
35 | extern LED_State ledState; | ||
36 | |||
35 | /* Exported functions --------------------------------------------------------*/ | 37 | /* Exported functions --------------------------------------------------------*/ |
36 | extern void LED_StateControl(LED_State ledMode); | 38 | extern void LED_StateControl(LED_State ledMode); |
37 | 39 | ... | ... |
... | @@ -32,11 +32,7 @@ extern "C" { | ... | @@ -32,11 +32,7 @@ extern "C" { |
32 | 32 | ||
33 | /* Private includes ----------------------------------------------------------*/ | 33 | /* Private includes ----------------------------------------------------------*/ |
34 | /* USER CODE BEGIN Includes */ | 34 | /* USER CODE BEGIN Includes */ |
35 | #include <stdio.h> | 35 | |
36 | #include "led.h" | ||
37 | #include "beep.h" | ||
38 | #include "key.h" | ||
39 | #include "usart.h" | ||
40 | /* USER CODE END Includes */ | 36 | /* USER CODE END Includes */ |
41 | 37 | ||
42 | /* Exported types ------------------------------------------------------------*/ | 38 | /* Exported types ------------------------------------------------------------*/ |
... | @@ -72,8 +68,11 @@ void Error_Handler(void); | ... | @@ -72,8 +68,11 @@ void Error_Handler(void); |
72 | #define LED2_GPIO_Port GPIOB | 68 | #define LED2_GPIO_Port GPIOB |
73 | #define LED1_Pin GPIO_PIN_7 | 69 | #define LED1_Pin GPIO_PIN_7 |
74 | #define LED1_GPIO_Port GPIOB | 70 | #define LED1_GPIO_Port GPIOB |
75 | #define KEY_Pin GPIO_PIN_9 | 71 | #define KEY1_Pin GPIO_PIN_8 |
76 | #define KEY_GPIO_Port GPIOB | 72 | #define KEY1_GPIO_Port GPIOB |
73 | #define KEY1_EXTI_IRQn EXTI4_15_IRQn | ||
74 | #define KEY2_Pin GPIO_PIN_9 | ||
75 | #define KEY2_GPIO_Port GPIOB | ||
77 | /* USER CODE BEGIN Private defines */ | 76 | /* USER CODE BEGIN Private defines */ |
78 | 77 | ||
79 | /* USER CODE END Private defines */ | 78 | /* USER CODE END Private defines */ | ... | ... |
... | @@ -49,6 +49,7 @@ | ... | @@ -49,6 +49,7 @@ |
49 | /* Exported functions prototypes ---------------------------------------------*/ | 49 | /* Exported functions prototypes ---------------------------------------------*/ |
50 | void NMI_Handler(void); | 50 | void NMI_Handler(void); |
51 | void HardFault_Handler(void); | 51 | void HardFault_Handler(void); |
52 | void EXTI4_15_IRQHandler(void); | ||
52 | void TIM1_BRK_UP_TRG_COM_IRQHandler(void); | 53 | void TIM1_BRK_UP_TRG_COM_IRQHandler(void); |
53 | void USART2_IRQHandler(void); | 54 | void USART2_IRQHandler(void); |
54 | /* USER CODE BEGIN EFP */ | 55 | /* USER CODE BEGIN EFP */ | ... | ... |
... | @@ -27,21 +27,20 @@ | ... | @@ -27,21 +27,20 @@ |
27 | #include "main.h" | 27 | #include "main.h" |
28 | 28 | ||
29 | /* USER CODE BEGIN Includes */ | 29 | /* USER CODE BEGIN Includes */ |
30 | #define USART_REC_LEN 200 // æœ?大接收å—节数 | 30 | #include <stdio.h> |
31 | |||
32 | extern uint8_t USART_RX_BUF[USART_REC_LEN]; // 接收缓冲,最大USART_REC_LEN个å—节,末å—节为æ¢è¡Œ | ||
33 | extern uint16_t USART_RX_STA; // 接收状æ?? | ||
34 | |||
35 | #define RXBUFFERSIZE 1 // 缓å˜å¤§å° | ||
36 | extern uint8_t aRxBuffer[RXBUFFERSIZE]; // HAL库USART接收Buffer | ||
37 | |||
38 | /* USER CODE END Includes */ | 31 | /* USER CODE END Includes */ |
39 | 32 | ||
40 | extern UART_HandleTypeDef huart1; | 33 | extern UART_HandleTypeDef huart1; |
41 | extern UART_HandleTypeDef huart2; | 34 | extern UART_HandleTypeDef huart2; |
42 | 35 | ||
43 | /* USER CODE BEGIN Private defines */ | 36 | /* USER CODE BEGIN Private defines */ |
37 | #define USART_REC_LEN 200 | ||
38 | |||
39 | extern uint8_t USART_RX_BUF[USART_REC_LEN]; // 接收缓冲,最大USART_REC_LEN个字节,末字节为换行 | ||
40 | extern uint16_t USART_RX_STA; | ||
44 | 41 | ||
42 | #define RXBUFFERSIZE 1 // 缓存大小 | ||
43 | extern uint8_t aRxBuffer[RXBUFFERSIZE]; // HAL库USART接收Buffer | ||
45 | /* USER CODE END Private defines */ | 44 | /* USER CODE END Private defines */ |
46 | 45 | ||
47 | void MX_USART1_UART_Init(void); | 46 | void MX_USART1_UART_Init(void); | ... | ... |
... | @@ -7,6 +7,7 @@ | ... | @@ -7,6 +7,7 @@ |
7 | 7 | ||
8 | /* Includes ------------------------------------------------------------------*/ | 8 | /* Includes ------------------------------------------------------------------*/ |
9 | #include "key.h" | 9 | #include "key.h" |
10 | #include "led.h" | ||
10 | #include "cmsis_os.h" | 11 | #include "cmsis_os.h" |
11 | 12 | ||
12 | /** | 13 | /** |
... | @@ -20,19 +21,34 @@ uint8_t KEY_Scan(uint8_t mode) | ... | @@ -20,19 +21,34 @@ uint8_t KEY_Scan(uint8_t mode) |
20 | { | 21 | { |
21 | key_up = 1; | 22 | key_up = 1; |
22 | } | 23 | } |
23 | if (key_up && KEY_read() == 1) | 24 | if (key_up && KEY2_read() == KEY2_DOWN) |
24 | { | 25 | { |
25 | osDelay(10); | 26 | osDelay(10); |
26 | key_up = 0; | 27 | key_up = 0; |
27 | if (KEY_read() == 1) | 28 | if (KEY2_read() == KEY2_DOWN) |
28 | { | 29 | { |
29 | return 1; | 30 | return 1; |
30 | } | 31 | } |
31 | } | 32 | } |
32 | else if (KEY_read() == 0) | 33 | else if (KEY2_read() == KEY2_UP) |
33 | { | 34 | { |
34 | key_up = 1; | 35 | key_up = 1; |
35 | } | 36 | } |
36 | 37 | ||
37 | return 0; | 38 | return 0; |
38 | } | 39 | } |
40 | |||
41 | void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) | ||
42 | { | ||
43 | switch (GPIO_Pin) { | ||
44 | case GPIO_PIN_8: | ||
45 | osDelay(30); | ||
46 | if (KEY1_read() == KEY1_DOWN) | ||
47 | { | ||
48 | ledState++; | ||
49 | } | ||
50 | break; | ||
51 | default: | ||
52 | break; | ||
53 | } | ||
54 | } | ... | ... |
... | @@ -8,6 +8,8 @@ | ... | @@ -8,6 +8,8 @@ |
8 | /* Includes ------------------------------------------------------------------*/ | 8 | /* Includes ------------------------------------------------------------------*/ |
9 | #include <Hardware/led.h> | 9 | #include <Hardware/led.h> |
10 | 10 | ||
11 | LED_State ledState = LED00; | ||
12 | |||
11 | /** | 13 | /** |
12 | * control led by different modes. | 14 | * control led by different modes. |
13 | * @param ledMode led control modes | 15 | * @param ledMode led control modes | ... | ... |
... | @@ -26,6 +26,11 @@ | ... | @@ -26,6 +26,11 @@ |
26 | 26 | ||
27 | /* Private includes ----------------------------------------------------------*/ | 27 | /* Private includes ----------------------------------------------------------*/ |
28 | /* USER CODE BEGIN Includes */ | 28 | /* USER CODE BEGIN Includes */ |
29 | #include <stdio.h> | ||
30 | #include "led.h" | ||
31 | #include "beep.h" | ||
32 | #include "key.h" | ||
33 | #include "usart.h" | ||
29 | /* USER CODE END Includes */ | 34 | /* USER CODE END Includes */ |
30 | 35 | ||
31 | /* Private typedef -----------------------------------------------------------*/ | 36 | /* Private typedef -----------------------------------------------------------*/ |
... | @@ -151,13 +156,12 @@ void StartLEDTask(void *argument) | ... | @@ -151,13 +156,12 @@ void StartLEDTask(void *argument) |
151 | { | 156 | { |
152 | /* USER CODE BEGIN StartLEDTask */ | 157 | /* USER CODE BEGIN StartLEDTask */ |
153 | 158 | ||
154 | static LED_State ledState = LED00; | ||
155 | /* Infinite loop */ | 159 | /* Infinite loop */ |
156 | for(;;) | 160 | for(;;) |
157 | { | 161 | { |
162 | ledState = ledState % LED_TOTAL_STATE_NUM; | ||
158 | LED_StateControl(ledState); | 163 | LED_StateControl(ledState); |
159 | ledState = (ledState + 1) % LED_TOTAL_STATE_NUM; | 164 | osDelay(1); |
160 | osDelay(500); | ||
161 | } | 165 | } |
162 | /* USER CODE END StartLEDTask */ | 166 | /* USER CODE END StartLEDTask */ |
163 | } | 167 | } |
... | @@ -178,7 +182,7 @@ void StartKeyScanTask(void *argument) | ... | @@ -178,7 +182,7 @@ void StartKeyScanTask(void *argument) |
178 | if(KEY_Scan(0)) { | 182 | if(KEY_Scan(0)) { |
179 | BEEP_call(); | 183 | BEEP_call(); |
180 | } | 184 | } |
181 | osDelay(10); | 185 | osDelay(1); |
182 | } | 186 | } |
183 | /* USER CODE END StartKeyScanTask */ | 187 | /* USER CODE END StartKeyScanTask */ |
184 | } | 188 | } | ... | ... |
... | @@ -69,10 +69,20 @@ void MX_GPIO_Init(void) | ... | @@ -69,10 +69,20 @@ void MX_GPIO_Init(void) |
69 | HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); | 69 | HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); |
70 | 70 | ||
71 | /*Configure GPIO pin : PtPin */ | 71 | /*Configure GPIO pin : PtPin */ |
72 | GPIO_InitStruct.Pin = KEY_Pin; | 72 | GPIO_InitStruct.Pin = KEY1_Pin; |
73 | GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING; | ||
74 | GPIO_InitStruct.Pull = GPIO_PULLUP; | ||
75 | HAL_GPIO_Init(KEY1_GPIO_Port, &GPIO_InitStruct); | ||
76 | |||
77 | /*Configure GPIO pin : PtPin */ | ||
78 | GPIO_InitStruct.Pin = KEY2_Pin; | ||
73 | GPIO_InitStruct.Mode = GPIO_MODE_INPUT; | 79 | GPIO_InitStruct.Mode = GPIO_MODE_INPUT; |
74 | GPIO_InitStruct.Pull = GPIO_PULLDOWN; | 80 | GPIO_InitStruct.Pull = GPIO_PULLDOWN; |
75 | HAL_GPIO_Init(KEY_GPIO_Port, &GPIO_InitStruct); | 81 | HAL_GPIO_Init(KEY2_GPIO_Port, &GPIO_InitStruct); |
82 | |||
83 | /* EXTI interrupt init*/ | ||
84 | HAL_NVIC_SetPriority(EXTI4_15_IRQn, 3, 0); | ||
85 | HAL_NVIC_EnableIRQ(EXTI4_15_IRQn); | ||
76 | 86 | ||
77 | } | 87 | } |
78 | 88 | ... | ... |
... | @@ -25,6 +25,7 @@ | ... | @@ -25,6 +25,7 @@ |
25 | #include "task.h" | 25 | #include "task.h" |
26 | /* Private includes ----------------------------------------------------------*/ | 26 | /* Private includes ----------------------------------------------------------*/ |
27 | /* USER CODE BEGIN Includes */ | 27 | /* USER CODE BEGIN Includes */ |
28 | #include "usart.h" | ||
28 | /* USER CODE END Includes */ | 29 | /* USER CODE END Includes */ |
29 | 30 | ||
30 | /* Private typedef -----------------------------------------------------------*/ | 31 | /* Private typedef -----------------------------------------------------------*/ |
... | @@ -104,6 +105,20 @@ void HardFault_Handler(void) | ... | @@ -104,6 +105,20 @@ void HardFault_Handler(void) |
104 | /******************************************************************************/ | 105 | /******************************************************************************/ |
105 | 106 | ||
106 | /** | 107 | /** |
108 | * @brief This function handles EXTI line 4 to 15 interrupts. | ||
109 | */ | ||
110 | void EXTI4_15_IRQHandler(void) | ||
111 | { | ||
112 | /* USER CODE BEGIN EXTI4_15_IRQn 0 */ | ||
113 | |||
114 | /* USER CODE END EXTI4_15_IRQn 0 */ | ||
115 | HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_8); | ||
116 | /* USER CODE BEGIN EXTI4_15_IRQn 1 */ | ||
117 | |||
118 | /* USER CODE END EXTI4_15_IRQn 1 */ | ||
119 | } | ||
120 | |||
121 | /** | ||
107 | * @brief This function handles TIM1 break, update, trigger and commutation interrupts. | 122 | * @brief This function handles TIM1 break, update, trigger and commutation interrupts. |
108 | */ | 123 | */ |
109 | void TIM1_BRK_UP_TRG_COM_IRQHandler(void) | 124 | void TIM1_BRK_UP_TRG_COM_IRQHandler(void) | ... | ... |
... | @@ -197,7 +197,7 @@ void _sys_exit(int x) | ... | @@ -197,7 +197,7 @@ void _sys_exit(int x) |
197 | */ | 197 | */ |
198 | int fputc(int ch, FILE *f) | 198 | int fputc(int ch, FILE *f) |
199 | { | 199 | { |
200 | while ((USART1->ISR & 0X40) == 0); // 循环发?? | 200 | while ((USART1->ISR & 0X40) == 0); // 循环发�?? |
201 | USART1->RDR = (uint8_t) ch; | 201 | USART1->RDR = (uint8_t) ch; |
202 | return ch; | 202 | return ch; |
203 | } | 203 | } |
... | @@ -209,16 +209,16 @@ void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) | ... | @@ -209,16 +209,16 @@ void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) |
209 | { | 209 | { |
210 | if (huart->Instance == USART2) // 串口1 | 210 | if (huart->Instance == USART2) // 串口1 |
211 | { | 211 | { |
212 | if ((USART_RX_STA & 0x8000) == 0) // 接收未完?? | 212 | if ((USART_RX_STA & 0x8000) == 0) // 接收未完???? |
213 | { | 213 | { |
214 | if (USART_RX_STA & 0x4000) // 接收到了0x0D | 214 | if (USART_RX_STA & 0x4000) // 接收到了0x0D |
215 | { | 215 | { |
216 | if (aRxBuffer[0] != 0x0a) | 216 | if (aRxBuffer[0] != 0x0a) |
217 | USART_RX_STA = 0; // 接收错误,重新接?? | 217 | USART_RX_STA = 0; // 接收错误,重新接???? |
218 | else | 218 | else |
219 | USART_RX_STA |= 0x8000; // 接收完成 | 219 | USART_RX_STA |= 0x8000; // 接收完成 |
220 | } | 220 | } |
221 | else // 还没接收??0x0D | 221 | else // 还没接收????0x0D |
222 | { | 222 | { |
223 | if (aRxBuffer[0] == 0x0d) | 223 | if (aRxBuffer[0] == 0x0d) |
224 | { | 224 | { |
... | @@ -230,7 +230,7 @@ void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) | ... | @@ -230,7 +230,7 @@ void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) |
230 | USART_RX_STA++; | 230 | USART_RX_STA++; |
231 | if (USART_RX_STA > (USART_REC_LEN-1)) | 231 | if (USART_RX_STA > (USART_REC_LEN-1)) |
232 | { | 232 | { |
233 | USART_RX_STA = 0; // 接收错误,重新开始接?? | 233 | USART_RX_STA = 0; // 接收错误,重新开始接???? |
234 | } | 234 | } |
235 | } | 235 | } |
236 | } | 236 | } | ... | ... |
... | @@ -11,7 +11,7 @@ | ... | @@ -11,7 +11,7 @@ |
11 | <booleanAttribute key="com.st.stm32cube.ide.mcu.debug.jlink.scan_chain_auto" value="true"/> | 11 | <booleanAttribute key="com.st.stm32cube.ide.mcu.debug.jlink.scan_chain_auto" value="true"/> |
12 | <intAttribute key="com.st.stm32cube.ide.mcu.debug.jlink.scan_chain_irpre" value="0"/> | 12 | <intAttribute key="com.st.stm32cube.ide.mcu.debug.jlink.scan_chain_irpre" value="0"/> |
13 | <intAttribute key="com.st.stm32cube.ide.mcu.debug.jlink.scan_chain_pos" value="0"/> | 13 | <intAttribute key="com.st.stm32cube.ide.mcu.debug.jlink.scan_chain_pos" value="0"/> |
14 | <stringAttribute key="com.st.stm32cube.ide.mcu.debug.jlink.selected_rtos" value="RTOSPlugin_FreeRTOS"/> | 14 | <stringAttribute key="com.st.stm32cube.ide.mcu.debug.jlink.selected_rtos" value="No RTOS"/> |
15 | <stringAttribute key="com.st.stm32cube.ide.mcu.debug.launch.access_port_id" value="0"/> | 15 | <stringAttribute key="com.st.stm32cube.ide.mcu.debug.launch.access_port_id" value="0"/> |
16 | <booleanAttribute key="com.st.stm32cube.ide.mcu.debug.launch.enable_live_expr" value="true"/> | 16 | <booleanAttribute key="com.st.stm32cube.ide.mcu.debug.launch.enable_live_expr" value="true"/> |
17 | <booleanAttribute key="com.st.stm32cube.ide.mcu.debug.launch.enable_swv" value="false"/> | 17 | <booleanAttribute key="com.st.stm32cube.ide.mcu.debug.launch.enable_swv" value="false"/> |
... | @@ -70,9 +70,6 @@ | ... | @@ -70,9 +70,6 @@ |
70 | <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> | 70 | <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> |
71 | <listEntry value="4"/> | 71 | <listEntry value="4"/> |
72 | </listAttribute> | 72 | </listAttribute> |
73 | <listAttribute key="org.eclipse.debug.ui.favoriteGroups"> | ||
74 | <listEntry value="org.eclipse.debug.ui.launchGroup.debug"/> | ||
75 | </listAttribute> | ||
76 | <stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <memoryBlockExpressionList context="reserved-for-future-use"/> "/> | 73 | <stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <memoryBlockExpressionList context="reserved-for-future-use"/> "/> |
77 | <stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/> | 74 | <stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/> |
78 | </launchConfiguration> | 75 | </launchConfiguration> | ... | ... |
... | @@ -21,9 +21,10 @@ Mcu.Pin1=PC15-OSC32_OUT | ... | @@ -21,9 +21,10 @@ Mcu.Pin1=PC15-OSC32_OUT |
21 | Mcu.Pin10=PA14 | 21 | Mcu.Pin10=PA14 |
22 | Mcu.Pin11=PB6 | 22 | Mcu.Pin11=PB6 |
23 | Mcu.Pin12=PB7 | 23 | Mcu.Pin12=PB7 |
24 | Mcu.Pin13=PB9 | 24 | Mcu.Pin13=PB8 |
25 | Mcu.Pin14=VP_FREERTOS_VS_CMSIS_V2 | 25 | Mcu.Pin14=PB9 |
26 | Mcu.Pin15=VP_SYS_VS_tim1 | 26 | Mcu.Pin15=VP_FREERTOS_VS_CMSIS_V2 |
27 | Mcu.Pin16=VP_SYS_VS_tim1 | ||
27 | Mcu.Pin2=PF0-OSC_IN | 28 | Mcu.Pin2=PF0-OSC_IN |
28 | Mcu.Pin3=PF1-OSC_OUT | 29 | Mcu.Pin3=PF1-OSC_OUT |
29 | Mcu.Pin4=PA2 | 30 | Mcu.Pin4=PA2 |
... | @@ -32,12 +33,13 @@ Mcu.Pin6=PA9 | ... | @@ -32,12 +33,13 @@ Mcu.Pin6=PA9 |
32 | Mcu.Pin7=PA10 | 33 | Mcu.Pin7=PA10 |
33 | Mcu.Pin8=PA12 | 34 | Mcu.Pin8=PA12 |
34 | Mcu.Pin9=PA13 | 35 | Mcu.Pin9=PA13 |
35 | Mcu.PinsNb=16 | 36 | Mcu.PinsNb=17 |
36 | Mcu.ThirdPartyNb=0 | 37 | Mcu.ThirdPartyNb=0 |
37 | Mcu.UserConstants= | 38 | Mcu.UserConstants= |
38 | Mcu.UserName=STM32F030C8Tx | 39 | Mcu.UserName=STM32F030C8Tx |
39 | MxCube.Version=5.4.0 | 40 | MxCube.Version=5.4.0 |
40 | MxDb.Version=DB.5.0.40 | 41 | MxDb.Version=DB.5.0.40 |
42 | NVIC.EXTI4_15_IRQn=true\:3\:0\:false\:false\:true\:true\:true\:true | ||
41 | NVIC.ForceEnableDMAVector=true | 43 | NVIC.ForceEnableDMAVector=true |
42 | NVIC.HardFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false | 44 | NVIC.HardFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false |
43 | NVIC.NonMaskableInt_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false | 45 | NVIC.NonMaskableInt_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false |
... | @@ -85,8 +87,14 @@ PB7.GPIO_Speed=GPIO_SPEED_FREQ_HIGH | ... | @@ -85,8 +87,14 @@ PB7.GPIO_Speed=GPIO_SPEED_FREQ_HIGH |
85 | PB7.Locked=true | 87 | PB7.Locked=true |
86 | PB7.PinState=GPIO_PIN_RESET | 88 | PB7.PinState=GPIO_PIN_RESET |
87 | PB7.Signal=GPIO_Output | 89 | PB7.Signal=GPIO_Output |
90 | PB8.GPIOParameters=GPIO_PuPd,GPIO_Label,GPIO_ModeDefaultEXTI | ||
91 | PB8.GPIO_Label=KEY1 | ||
92 | PB8.GPIO_ModeDefaultEXTI=GPIO_MODE_IT_FALLING | ||
93 | PB8.GPIO_PuPd=GPIO_PULLUP | ||
94 | PB8.Locked=true | ||
95 | PB8.Signal=GPXTI8 | ||
88 | PB9.GPIOParameters=GPIO_PuPd,GPIO_Label | 96 | PB9.GPIOParameters=GPIO_PuPd,GPIO_Label |
89 | PB9.GPIO_Label=KEY | 97 | PB9.GPIO_Label=KEY2 |
90 | PB9.GPIO_PuPd=GPIO_PULLDOWN | 98 | PB9.GPIO_PuPd=GPIO_PULLDOWN |
91 | PB9.Locked=true | 99 | PB9.Locked=true |
92 | PB9.Signal=GPIO_Input | 100 | PB9.Signal=GPIO_Input |
... | @@ -133,7 +141,7 @@ ProjectManager.StackSize=0x400 | ... | @@ -133,7 +141,7 @@ ProjectManager.StackSize=0x400 |
133 | ProjectManager.TargetToolchain=STM32CubeIDE | 141 | ProjectManager.TargetToolchain=STM32CubeIDE |
134 | ProjectManager.ToolChainLocation= | 142 | ProjectManager.ToolChainLocation= |
135 | ProjectManager.UnderRoot=true | 143 | ProjectManager.UnderRoot=true |
136 | ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_USART1_UART_Init-USART1-false-HAL-true | 144 | ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,1-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_USART1_UART_Init-USART1-false-HAL-true,4-MX_USART2_UART_Init-USART2-false-HAL-true |
137 | RCC.AHBFreq_Value=48000000 | 145 | RCC.AHBFreq_Value=48000000 |
138 | RCC.APB1Freq_Value=48000000 | 146 | RCC.APB1Freq_Value=48000000 |
139 | RCC.APB1TimFreq_Value=48000000 | 147 | RCC.APB1TimFreq_Value=48000000 |
... | @@ -149,6 +157,8 @@ RCC.SYSCLKFreq_VALUE=48000000 | ... | @@ -149,6 +157,8 @@ RCC.SYSCLKFreq_VALUE=48000000 |
149 | RCC.SYSCLKSource=RCC_SYSCLKSOURCE_PLLCLK | 157 | RCC.SYSCLKSource=RCC_SYSCLKSOURCE_PLLCLK |
150 | RCC.TimSysFreq_Value=48000000 | 158 | RCC.TimSysFreq_Value=48000000 |
151 | RCC.USART1Freq_Value=48000000 | 159 | RCC.USART1Freq_Value=48000000 |
160 | SH.GPXTI8.0=GPIO_EXTI8 | ||
161 | SH.GPXTI8.ConfNb=1 | ||
152 | USART1.BaudRate=115200 | 162 | USART1.BaudRate=115200 |
153 | USART1.IPParameters=VirtualMode-Asynchronous,BaudRate | 163 | USART1.IPParameters=VirtualMode-Asynchronous,BaudRate |
154 | USART1.VirtualMode-Asynchronous=VM_ASYNC | 164 | USART1.VirtualMode-Asynchronous=VM_ASYNC | ... | ... |
-
Please register or sign in to post a comment