From 52f3b4381b17e276beb1a4aec6b6d42b724fef01 Mon Sep 17 00:00:00 2001 From: Fabien Le Mentec Date: Sun, 16 Oct 2011 01:28:57 -0500 Subject: [PATCH] [mv] blink source into example/blink --- doc/tutorial/tutorial.pdf | Bin 102070 -> 102081 bytes doc/tutorial/tutorial.tex | 2 +- example/{ => blink}/Makefile | 0 example/{ => blink}/default_bootloader.bin | Bin example/{ => blink}/disasm.sh | 0 example/{ => blink}/main.c | 6 ++++++ example/{ => blink}/o.bin | Bin 7 files changed, 7 insertions(+), 1 deletion(-) rename example/{ => blink}/Makefile (100%) rename example/{ => blink}/default_bootloader.bin (100%) rename example/{ => blink}/disasm.sh (100%) rename example/{ => blink}/main.c (95%) rename example/{ => blink}/o.bin (100%) diff --git a/doc/tutorial/tutorial.pdf b/doc/tutorial/tutorial.pdf index bcc9065f0b1a9f8371cf98442e4dae353b3f0c31..622e60f966b993df3fadce47a4aa98c758c480e3 100644 GIT binary patch delta 2674 zcmah{dpK148b*?9gX}aIjeBmj*36ojwJ?m4L7{fG`*qx7TsI<(B~nA7+*Oj4rsR_B zYVULrYD!V$ek~LdI)y?xI#1_0PvejC`|J0-&-=aK`@P?Hvq+@ANThlOBZPq2A2E7p zKV##)_m0&;YayN;M!&14>hJBF z>6Y2WC+1?@DfvxwBs>54X@h}o=+=#$Xyu*x8r=g;GtH<8s&B0cOBjhROPtfc=-U!2 z`(22G~lf;agEau#<3v_4?wwnb+=EV_Wq&Z+pmwCW{#Ay76t*UY9O8 z&RTCMbRH|Tv--WMr&obJuUffJib2{5- zw3Vrjo9zF4*^JfPJ?$Nj>kDD&dN-lC!BKfyPR5GFMa`rY35(>Fx%$x|hWU2k8=cBQ zpDxqG1!uOyt@+ni+*J3s}cBo?%2r(($jGwsSf34a$|L;ZB2^2tTxE%1T}HFzg1o^NK7@`j3yH@8a`sExY_zcQ?K@1mTTYjP1F<$6pZq|`oe%ODot3mT4 ztL@&WF;|V3pgYggzDvEvins1P8j{V@RiRy8@w+Z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>VN;o9}wnqxW;f;e1=*Ig5-q( zEXbx97$TC*%+2r?1RRVtHNz8NvMFdr#+qVCD8v6N@j#JCq9;SWX`ytQub=2zc_N4r L)zC2CXCeA8dnh=G diff --git a/doc/tutorial/tutorial.tex b/doc/tutorial/tutorial.tex index 21bd13a..53a220d 100644 --- a/doc/tutorial/tutorial.tex +++ b/doc/tutorial/tutorial.tex @@ -88,7 +88,7 @@ $> make ; A simple LED blinking example is provided in the example directory. It is built using:\\ \begin{small} \begin{lstlisting}[frame=tb] -cd stlink.git/example ; +cd stlink.git/example/blink ; PATH=$TOOLCHAIN_PATH/bin:$PATH make ; \end{lstlisting} \end{small} diff --git a/example/Makefile b/example/blink/Makefile similarity index 100% rename from example/Makefile rename to example/blink/Makefile diff --git a/example/default_bootloader.bin b/example/blink/default_bootloader.bin similarity index 100% rename from example/default_bootloader.bin rename to example/blink/default_bootloader.bin diff --git a/example/disasm.sh b/example/blink/disasm.sh similarity index 100% rename from example/disasm.sh rename to example/blink/disasm.sh diff --git a/example/main.c b/example/blink/main.c similarity index 95% rename from example/main.c rename to example/blink/main.c index 929e3b9..91c7040 100644 --- a/example/main.c +++ b/example/blink/main.c @@ -3,6 +3,12 @@ typedef unsigned int uint32_t; +/* boot mode configuration */ + +#define CONFIG_BOOT_SRAM 1 +#define CONFIG_BOOT_FLASH 0 + + /* hardware configuration */ #define CONFIG_STM32L_DISCOVERY 1 diff --git a/example/o.bin b/example/blink/o.bin similarity index 100% rename from example/o.bin rename to example/blink/o.bin