180 Commits

Author SHA1 Message Date
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
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