17 Commits

Author SHA1 Message Date
chrysn
94ce82396b modified examples to use libopencm3/cm3/nvic.h instead of /stm32/ 2012-10-18 13:28:03 +02:00
Felix Ruess
b7ebe6e705 fix clean target for example makefiles if the compiler is not in PATH 2012-10-16 14:09:42 -07:00
Paul Sokolovsky
d6e0e6e976 Explicitly link example binaries statically.
This allow good share of binaries be linkable (and actually run) with a
typical distro-packaged ARM toolchain (Cortex-A and Linux targetted).
2012-09-25 00:31:31 +03:00
Piotr Esden-Tempski
11727f56c9 Minor build system fixes. 2012-08-25 19:53:15 -07:00
Piotr Esden-Tempski
fa5d689f78 Use make wildcard command for source dir detect. Library path fix.
Thanks ni!
2012-08-14 17:48:23 -07:00
Piotr Esden-Tempski
b82e7eee52 Examples detect if they are being built in src dir.
If an example is in the libopencm3 source directory it will use the
locally built library instead of the system library.

When you copy an example out of the libopencm3 tree it will
automatically detect it and build using the system wide installation.
2012-08-13 15:29:01 -07:00
Tomaz Solc
bf65589183 Support for exception handling in linker scripts.
This is needed even in plain C when 64 bit variable (e.g. long long int)
arithmetic is used. For example it is required when newlib is compiled with
--enable-newlib-io-long-long.

Conflicts:

	lib/stm32/f1/libopencm3_stm32f1.ld
	lib/stm32/f2/libopencm3_stm32f2.ld
2012-04-24 09:16:22 +02:00
Piotr Esden-Tempski
789ae97212 Some additional LGPL3+ license change cleanups.
Changed the license to LGPL3+ for some makefiles that got ommited in the
previous big patch commit.

Corrected a find and replace error in a linker file.
2012-03-02 15:39:15 -08:00
Piotr Esden-Tempski
43561de329 License change of the library to LGPL, version 3 or later.
Agreed to by all the significant contributors to the library.
2012-03-02 14:44:49 -08:00
Uwe Hermann
9532195e65 More coding-style and cosmetic fixes. 2012-02-06 23:39:06 +01:00
Fergus Noble
d071a9ffde Cleaned up the jobygps examples. 2012-02-06 23:08:07 +01:00
Piotr Esden-Tempski
2bc1025bc5 Updated all examples to use the new/old usart_set_baudrate api. 2011-11-16 18:41:48 -08:00
Uwe Hermann
bb8741a79b examples: Even more coding-style fixes. 2011-11-13 23:21:58 +01:00
Uwe Hermann
c3fea659d1 examples: Remove duplicate example linker scripts.
Only add one linker script per eval board, and have the Makefiles use that.

This avoids duplication, and various copy-paste errors and left-overs
which we already have in the tree.

Some of the linker scripts are not really correct, yet. Both, the comments
which say which board, chip, and RAM/ROM sizes are used, as well as the
actual RAM/ROM size definitions are sometimes copy-pasted from other boards
and are thus incorrect. This needs to be fixed.
2011-11-13 23:21:26 +01:00
Uwe Hermann
e797fd978b Cosmetic fixes in license headers. 2011-11-10 21:40:29 +01:00
Uwe Hermann
a3ce2924df stm32f1/f2: Update to recent OpenOCD syntax.
Newer versions of OpenOCD expect

  stm32f1x mass_erase 0
or
  stm32f2x mass_erase 0

instead of

  stm32x mass_erase 0

So far, there doesn't seem to be an explicit F4 command, so leave that
untouched for now.
2011-11-02 22:30:41 +01:00
Stephen Caudle
580d25a84b Move STM32 example projects in family specific folders 2011-10-31 00:16:37 -04:00