aboutsummaryrefslogtreecommitdiffstats
path: root/demos/STM32/RT-STM32F746G-DISCOVERY/main.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2015-09-02 13:56:57 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2015-09-02 13:56:57 +0000
commit9b7696e58f3b006da9fdc60003f640197951681b (patch)
tree94381e5096cb9d5e1dacda694768d63dc358d596 /demos/STM32/RT-STM32F746G-DISCOVERY/main.c
parent4f5b2d0c975d001949f34d082b1efd764f97c58a (diff)
downloadChibiOS-9b7696e58f3b006da9fdc60003f640197951681b.tar.gz
ChibiOS-9b7696e58f3b006da9fdc60003f640197951681b.tar.bz2
ChibiOS-9b7696e58f3b006da9fdc60003f640197951681b.zip
STM32F7-specific LD rules file introduced. Code is accessed through the ITCM bus, constants are accessed through AXI bus. Added DMA-friendly region handling.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8270 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/STM32/RT-STM32F746G-DISCOVERY/main.c')
-rw-r--r--demos/STM32/RT-STM32F746G-DISCOVERY/main.c12
1 files changed, 9 insertions, 3 deletions
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);