Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张亚玄
/
STM32Test
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ed91450a
authored
2020-01-06 20:11:09 +0800
by
Yasin Zhang
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
change LED port define
1 parent
c48256cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
Core/Inc/Hardware/led.h
Core/Src/freertos.c
Core/Inc/Hardware/led.h
View file @
ed91450
...
...
@@ -30,20 +30,20 @@ typedef enum
#define LED_TOTAL_STATE_NUM 8
/* LED control defines --------------------------------------------------------*/
#define LED1G_Close() HAL_GPIO_WritePin(LED1
G_GPIO_Port, LED1G
_Pin, GPIO_PIN_RESET)
#define LED1G_Open() HAL_GPIO_WritePin(LED1
G_GPIO_Port, LED1G
_Pin, GPIO_PIN_SET)
#define LED1G_Close() HAL_GPIO_WritePin(LED1
B_GPIO_Port, LED1B
_Pin, GPIO_PIN_RESET)
#define LED1G_Open() HAL_GPIO_WritePin(LED1
B_GPIO_Port, LED1B
_Pin, GPIO_PIN_SET)
#define LED1R_Close() HAL_GPIO_WritePin(LED1R_GPIO_Port, LED1R_Pin, GPIO_PIN_RESET)
#define LED1R_Open() HAL_GPIO_WritePin(LED1R_GPIO_Port, LED1R_Pin, GPIO_PIN_SET)
#define LED2G_Close() HAL_GPIO_WritePin(LED2
G_GPIO_Port, LED2G
_Pin, GPIO_PIN_RESET)
#define LED2G_Open() HAL_GPIO_WritePin(LED2
G_GPIO_Port, LED2G
_Pin, GPIO_PIN_SET)
#define LED2G_Close() HAL_GPIO_WritePin(LED2
B_GPIO_Port, LED2B
_Pin, GPIO_PIN_RESET)
#define LED2G_Open() HAL_GPIO_WritePin(LED2
B_GPIO_Port, LED2B
_Pin, GPIO_PIN_SET)
#define LED2R_Close() HAL_GPIO_WritePin(LED2R_GPIO_Port, LED2R_Pin, GPIO_PIN_RESET)
#define LED2R_Open() HAL_GPIO_WritePin(LED2R_GPIO_Port, LED2R_Pin, GPIO_PIN_SET)
#define LED3G_Close() HAL_GPIO_WritePin(LED3
G_GPIO_Port, LED3G
_Pin, GPIO_PIN_RESET)
#define LED3G_Open() HAL_GPIO_WritePin(LED3
G_GPIO_Port, LED3G
_Pin, GPIO_PIN_SET)
#define LED3G_Close() HAL_GPIO_WritePin(LED3
B_GPIO_Port, LED3B
_Pin, GPIO_PIN_RESET)
#define LED3G_Open() HAL_GPIO_WritePin(LED3
B_GPIO_Port, LED3B
_Pin, GPIO_PIN_SET)
#define LED3R_Close() HAL_GPIO_WritePin(LED3R_GPIO_Port, LED3R_Pin, GPIO_PIN_RESET)
#define LED3R_Open() HAL_GPIO_WritePin(LED3R_GPIO_Port, LED3R_Pin, GPIO_PIN_SET)
...
...
Core/Src/freertos.c
View file @
ed91450
...
...
@@ -145,7 +145,7 @@ void StartLEDTask(void *argument)
/* USER CODE BEGIN StartLEDTask */
uint8_t
keyState
;
LED_State
lStates
=
LED000
;
uint8_t
beep
=
0
;
/* Infinite loop */
for
(;;)
{
...
...
Please
register
or
sign in
to post a comment