aboutsummaryrefslogtreecommitdiffstats
path: root/demos/STM32/RT-STM32F746G-DISCOVERY
diff options
context:
space:
mode:
Diffstat (limited to 'demos/STM32/RT-STM32F746G-DISCOVERY')
-rw-r--r--demos/STM32/RT-STM32F746G-DISCOVERY/chconf.h2
-rw-r--r--demos/STM32/RT-STM32F746G-DISCOVERY/main.c12
2 files changed, 10 insertions, 4 deletions
diff --git a/demos/STM32/RT-STM32F746G-DISCOVERY/chconf.h b/demos/STM32/RT-STM32F746G-DISCOVERY/chconf.h
index 0077dbe65..fe1c8d375 100644
--- a/demos/STM32/RT-STM32F746G-DISCOVERY/chconf.h
+++ b/demos/STM32/RT-STM32F746G-DISCOVERY/chconf.h
@@ -494,7 +494,7 @@
/* Port-specific settings (override port settings defaulted in chcore.h). */
/*===========================================================================*/
-#define CORTEX_VTOR_INIT 0x08000000U
+#define CORTEX_VTOR_INIT 0x00200000U
#endif /* _CHCONF_H_ */
diff --git a/demos/STM32/RT-STM32F746G-DISCOVERY/main.c b/demos/STM32/RT-STM32F746G-DISCOVERY/main.c
index dabc687cb..c14bcf0cb 100644
--- a/demos/STM32/RT-STM32F746G-DISCOVERY/main.c
+++ b/demos/STM32/RT-STM32F746G-DISCOVERY/main.c
@@ -20,7 +20,7 @@
/*
* This is a periodic thread that does absolutely nothing except flashing
- * a LED attached to TP1.
+ * a LED.
*/
static THD_WORKING_AREA(waThread1, 128);
static THD_FUNCTION(Thread1, arg) {
@@ -28,9 +28,9 @@ static THD_FUNCTION(Thread1, arg) {
(void)arg;
chRegSetThreadName("blinker");
while (true) {
- palSetPad(GPIOH, GPIOH_TP1);
+ palSetPad(GPIOI, GPIOI_ARD_D13);
chThdSleepMilliseconds(500);
- palClearPad(GPIOH, GPIOH_TP1);
+ palClearPad(GPIOI, GPIOI_ARD_D13);
chThdSleepMilliseconds(500);
}
}
@@ -51,6 +51,12 @@ int main(void) {
chSysInit();
/*
+ * GPIOI1 is programmed as output (board LED).
+ */
+ palClearPad(GPIOI, GPIOI_ARD_D13);
+ palSetPadMode(GPIOI, GPIOI_ARD_D13, PAL_MODE_OUTPUT_PUSHPULL);
+
+ /*
* Activates the serial driver 1 using the driver default configuration.
*/
sdStart(&SD1, NULL);