Commit Graph

143 Commits

Author SHA1 Message Date
Alexandru Gagniuc
408fa52ec3 Global: Remove temporary backup files
file.c~ (note the tilde at the end) are temporary backup files used by some
editors. They are not needed.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2013-07-08 09:59:16 -05:00
Piotr Esden-Tempski
b82cb85cc4 [STM32F3] Updated locm3 so that the newly added f3 examples compile. 2013-07-07 21:58:55 -07:00
Federico Ruiz Ugalde
fa8355225e stm32f3: cleaning some unused variables. 2013-07-07 21:44:50 -07:00
Federico Ruiz Ugalde
04a40d5cf6 stm32f3: Examples Makefile now includes f3 dir. 2013-07-07 21:44:41 -07:00
Federico Ruiz Ugalde
87db268c8e stm32f3: cdcacm example added and tested. 2013-07-07 21:42:18 -07:00
Federico Ruiz Ugalde
d0d2730db8 stm32f3discovery: spi l3gd20 example added. 2013-07-07 21:42:14 -07:00
Federico Ruiz Ugalde
98b4d42846 stm32f3discovery: Moving read and write convinience functions to libopencm3. 2013-07-07 21:41:46 -07:00
Federico Ruiz Ugalde
e1d5325736 stm32f3discovery: Adding i2c accelerometer example. 2013-07-07 21:41:26 -07:00
Federico Ruiz Ugalde
63f3bd7713 Adc example fixed (printing garbage before) and cleaned.
- Integer printing function fixed.
  	  - because of comparison against smaller than 0 numbers we must use signed numbers!
	  - Value zero was not printed at all.
	  - It was printing one more character than it should.
- Erasing unnecesary commentaries.
- Erasing debugging help.
2013-07-07 21:41:11 -07:00
Federico Ruiz Ugalde
6474ed3cf0 Flashing now using openocd. GDB Debugging possible and tested :). 2013-07-07 21:41:11 -07:00
Federico Ruiz Ugalde
4832449dd2 stm32f3discovery ld script corrected as recommended in #82. 2013-07-07 21:40:52 -07:00
Federico Ruiz Ugalde
757d044c23 stm32f3discovery examples added.
- miniblink
- button
- fancyblink
- adc
- Non tested yet! But they compile.
2013-07-07 21:40:06 -07:00
Piotr Esden-Tempski
fb4cecd05e Updated libopencm3. Disabled lpc43xx examples.
We merged a huge patchset for lpc43xx that breaks the examples. As we
are waiting for those to be updated it is better to disable the
automatic build of them.
2013-07-07 19:05:59 -07:00
Piotr Esden-Tempski
7ee888a857 Changed echo usage for printf as it is more portable. 2013-06-30 19:49:21 -07:00
hk
614d921a3b OLIMEX STM32-H107 has a 25MHz crystal 2013-06-16 19:19:32 -07:00
Piotr Esden-Tempski
d74a44e589 Added missing _write prototype. 2013-06-16 19:17:37 -07:00
Piotr Esden-Tempski
3186a4f2e7 Switched sewly added files to stdint types, as the pull request was done before the switch. 2013-06-16 19:14:55 -07:00
Alexandru Gagniuc
7639a88928 lm4f: Add USB bulk device example
I wrote this example to benchmark the USB driver. See the README.md for
full details.

Why README.md instead of just README. README.md shows up better on github,
and makes it easier to browse the tree on github to search for an example.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2013-06-16 19:11:43 -07:00
Alexandru Gagniuc
28f92cce2b lm4f: Add USB to serial (CDCACM) example
Implements a USB-to-serial adapter, compliant to the CDCACM subclass.
UART1 is used for the TX/RX lines. Although UART1 also has lines for flow
control, they are not used. Instead, the control lines are implemented in
software via GPIOA.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2013-06-16 19:11:28 -07:00
Piotr Esden-Tempski
f5b0aa5638 Updated to the new locm3 changed to stdint types. 2013-06-16 19:07:22 -07:00
Alexandru Gagniuc
adddf9e418 lm4f: Update examples to the new GPIO API
We updated the GPIO API to use the AHB bus; however the AHP aperture for
GPIO ports A through J needs to be explicitly enabled at runtime. Accessing
the AHB aperture otherwise hardfaults.

To make the examples work again, we call gpio_enable_ahb_aperture() at the
start of main().

Since we're at it, we also take out the ugly register accesses in favor
of the new gpio functions.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2013-06-06 11:26:59 -05:00
Piotr Esden-Tempski
3758ce779f Updated libopencm3. 2013-06-03 14:03:45 -07:00
Piotr Esden-Tempski
7f6b26087d Updated locm3 submodule. 2013-06-02 18:41:49 -07:00
Alexandru Gagniuc
b6cb78e9cc lm4f: Update makefile for "make flash" support
When the makefile was originally written, openocd did not officially
support ICDI. Now that ICDI support is part of an official openocd release,
update the makefile to enable flashing with "make flash".
2013-05-14 11:56:42 -05:00
Piotr Esden-Tempski
ba4d0d23d7 Updated libopencm3. 2013-05-10 18:54:42 -07:00
Alexandru Gagniuc
5036510da1 lm4f: Add UART echo by interrupt example
Nothing fancy, just a demonstration of the using the UART interrupt service
routine.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2013-05-10 15:42:28 -05:00
Alexandru Gagniuc
1a160d794b lm4f: Add basic UART echo example
Nothing fancy, just a demonstration of the blocking send and recieve.

Also update libopencm3 submodule to include the lm4f UART API.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2013-05-10 15:42:16 -05:00
Piotr Esden-Tempski
0d1008bca3 Updated libopencm3. 2013-04-26 12:19:30 -07:00
Piotr Esden-Tempski
50cacdb16a Updated libopencm3. 2013-04-25 21:08:04 -07:00
Piotr Esden-Tempski
f395592764 Updated all affected examples to the usb API change. 2013-04-25 17:44:11 -07:00
Piotr Esden-Tempski
402a7c47df Updated libopencm3. 2013-04-25 17:25:14 -07:00
Piotr Esden-Tempski
b8d2b767e2 Updated libopencm3. 2013-04-25 17:18:47 -07:00
millerd
76cdc22896 Added some comments and deleted unimportant function 2013-04-25 14:11:14 -07:00
millerd
76ebdb86cd Added example which shows how to use internal FLASH memory in STM32f107 2013-04-25 14:11:01 -07:00
Piotr Esden-Tempski
dbb7d8b1d6 Updated libopencm3. 2013-04-25 14:10:39 -07:00
Piotr Esden-Tempski
8b15cbbc25 Updated libopencm3. 2013-04-24 15:52:22 -07:00
Piotr Esden-Tempski
84325dc816 Updated libopencm3. 2013-04-21 19:21:00 -07:00
Piotr Esden-Tempski
6d88a428c3 Updated libopencm3 submodule. 2013-04-19 19:36:18 -07:00
Piotr Esden-Tempski
3d67706411 Added a check if libopencm3 submodule got cloned. 2013-04-19 19:24:03 -07:00
Piotr Esden-Tempski
753825d3cb Corrected some more paths for the new location of the library. 2013-04-19 17:53:09 -07:00
Piotr Esden-Tempski
9237f2f99c Corrected the library search path. 2013-04-19 17:41:20 -07:00
Piotr Esden-Tempski
28fe596b54 Added gitignore. 2013-04-19 17:41:03 -07:00
Piotr Esden-Tempski
9d5526f773 Initial commit. 2013-04-19 17:19:32 -07:00