Commit Graph

783 Commits

Author SHA1 Message Date
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 7f1e75c3a8 other/*: Random coding-style fixes. 2011-11-13 23:16:13 +01:00
Uwe Hermann 8a77630997 other/i2c_stts75_sensor: Cosmetics. 2011-11-13 23:16:12 +01:00
Uwe Hermann 53a0c44bfd s/led/LED/. 2011-11-12 17:53:07 +01:00
Uwe Hermann 4cf395d3c9 obldc examples: Fix comments and coding-style. 2011-11-12 17:53:06 +01:00
Uwe Hermann f3f1123d07 other/dogm128: Coding-style fixes. 2011-11-12 17:53:05 +01:00
Uwe Hermann cd259c6eb3 other/adc_temperature_sensor: Cosmetics. 2011-11-12 17:53:05 +01:00
Uwe Hermann 61ff27cfbe other/dma2mem: Fix typos and coding-style. 2011-11-12 17:53:04 +01:00
Uwe Hermann 793bd23851 mb525: Fix coding-style and comments. 2011-11-12 17:53:04 +01:00
Uwe Hermann 905badef24 lisa-m/usbhid: Use short types such as u8. 2011-11-12 17:53:03 +01:00
Uwe Hermann bc1f581991 lisa-m/usbhid: Coding-style fixes. 2011-11-12 17:53:02 +01:00
Uwe Hermann b1819507b7 lisa-m/usb_cdcacm: Coding-style/whitespace fixes. 2011-11-12 17:53:02 +01:00
Uwe Hermann f23d9d07b7 lisa-m/fancyblink: Fix copy-pasted code comments. 2011-11-12 17:53:01 +01:00
Uwe Hermann 99f4ca3b22 lm3s: Cosmetics. 2011-11-12 17:53:01 +01:00
Gareth McMullin 30e188cf07 Only allow one packet in TX fifos.
This fixes a problem where packets were written too quickly.
The hardware disabled the endpoint after the fist packet is sent,
and others just waited in the queue.
2011-11-12 21:44:37 +13:00
Gareth McMullin 7546ad9736 Fixed loading of .data in linker scripts.
This fixes a problem where the linker included some padding
bytes between the end of the .text section (_etext) and the
start of the .data section.

The C runtime copies from _etext, so all static initialised data
was corrupted.  This change forces the .data section to be written
at _etext to avoid this problem.
2011-11-12 21:29:41 +13:00
Uwe Hermann 6ce8d61097 stm32f4-discovery/miniblink: Fix board name typo. 2011-11-11 21:54:43 +01:00
Uwe Hermann e626a72561 stm32/dbgmcu.h: Document reserved bits, cosmetic fixes. 2011-11-11 21:51:01 +01:00
Uwe Hermann 6967a02576 stm32/iwdg.h: Document reserved bits. 2011-11-11 21:50:18 +01:00
Uwe Hermann 581084dd39 stm32/pwr.h: Document reserved bits. 2011-11-11 21:49:10 +01:00
Uwe Hermann 1d592c1627 stm32/wwdg.h: Document reserved bits, add WWDG_CFG_W. 2011-11-11 21:48:35 +01:00
Uwe Hermann 45581dc220 stm32/fsmc.h: Document reserved bits. 2011-11-11 21:48:06 +01:00
Uwe Hermann e4dc82879e stm32/fsmc.h: s/FSMC_PMEM_MEMHOLDX/FSMC_PMEM_MEMWAITX/.
This was a copy-paste error.
2011-11-11 21:46:41 +01:00
Uwe Hermann b874da24f2 stm32/f4/pwr.h: Document reserved bits. 2011-11-11 21:44:11 +01:00
Uwe Hermann b05eff8dbf stm32/f2/pwr.h: Document reserved bits. 2011-11-11 21:43:41 +01:00
Uwe Hermann db3c0870bb stm32/crc.h: Document reserved bits. 2011-11-11 21:43:35 +01:00
Uwe Hermann 257fc810cb STM32F4: Fix typos, s/F2/F4/. 2011-11-11 21:40:57 +01:00
Uwe Hermann 47a116ef4f HACKING: Document the examples/ directory layout. 2011-11-11 21:37:41 +01:00
Uwe Hermann 6c278b19b4 Makefile: Add 'doxy' target for doxygen docs.
A top-level 'make clean' will remove the whole doxygen/ output directory.
2011-11-11 21:27:29 +01:00
Uwe Hermann 23a6f154cd common.h: Add Doxygen main page text. 2011-11-11 21:23:30 +01:00
Uwe Hermann ef908e0725 Doxyfile: Configure for libopencm3 needs. 2011-11-11 21:23:26 +01:00
Uwe Hermann 9a2dacd3b4 Add auto-generated Doxygen config file. 2011-11-11 21:04:20 +01:00
Uwe Hermann 6462a646d1 stm32/spi.c: Coding style fixes and typo fixes. 2011-11-10 22:45:56 +01:00
Uwe Hermann 74fcd70f93 stm32/spi.h: Fix typos, add comments. 2011-11-10 22:30:31 +01:00
Uwe Hermann 46f90a54ae STM32F2/F4: SPI fixes.
- Rename SPI_CR2_FRF_TI to SPI_CR2_FRF_TI_MODE to match datasheet.

 - Rename SPI_CR2_FRF_MOTOROLA to SPI_CR2_FRF_MOTOROLA_MODE (see above).

 - Fix SPI_CR2_FRF_MOTOROLA_MODE bit definition, must be (0 << 4).

 - Change SPI_SR_RXNE to SPI_SR_TIFRFE; this was probably a copy-paste
   error. Also, the bit definition is (1 << 8).
2011-11-10 22:15:45 +01:00
Uwe Hermann e797fd978b Cosmetic fixes in license headers. 2011-11-10 21:40:29 +01:00
Stephen Caudle 4c18313da6 Fix alignment issue in data section 2011-11-07 23:23:16 -05:00
Uwe Hermann 42e531c7c4 Makefile: Fix 'install' target.
Thanks to CheBuzz on IRC for pointing this out.
2011-11-03 20:45:04 +01:00
Stephen Caudle 3c9ba2ac2d Add usart example for STM32F4 discovery board 2011-11-02 22:50:49 -04:00
Stephen Caudle 30b5c89726 Add USART6 definitions to STM32F3 & STM32F4 2011-11-02 22:37:47 -04:00
Uwe Hermann 44bf853e6e stm32-h103 examples: Cosmetic and coding style fixes. 2011-11-03 00:57:46 +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
Uwe Hermann bc320f5453 stm32/f1/lisa-m/usb_hid: Fix compiler warning.
BUILD   examples/stm32/f1/lisa-m/usb_hid
usbhid.c: In function 'main':
usbhid.c:316:10: warning: unused variable 'x'
2011-11-02 22:16:57 +01:00
Uwe Hermann cc3565a544 Various cosmetic and whitespace fixes. 2011-11-02 22:13:01 +01:00
Stephen Caudle dc19a4ecfb Rename STM32 discovery folders to be more specific 2011-11-02 14:56:37 -04:00
Stephen Caudle d9a76c75c2 Add timer support for STM32F2 & STM32F4 2011-11-02 14:26:36 -04:00
Stephen Caudle 505a05ccf4 Add STM32F4 fancyblink example 2011-11-02 14:26:35 -04:00
Stephen Caudle d17e548c6f Add STM32F4 button example 2011-11-02 14:26:34 -04:00
Stephen Caudle 62c105abeb Fix APB1 & APB2 frequencies in STM32F4 RCC table 2011-11-02 14:26:33 -04:00