File tree 3 files changed +42
-3
lines changed
ilg.gnuarmeclipse.templates.stm/templates/stm32f4xx_exe_c_project/src
3 files changed +42
-3
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,26 @@ SysTick_Handler(void);
58
58
59
59
/* ----- LED definitions --------------------------------------------------- */
60
60
61
- /* STM32F4DISCOVERY definitions (the GREEN LED) */
62
61
/* Adjust them for your own board. */
63
62
63
+ #if defined(BOARD_OLIMEX_STM32_E407 )
64
+
65
+ /* STM32-E407 definitions (the GREEN LED) */
66
+
67
+ #define BLINK_PORT GPIOC
68
+ #define BLINK_PIN 13
69
+ #define BLINK_RCC_BIT RCC_AHB1Periph_GPIOC
70
+
71
+ #else
72
+
73
+ /* STM32F4DISCOVERY definitions (the GREEN LED) */
74
+
64
75
#define BLINK_PORT GPIOD
65
76
#define BLINK_PIN 12
66
77
#define BLINK_RCC_BIT RCC_AHB1Periph_GPIOD
67
78
79
+ #endif
80
+
68
81
#define BLINK_TICKS SYSTICK_FREQUENCY_HZ/2
69
82
70
83
// ----------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -56,13 +56,26 @@ SysTick_Handler(void);
56
56
57
57
/* ----- LED definitions --------------------------------------------------- */
58
58
59
- /* STM32F4DISCOVERY definitions (the GREEN LED) */
60
59
/* Adjust them for your own board. */
61
60
61
+ #if defined(BOARD_OLIMEX_STM32_E407 )
62
+
63
+ /* STM32-E407 definitions (the GREEN LED) */
64
+
65
+ #define BLINK_PORT GPIOC
66
+ #define BLINK_PIN 13
67
+ #define BLINK_RCC_BIT RCC_AHB1Periph_GPIOC
68
+
69
+ #else
70
+
71
+ /* STM32F4DISCOVERY definitions (the GREEN LED) */
72
+
62
73
#define BLINK_PORT GPIOD
63
74
#define BLINK_PIN 12
64
75
#define BLINK_RCC_BIT RCC_AHB1Periph_GPIOD
65
76
77
+ #endif
78
+
66
79
#define BLINK_TICKS SYSTICK_FREQUENCY_HZ/2
67
80
68
81
// ----------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -49,13 +49,26 @@ SysTick_Handler(void);
49
49
50
50
/* ----- LED definitions --------------------------------------------------- */
51
51
52
- /* STM32F4DISCOVERY definitions (the GREEN LED) */
53
52
/* Adjust them for your own board. */
54
53
54
+ #if defined(BOARD_OLIMEX_STM32_E407 )
55
+
56
+ /* STM32-E407 definitions (the GREEN LED) */
57
+
58
+ #define BLINK_PORT GPIOC
59
+ #define BLINK_PIN 13
60
+ #define BLINK_RCC_BIT RCC_AHB1Periph_GPIOC
61
+
62
+ #else
63
+
64
+ /* STM32F4DISCOVERY definitions (the GREEN LED) */
65
+
55
66
#define BLINK_PORT GPIOD
56
67
#define BLINK_PIN 12
57
68
#define BLINK_RCC_BIT RCC_AHB1Periph_GPIOD
58
69
70
+ #endif
71
+
59
72
#define BLINK_TICKS SYSTICK_FREQUENCY_HZ/2
60
73
61
74
// ----------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments