Commit Graph

462 Commits

Author SHA1 Message Date
chrysn 0e62b15125 added lcd example
the way text is generated is currently rather awkward, looking for a
better solution.
2012-04-04 19:59:47 +02:00
Taylor Vesely 66c5f91a87 Implemented gpio_clear() for LPC17xx. 2012-03-27 16:42:36 -06:00
Taylor Vesely bf2b8aad2f Added a bunch of register definitions and gpio_set() to LPC17xx gpio. 2012-03-26 16:43:43 -06:00
Taylor Vesely 9eb77c9fd7 Wrote miniblink.c for Blueboard-LPC1768-H, cleaned up gpio.h. 2012-03-22 16:22:22 -07:00
Taylor Vesely 82f89c414a Started to set up GPIO registers. 2012-03-22 16:22:21 -07:00
Taylor Vesely cec41eb0c4 Filled in the APB0 memory map for the lpc17xx. Also set values for the
GPIO on AHB.
2012-03-22 16:22:21 -07:00
Taylor Vesely 60788fd9d2 Started porting to LPC17xx. Created file stubs and started conversion. 2012-03-22 16:22:21 -07:00
Daniel O'Connor 404353b1aa - Add FSMC helper macros. IMO FSMC_BTR_ACCMOD aren't much use, but I left them in case someone uses them.
- FSMC_BASE is already in memorymap.h so don't define it here.
2012-03-22 15:43:07 -07:00
Daniel O'Connor 5a463f03e1 Cast PERIPH_BASE to unsigned otherwise certain operations result in build problems (overflow signed type). 2012-03-22 15:41:43 -07:00
Daniel O'Connor f76e99c98d Add mask for SWJ bits.
(These are write only)
2012-03-22 15:41:19 -07:00
Fergus Noble a30fc96c59 Revert "Fix setting alternate port functions on the STM32F2."
This was also fixed in ac29b654a9 in a
different way. I think the mask definition should be left with 1s
indicating the bits of interest.

See also 87ea496ca7.

This reverts commit 2433f17e73.
2012-03-21 20:19:36 -07:00
Fergus Noble 87ea496ca7 Revert "Fix setting alternate port functions on the STM32F4."
This was also fixed in ac29b654a9 in a
different way. I think the mask definition should be left with 1s
indicating the bits of interest.

This reverts commit e11185d47d.
2012-03-21 20:16:10 -07:00
Piotr Esden-Tempski ec34e21ead Changed parameter size for trigger enable. 2012-03-19 20:20:05 -07:00
Piotr Esden-Tempski 451a5e227d Started some cleanup in the ADC headers and convenience code. 2012-03-19 17:38:24 -07:00
Piotr Esden-Tempski 4e26104c18 Fixed position of PSIZE bits, thanks to Patrick for spotting this. 2012-03-17 16:17:40 -07:00
Piotr Esden-Tempski aaa0158221 Fixed operation order for dma bit calculations. 2012-03-13 12:18:28 -07:00
chrysn da4567a035 efm32: registers for leds 2012-03-04 22:48:13 +01:00
chrysn 692817059c various enhancements for header generation
* don't reference sections that don't exist (typically happens for
  registers that don't contain any fields and are interpreted
  numerically.

* allow templates to use override_backref for surpressing the list of
  registers that use it

* print doc for fields even when it uses values or only exports a mask

* allow fields to define their own mask; those fields have to define
  their values explicitly too, and don't have to provide a shift

* don't print a "No values defined for the field" lines, as there's
  always a mask in that case by now.
2012-03-04 22:43:52 +01:00
chrysn c2fdd6e751 header file generation learned register templates
registers that have the same structure can now use shared value
definitions. the abstraction is kept active through the header
generation; that is, no cartesian product code is generated.
2012-03-04 19:45:13 +01:00
chrysn e1a660eb9d efm32 cmu: convenience functions
includes a fix for the register definitions (subtle differences between
two fields)
2012-03-04 16:59:20 +01:00
chrysn 61b649370f efm32: generate _MASK constants
constants are generated for all fields that either have named values or
length > 1
2012-03-04 16:57:43 +01:00
chrysn bc1bff477b efm32: shortened doxygen names and grouped them per chip family 2012-03-04 16:56:48 +01:00
chrysn d3fe8c18f8 experimental yaml based header file generation
the header file genertion mechanism here is designed to:

* use human readable source data that is better structured and less
  repetitive than the header files themselves

* produce same quality header files than the manual process of writing
  them. some features were not yet enabled to show that the existing
  headers didn't change. (look at emu.h's differences. whitespace
  switched from tabs to spaces as they are easier to handle, use
  --color-words to see the few differences that stemmed from
  inconsistencies in the original file.)

* be less tedious and thus error prone when doing large modifications
  (eg, i forgot to add _MASK to bitfields, would like to enable
  bitbanding acces, and to overhaul the naming in doxygen modules)
2012-03-04 12:49:06 +01:00
chrysn cdf36e6c8e efm32: some more cmu registers and doxygen update 2012-03-03 20:19:03 +01:00
chrysn 78c93dc779 add missed license headers to efm32 files
some files had nonstandard shared copyright lines, fixed them too
2012-03-03 00:26:55 +01:00
chrysn 4668adcf1f follow the license change to lgpl3 in efm32
this follows the license change of the master branches in [43561de]. all
files whose copyright is not my own are originally based on files whose
license has been changed in master.

the expression used for the conversion was:

sed -i -e 's/This program is free software: you can redistribute/This library is free software: you can redistribute/g' -e 's/under the terms of the GNU General Public License as published/under the terms of the GNU Lesser General Public License as published/' -e 's/This program is distributed in the hope that/This library is distributed in the hope that/g' -e 's/You should have received a copy of the GNU General/You should have received a copy of the GNU Lesser General/' -e 's/along with this program.  If not/along with this library. If not/' -e 's/GNU General Public License for more details/GNU Lesser General Public License for more details/' */**/efm32/**/*(.)

[43561de] 43561de329
2012-03-03 00:21:21 +01:00
chrysn 563586c072 Merge branch 'master' into efm32 2012-03-02 23:59:52 +01: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
chrysn e388056fda efm32: energy management unit headers and example 2012-03-02 21:54:23 +01:00
chrysn eda122180a (efm32: remove todo that couldn't work out) 2012-03-02 21:53:52 +01:00
Piotr Esden-Tempski 994d559a6c Corrected interrupt flag register defines. 2012-02-29 18:00:10 -08:00
Piotr Esden-Tempski f5cd026ae3 Added dma_channel_reset prototype. 2012-02-29 17:53:46 -08:00
chrysn 541fded753 convenience functions for efm32 gpio
also, the whole gpio header file is now a big doxygen group, structuring
the convenience functions and the register/value definitions
2012-03-01 02:18:22 +01:00
Piotr Esden-Tempski ec904f176b Cleaned up and streamlined DMA support for f1. Definitely needs a bunch of testing! 2012-02-29 16:02:51 -08:00
chrysn a747e887bd efm32 tinygecko gpio: implemented all the bit values
along with the actual implementation comes a first attempt to better
structure the doxygen groups. putting all the groups in a bigger one
makes it easier to reference them from the file itself, and makes the
structure clearer on the module page.
2012-02-29 02:32:14 +01:00
Piotr Esden-Tempski c49f505df4 Added spi reset convenience function. 2012-02-28 11:28:29 -08:00
chrysn f4376371ec efm32: minor documentation enhancements 2012-02-27 13:24:19 +01:00
chrysn f6025af859 efm32 tinygecko: defined interrupts
there seems not to be anything family specific about the interrupt
vectors of m3 based efm32 systems, thus renaming vector.h to irq.h
2012-02-27 13:21:40 +01:00
chrysn be62115f00 efm32: created memory map from all base addresses 2012-02-27 12:01:41 +01:00
chrysn 2275ed7b0c overhauled documentation
includes minor refactoring in example code and modification of how the
generic and the tinygecko specific vector.h go together (bringing it in
line with stm32/f1's memorymap.h)
2012-02-26 03:42:25 +01:00
chrysn 08918902ab made blinking a led on efm32 possible
this includes all register definitions for the gpu and mcu modules, but
not all their bit definitions
2012-02-25 23:22:37 +01:00
chrysn 2180a02e2f first attempt at porting libopencm3 to energymicro
unless sources are explicitly given, the linker scripts and make files
were copied over from the stm32/f1 port.
2012-02-25 23:22:37 +01:00
Piotr Esden-Tempski 2b3f07ee08 Added reset function to i2c convenience functions. 2012-02-24 17:14:50 -08:00
Piotr Esden-Tempski cbef43ddd8 Added set priority group convenience function. 2012-02-24 16:43:37 -08:00
Piotr Esden-Tempski c5e5c0fdab Updated SCB_AIRCR_PRIGROUP bit definitions to be more consistent with the style the library. 2012-02-24 16:21:23 -08:00
Piotr Esden-Tempski bffbb0e54d Added missing gpio definitions for timer 5. 2012-02-13 19:45:28 -08:00
Piotr Esden-Tempski 5a384ff895 Added combined gpio bank definitions to timers as you tend to set those up in bulk. 2012-02-13 16:02:08 -08:00
Piotr Esden-Tempski b325c81127 Forgot some BANK suffixes. 2012-02-13 13:51:41 -08:00
Piotr Esden-Tempski d4ea773de4 Added bank definitions to f1 gpio header. 2012-02-13 13:40:49 -08:00
Gareth McMullin 2433f17e73 Fix setting alternate port functions on the STM32F2.
Thanks to Ricardo Martins.
2012-02-12 15:00:09 -08:00
Gareth McMullin e11185d47d Fix setting alternate port functions on the STM32F4.
Thanks to Ricardo Martins.
2012-02-12 15:00:09 -08:00
Mike Smith 7da1967056 Add an interface for soft disconnection, and hook it up in the F107 driver. 2012-02-12 15:00:08 -08:00
Uwe Hermann 5f82f28d01 f2/dma.h: Whitespace and coding-style fixes. 2012-02-06 23:27:00 +01:00
Fergus Noble 9949b5dcf4 Fixed typo in F2 dma header to match the datasheet. 2012-02-06 23:08:07 +01:00
Fergus Noble 477c410be4 Added functions to enable and disable DMA from stm32 USART. 2012-02-06 23:08:07 +01:00
Fergus Noble 31b0466525 DMA register definitions for F2. 2012-02-06 23:08:06 +01:00
Gareth McMullin 0731bba610 usb: Added support for Interface Association descriptors. 2011-12-28 21:05:41 +13:00
Gareth McMullin 651917aeb4 Added USB example for stm32f4.
Moved clock enable for OTG_FS back into applications.  This and gpio config
are the only differences between f107 and f2xx/f4xx.
2011-12-17 14:11:39 +13:00
Piotr Esden-Tempski 8af809a12a Reverted the api of the usart_set_baudrate function to hide the clock rail selection again. 2011-11-16 18:41:48 -08:00
Piotr Esden-Tempski 679f39426f Cleaned up header inclusion selection macros. 2011-11-16 18:41:48 -08:00
Piotr Esden-Tempski c6f30043fd Added UART4 and UART5 gpio definitions for stm32f1. Also corrected the naming everywhere. Both peripherals are UARTS not U_S_ARTS. 2011-11-16 18:17:56 -08: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 23a6f154cd common.h: Add Doxygen main page text. 2011-11-11 21:23:30 +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 30b5c89726 Add USART6 definitions to STM32F3 & STM32F4 2011-11-02 22:37:47 -04:00
Stephen Caudle d9a76c75c2 Add timer support for STM32F2 & STM32F4 2011-11-02 14:26:36 -04:00
Uwe Hermann 9f821a5dd4 Minor whitespace fixes. 2011-11-02 02:19:51 +01:00
Stephen Caudle 1fea1df39a Fix more STM32 whitespace issues 2011-10-31 11:11:03 -04:00
Stephen Caudle 6da485f06d Fix STM32 flash programming doc links 2011-10-31 09:25:05 -04:00
Stephen Caudle 5a89d44591 Add initial support for STM32F4 2011-10-31 00:41:19 -04:00
Stephen Caudle 05bc9d10f1 Add generic STM32F2 RCC clock function 2011-10-31 00:17:53 -04:00
Stephen Caudle 822d75adb7 Clean up whitespace in stm32f2 GPIO 2011-10-30 17:49:50 -04:00
Stephen Caudle e2ed7824cf Clean up whitespace in stm32f2 RCC
Also make RCC IO defines consistent with stm32f1.
2011-10-30 17:49:41 -04:00
Stephen Caudle eb47f0cfc0 Add SCB from stm32f1 2011-10-30 17:42:49 -04:00
Uwe Hermann 788f3870c4 Merge remote-tracking branch 'fnoble/stm32f2' 2011-10-29 22:19:12 +02:00
Gareth McMullin b05a5dcf2a Fixed some F105/F107 USB issues. Added user callback on SOF.
Made examples depend on lib.
2011-10-29 21:30:26 +13:00
Stephen Caudle fd2524beb0 Merge remote-tracking branch 'fnoble/stm32f2' into stm32fx
Conflicts:
	lib/stm32f2/Makefile
2011-10-27 23:39:16 -04:00
Stephen Caudle 36cff03af1 Add RCC and FLASH support for STM32F2 2011-10-27 23:34:52 -04:00
Fergus Noble 20c33d1ae3 Add header for F2 syscfg peripheral. 2011-10-26 13:29:14 -07:00
Fergus Noble 6dd3190bb9 Fix NVIC defines for F2. 2011-10-26 13:28:52 -07:00
Fergus Noble 878c094871 Added alternative function for doing an SPI transfer. 2011-10-12 22:20:22 -04:00
Fergus Noble 84b9f85941 Moving a couple more headers to stm common. 2011-10-12 22:20:22 -04:00
Fergus Noble d1272acaad Initial move of USART code to common, still needs some work. 2011-10-12 22:18:43 -04:00
Fergus Noble 0565cb8378 RCC header file for F2 implemented, no convenience functions so far. 2011-10-12 22:17:17 -04:00
Fergus Noble 4d02d36d6b Moving nvic code to common, adding F1 and F2 specific user interrupt definition headers. 2011-10-12 22:17:16 -04:00
Fergus Noble ca412a9ed2 Move systick to stm32 common. 2011-10-12 22:17:16 -04:00
Fergus Noble 666b8f12d5 Fixing something I forgot to update after restructuring the include directories. 2011-10-12 22:13:02 -04:00
Fergus Noble 60dcacccb7 Some updates to the F2 GPIO header plus implementation of GPIO convenience functions. 2011-10-12 22:13:01 -04:00
Fergus Noble 95d4532595 Initial import of F2 GPIO peripheral header file. 2011-10-12 22:13:01 -04:00
Fergus Noble 4eff339e8c Restructuring stm32 include directories. 2011-10-12 22:13:01 -04:00
Fergus Noble 0d4931f91f Moved timer stuff to common and added F2 specific header. 2011-10-12 22:13:01 -04:00
Fergus Noble fd2eb7a1bd Moved I2C to common, no changes needed. 2011-10-12 22:13:01 -04:00
Fergus Noble 69fb967eed Moves usart over to common and added F2 specific header. 2011-10-12 22:13:01 -04:00
Fergus Noble ab871dde0b Unnecessary include removed. 2011-10-12 22:13:01 -04:00
Fergus Noble ac18a04869 Moved spi header over to common and created F2 specific header. 2011-10-12 22:13:01 -04:00
Fergus Noble 6bf33af010 Moved pwr.h to stm_common and added F2 series specific extensions in its own header. 2011-10-12 22:13:01 -04:00
Fergus Noble e77bbff125 Fixing small typo. 2011-10-12 22:13:01 -04:00
Fergus Noble 76700510e0 Ability to choose memorymap for stm_common headers with define. 2011-10-12 22:13:01 -04:00
Fergus Noble cf8171e469 Moving stm header files that are common to f1 and f2 series into their own folder. 2011-10-12 22:13:01 -04:00
Fergus Noble 18648708c8 Moving renaming stm32 header files for f1 series. 2011-10-12 22:13:01 -04:00
Fergus Noble 5ba3e77246 Adding memory map for the stm32f2 series. 2011-10-12 22:13:00 -04:00
Fergus Noble 4809f7dacf Added alternative function for doing an SPI transfer. 2011-10-04 16:06:01 -07:00
Fergus Noble 11b856822d Moving a couple more headers to stm common. 2011-09-26 14:21:42 -07:00
Fergus Noble 508e18b26b Initial move of USART code to common, still needs some work. 2011-09-22 13:52:43 -07:00
Fergus Noble 792a806ecd RCC header file for F2 implemented, no convenience functions so far. 2011-09-16 17:34:08 -07:00
Fergus Noble 3a426b34aa Moving nvic code to common, adding F1 and F2 specific user interrupt definition headers. 2011-09-15 16:26:39 -07:00
Fergus Noble 7889cb66c7 Move systick to stm32 common. 2011-09-15 14:59:55 -07:00
Fergus Noble b4d71f3706 Fixing something I forgot to update after restructuring the include directories. 2011-09-15 01:17:45 -07:00
Fergus Noble 6912cbe71f Some updates to the F2 GPIO header plus implementation of GPIO convenience functions. 2011-09-14 23:57:43 -07:00
Fergus Noble aa3089e8c4 Initial import of F2 GPIO peripheral header file. 2011-09-14 22:36:15 -07:00
Fergus Noble af64b76bd6 Restructuring stm32 include directories. 2011-09-14 13:47:33 -07:00
Fergus Noble 87d4045c22 Moved timer stuff to common and added F2 specific header. 2011-09-13 18:39:44 -07:00
Fergus Noble f3779fbefa Moved I2C to common, no changes needed. 2011-09-12 23:28:52 -07:00
Fergus Noble 00e26ec7b6 Moves usart over to common and added F2 specific header. 2011-09-12 22:13:55 -07:00
Fergus Noble 57868b1f67 Unnecessary include removed. 2011-09-12 21:11:24 -07:00
Fergus Noble 0ab26a05a8 Moved spi header over to common and created F2 specific header. 2011-09-12 21:11:09 -07:00
Fergus Noble 5e5988e284 Moved pwr.h to stm_common and added F2 series specific extensions in its own header. 2011-09-12 20:49:43 -07:00
Fergus Noble 8a5ad8f564 Fixing small typo. 2011-09-12 20:48:56 -07:00
Fergus Noble 89eb1921d9 Ability to choose memorymap for stm_common headers with define. 2011-09-12 20:48:41 -07:00
Fergus Noble da1af2cece Moving stm header files that are common to f1 and f2 series into their own folder. 2011-09-12 18:12:11 -07:00
Fergus Noble 1a1d8d63ba Moving renaming stm32 header files for f1 series. 2011-09-12 18:09:10 -07:00
Fergus Noble 8f5da14250 Adding memory map for the stm32f2 series. 2011-09-12 18:05:41 -07:00
Uwe Hermann 089bb73018 Merge remote-tracking branch 'gsmcmullin/master'. 2011-04-28 19:42:35 +02:00
Gareth McMullin 3ac0ae839d Added extra interrupt vectors for STM32 connectivity line. 2011-04-24 14:31:56 +12:00
Gareth McMullin ef0ff192f7 Added usbd_ep_nak_set() to force flow control on OUT endpoints. 2011-03-30 07:17:02 +13:00
Piotr Esden-Tempski 149c0c7dc0 Added missing 12mhz to 72mhz rcc setup routine prototype. 2011-03-15 11:27:28 -07:00
Gareth McMullin 6bbc4c2f7c Fixed non-control endpoints for connectivity line USB. 2011-03-15 20:33:02 +13:00
Gareth McMullin bf0d1a7b41 Connectivity line USB driver now enumerating correctly. 2011-03-14 20:31:32 +13:00
Piotr Esden-Tempski 3d20f37b27 RCC now has two variables to hold the current apb1 and apb2 frequency. 2011-03-11 19:49:23 -08:00
Gareth McMullin 554feb7f27 USB driver for Connectivity-line devices partially working. 2011-02-20 12:28:23 +13:00
Gareth McMullin f0a1282d42 Added ITM and TPIU register definitions. 2011-02-17 21:38:38 +13:00
Gareth McMullin e64a9d2bf9 Minor cleanup of usb. Template driver for STM32F107 added. 2011-02-10 19:58:51 +13:00
Uwe Hermann 0a0ce22762 Add rcc_clock_setup_in_hse_8mhz_out_24mhz().
Thanks Marko Kraljevic <krasnaya.zvezda@gmail.com> for the patch!
2011-02-09 02:48:51 +01:00
Gareth McMullin d67795f383 Added missing lm3s header files. 2011-02-09 14:31:17 +13:00
Gareth McMullin 4b5f9b4a35 Added missing lm3s gpio.h. 2011-02-09 14:28:06 +13:00
Uwe Hermann 559bc52fa4 Add some missing LIBOPENCM3_ prefixes. 2011-02-09 01:36:06 +01:00
Uwe Hermann 401a0a8e8b FPB: More consistency fixes.
Fix incorrect FPB_CTRL_NUM_CODE2_MASK value, too.
2011-02-09 01:34:50 +01:00
Uwe Hermann 87c94e9a37 FPB: Fix typo. 2011-02-09 01:18:55 +01:00
Uwe Hermann 47e2736013 FPB: Minor additions, consistency fixes. 2011-02-09 01:18:15 +01:00
Uwe Hermann 447c333cec Minor cosmetics, whitespace. 2011-02-09 01:06:43 +01:00
Gareth McMullin 5aa39a5264 Added missing DBGMCU_BASE to STM32 memorymap.h 2011-02-08 19:43:10 +13:00
Gareth McMullin 0d7d0fe829 Added Flash Patch and Breakpoint (FPB) register definitions. 2011-02-08 19:40:16 +13:00
Gareth McMullin 4954b4c006 Added ARMv7-M Core Debug (SCS) register definitions. 2011-02-08 19:26:38 +13:00
Gareth McMullin d4b04cbd26 Added STM32 DBGMCU register definitions. 2011-02-08 19:07:59 +13:00
Piotr Esden-Tempski c7587f11ec Added get flag and get counter functions to timer. Allow proper interrupt handling and recording timer counter values. 2011-02-01 22:43:18 -08:00
Piotr Esden-Tempski d40fb96fcf Added set prescaler and set repetition counter functions to timer. 2011-01-31 22:08:37 -08:00
Piotr Esden-Tempski 92edc113f9 Added timer reset function. 2011-01-31 16:30:12 -08:00
Piotr Esden-Tempski e85c55a9a7 Added timer flag reset function. 2011-01-31 16:15:09 -08:00
Piotr Esden-Tempski dd0018ffdf Added interrupt and event generation handling functions to timer. Updated pwm 6step example to use those and commutate on button press using PWM ON scheme. 2011-01-31 13:28:54 -08:00
Uwe Hermann a0091f18c7 Cosmetics, consistency fixes, fix compiler warnings. 2011-01-30 22:43:33 +01:00
Damjan Marion edf230386c Updated STM32 memory map, fixed USB_OTG_FS_BASE 2011-01-30 22:18:25 +01:00
Gareth McMullin aac65d8560 Abstracted USB driver interface to to allow driver selection. 2011-01-30 17:04:56 +13:00
Gareth McMullin c11cdaf2a7 Added OTG_FS register definitions for connectivity line STM32. 2011-01-30 15:46:08 +13:00
Piotr Esden-Tempski 59293a9640 Added break and dead time convenience functions. Adapted 6step example to reflect that. 2011-01-28 16:04:36 -08:00
Piotr Esden-Tempski a1bd228c87 Replaced OC mode selection with an enum, makes it simpler to use. 2011-01-28 15:11:52 -08:00
Piotr Esden-Tempski 5975750e5e Added output compare channel convenience functions and adapted the pwm_6step example accordingly. 2011-01-27 22:18:34 -08:00
Piotr Esden-Tempski d608049563 Started a pwm 6step output example. Enabled timer convenience functions and some minor fixes that showed themselves while writing the bare bone example. 2011-01-27 17:03:13 -08:00
Uwe Hermann 8f251e8a9d Some more file/path restructuring.
All #includes now explicitly use the "<libopencm3/stm32/rcc.h>" format.
If you want to get rid of the "libopencm3" prefix in your local project you
can add a respective -I entry in your Makefile (not recommended though).

All .ld files and .a libs are installed in $(TOOLCHAIN_DIR)/lib
directly (as before), but are now renamed to avoid potential
conflicts now or in the future. Examples:

  libopencm3_lpc13xx.a
  libopencm3_lpc13xx.ld
  libopencm3_stm32.a
  libopencm3_stm32.ld
2010-12-31 18:18:39 +01:00
Uwe Hermann 95793aa6ce Rename include guards to LIBOPENCM3_*. 2010-12-31 01:11:14 +01:00
Uwe Hermann 9deb34de75 Add FSMC register definitions. 2010-12-31 01:02:40 +01:00
Uwe Hermann 43856e1436 FSMC: Implement all missing bit defines. 2010-12-31 00:35:20 +01:00
Uwe Hermann 62f1bab21f Start adding FSMC #defines (FSMC_BCRx for now). 2010-12-30 23:21:53 +01:00
Uwe Hermann 18790a2454 More renames for libopenstm32 -> libopencm3. 2010-12-30 13:19:25 +01:00
Uwe Hermann deb3db7623 Drop unused and useless libopenstm32.h. 2010-12-30 03:01:42 +01:00
Uwe Hermann be2ac142d9 Rename include/libopenstm32 to include/stm32. 2010-12-30 02:23:51 +01:00
Uwe Hermann b65f3f06d0 Add initial lpc-p1343/miniblink example (untested).
This is not yet tested on hardware, it probably won't work, yet.
2010-12-30 01:36:16 +01:00
Uwe Hermann b385b7a172 NXP LPC13XX: Initial memorymap.h and gpio.h.
Add initial support for the NXP LPC13XX family of ARM Cortex-M3
devices, including the LPC1311, LPC1313, LPC1342, or LPC1343.

This should re-use parts of our generic Cortex-M3 stuff (which is
gradually moved into cm3/ subdirs) where possible.
2010-12-30 00:59:45 +01:00
Uwe Hermann 17b2e87ba3 Factor out cm3/common.h and cm3/memorymap.h. 2010-12-30 00:53:52 +01:00
Uwe Hermann d9f6f200c1 Some more whitespace + cosmetics. 2010-12-29 18:29:47 +01:00
Uwe Hermann c39eb69e4d Replace uint8_t with u8 et al, fix whitespace. 2010-12-29 17:28:06 +01:00
Uwe Hermann 34fd228bf9 Move generic USB stuff to a subdir, dedupe .h files.
Adapt examples and the lib code accordingly.
2010-12-29 17:02:36 +01:00
Uwe Hermann f062777930 More whitespace fixes. 2010-12-29 16:43:26 +01:00
Uwe Hermann 1c6d7cf06a Merge branch 'martinmm'. 2010-12-29 15:12:23 +01:00
Piotr Esden-Tempski e5941fb075 Improved usart api implementation to be more readable. 2010-12-29 13:56:22 +01:00
Piotr Esden-Tempski bf0b987fe3 Splitted out the usart recv and send functions to have blocking and non blocking versions of those. 2010-12-27 15:29:22 +01:00
Uwe Hermann 06d1a5ca80 CAN: Cosmetics and coding-style fixes. 2010-12-26 00:30:05 +01:00
Piotr Esden-Tempski e7d765ea90 Factored out CAN helper functions out of the example. Test code now also uses the received data. 2010-12-25 20:39:46 +01:00
Piotr Esden-Tempski 02f6c4a921 Fixed defines for extended id's. 2010-12-22 21:53:14 +01:00
Piotr Esden-Tempski 3d4e1fa8b8 Fixed wrong register name in bit defines. 2010-12-22 21:15:22 +01:00
Piotr Esden-Tempski 618912e45f Added CAN bit definitions. 2010-12-22 02:50:47 +01:00
Piotr Esden-Tempski c038ee0361 Added more pin remap pin definitions and gpio function remap definitions. 2010-12-21 20:14:54 +01:00
Piotr Esden-Tempski 58e36dab2d First implementation of CAN peripheral register definitions. 2010-12-17 21:45:38 +01:00
Uwe Hermann eebbd508fc TIM1 GPIO remapping + gpio_port_config_lock().
Thanks to Philip Court <philip@greenstage.co.nz> for the patch.
2010-12-17 06:04:28 +01:00
Uwe Hermann 4ef35380e8 Register definitions for the STM32F107 Ethernet.
Thanks to Gareth McMullin <gareth@blacksphere.co.nz>.
2010-12-17 05:50:00 +01:00
Gareth McMullin 7f002110dc Improved dispatching of user control callbacks.
Only cdc_acm example is updated.
2010-11-06 12:21:46 +13:00
Gareth McMullin 5bba6d9206 Fixed logic for clearing data toggle bits. 2010-11-04 18:20:28 +13:00
Gareth McMullin 87960830f4 Fixed HALT condition handling and data toggle. 2010-11-04 16:49:03 +13:00
Martin Mueller d6eacce827 add standard request 2010-11-04 00:44:47 +01:00
Uwe Hermann 6e090ccee1 Initial USB device stack for STM32.
Patch provided by Gareth McMullin <gareth@blacksphere.co.nz>,
thanks a lot!
2010-11-02 02:02:21 +01:00