Refs #286. Reversed polarity for the LED in the STM32F103 Nucleo demo user program.

git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@211 5dc33758-31d5-4daf-9ae8-b24bf3d40d73
This commit is contained in:
Frank Voorburg 2017-03-06 12:06:14 +00:00
parent 4cdb84a622
commit f50a725d74
3 changed files with 4 additions and 4 deletions

View File

@ -62,9 +62,9 @@ S315080063B0A553C0F600039847044640F25C03C2F2B0
S315080063C000031B68C31AB3F5FA7F2BD340F26003A8 S315080063C000031B68C31AB3F5FA7F2BD340F26003A8
S315080063D0C2F200031B7883B940F26003C2F20003DD S315080063D0C2F200031B7883B940F26003C2F20003DD
S315080063E001221A704FF40060C4F20100202146F21F S315080063E001221A704FF40060C4F20100202146F21F
S315080063F06D63C0F6000398470FE040F26003C2F2EF S315080063F06963C0F6000398470FE040F26003C2F2F3
S31508006400000300221A704FF40060C4F20100202134 S31508006400000300221A704FF40060C4F20100202134
S3150800641046F26963C0F60003984740F25C03C2F28D S3150800641046F26D63C0F60003984740F25C03C2F289
S3150800642000031C6010BD00BF00B583B000230093B5 S3150800642000031C6010BD00BF00B583B000230093B5
S3150800643001934FF48053C4F202031A6842F0010232 S3150800643001934FF48053C4F202031A6842F0010232
S315080064401A6059680022CFF6FF020A405A601A6895 S315080064401A6059680022CFF6FF020A405A601A6895

View File

@ -81,13 +81,13 @@ void LedToggle(void)
{ {
led_toggle_state = 1; led_toggle_state = 1;
/* turn the LED on */ /* turn the LED on */
GPIO_ResetBits(GPIOA, GPIO_Pin_5); GPIO_SetBits(GPIOA, GPIO_Pin_5);
} }
else else
{ {
led_toggle_state = 0; led_toggle_state = 0;
/* turn the LED off */ /* turn the LED off */
GPIO_SetBits(GPIOA, GPIO_Pin_5); GPIO_ResetBits(GPIOA, GPIO_Pin_5);
} }
/* store toggle time to determine next toggle interval */ /* store toggle time to determine next toggle interval */