We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a9e1cc commit 251e38bCopy full SHA for 251e38b
lesson-10/stm32c031-keil/main_swap.c
@@ -1,9 +1,12 @@
1
#include "stm32c031.h"
2
#include "delay.h"
3
4
-#define LED_RED (1U << 1)
5
-#define LED_BLUE (1U << 2)
6
-#define LED_GREEN (1U << 3)
+// LED marked "LD4" on the NUCLEO-C031C6 board
+#define LD4_PIN 5U
+
7
+// external LED to be inserted between GND (short leg) and
8
+// D12 (longer leg) on the CN9 connector
9
+#define LD5_PIN 6U
10
11
int *swap(int *x, int *y);
12
int *swap(int *x, int *y) {
0 commit comments