aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-05-21hrrm...HEADmasterDonald Delmar Davis
2013-05-16Merge remote-tracking branch 'upstream/master'Donald Delmar Davis
* upstream/master: Use linker symbol __text_start__ to setup base of nvic vector table. usb_midi_device - Control build with USB_TYPE build flag Reverted work change wirish/syscalls.c: add weak exit function. libmaple/usb/stm32f1/usb.c: cosmetics. Linker files for F20x boards with 768k flash Added board.mk makefile with board specific defines usb_midi_device: Reset transmitting flag in usbReset() libmaple/usb/stm32f1/usb.c: fix build error. Preserve previous usb state when suspending / restore on resume usb_cdcacm: Reset transmitting flag in usbReset(). Conflicts: libmaple/usb/stm32f1/usb_midi_device.c Todo: Modify buffered transmit for Packets.
2013-05-15minor/docsDonald Delmar Davis
2013-05-14Add error checking to sysex dataDonald Delmar Davis
Simplify sysex debug sending (todo rewrite client console)
2013-05-04Use linker symbol __text_start__ to setup base of nvic vector table.mlundinse
Signed-off-by: Magnus Lundin <lundin@mlu.mine.nu> Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2013-05-02usb_midi_device - Control build with USB_TYPE build flagmlundinse
usb_midi_device - Control build with USB_TYPE build flag Signed-off-by: Magnus Lundin <lundin@mlu.mine.nu>
2013-05-02Reverted work changemlundinse
2013-05-02Merge branch 'master' of git://github.com/leaflabs/libmaplemlundinse
Conflicts: wirish/syscalls.c
2013-05-02wirish/syscalls.c: add weak exit function.Magnus Lundin
For toolchains which require an exit function. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2013-05-01Merge branch 'HEAD' of git://github.com/leaflabs/libmaple.gitmlundinse
2013-04-30libmaple/usb/stm32f1/usb.c: cosmetics.Marti Bolivar
Whitespace and comments. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2013-04-29Linker files for F20x boards with 768k flashmlundinse
2013-04-29Added board.mk makefile with board specific definesmlundinse
2013-04-29usb_midi_device: Reset transmitting flag in usbReset()mlundinse
2013-04-29Merge branch 'HEAD' of git://github.com/leaflabs/libmaple.gitmlundinse
2013-04-29libmaple/usb/stm32f1/usb.c: fix build error.Marti Bolivar
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2013-04-27sysex out working. need to clean it upDonald Delmar Davis
2013-04-27Refactor my first attempt into fork of the Lundin code. Add sysex. Create a ↵Donald Delmar Davis
board file for maple_midi.
2013-04-26Merge remote-tracking branch 'wesen/bug/usb-resume'Marti Bolivar
2013-04-26Preserve previous usb state when suspending / restore on resumeManuel Odendahl
Signed-off-by: Manuel Odendahl <wesen@ruinwesen.com>
2013-04-23dont initialise SerialUSB by defaultmlundinse
2013-04-23Added weak _exit functionmlundinse
2013-04-16reverted i2c changemlundinse
2013-04-15moved usb_midi_descr.cmlundinse
Non processor specific code
2013-04-15usb_cdcacm: Reset transmitting flag in usbReset().Marti Bolivar
Thanks to Manuel Odenahl for the fix. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2013-04-14Configure i2c pins before resetting the bus.mlundinse
2013-04-12Added midi usb supportmlundinse
2013-01-18usb_cdcacm: Make USB lib globals weak symbols.Marti Bolivar
This allows users to override them. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2013-01-18Merge branch 'bug/usb-full-ep'Marti Bolivar
This resolves issues related to sending full (64B) packets via USB 2.0. In this case, some hosts continue to expect more data. Add infrastructure for sending 0-byte packets to signal end of transmission, and use it in SerialUSB. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2013-01-17usb_cdcacm.c: Fixups for usb_cdcacm_tx().Marti Bolivar
- Check if we're transmitting (instead of how many bytes are left untransmitted) before bailing, in case we're transmitting a zero-length packet. - Set transmitting=1 before setting the endpoint valid to avoid races with the USB interrupt. - Eliminate some duplicated code. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2013-01-17Merge branch 'dbl-buf-usb'Marti Bolivar
For bulk double buffer support. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2013-01-17usb_reg_map.c: Fix incorrect function name call.Marti Bolivar
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2013-01-17usb_reg_map.h: Fix incorrect register bit definitions.Marti Bolivar
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2013-01-17Check if the last packet sent was the full endpoint size, in this case flush ↵Manuel Odendahl
the host buffers by sending a 0 byte packet Signed-off-by: Manuel Odendahl <wesen@ruinwesen.com>
2013-01-17Handle sending 0 byte packets.Manuel Odendahl
Added a flag to see if we are currently waiting on an interrupt to acknowledge the sending of the current IN packet. Added a method usb_cdcacm_is_transmitting() to check for that flag. Signed-off-by: Manuel Odendahl <wesen@ruinwesen.com>
2013-01-17Merge remote-tracking branch 'wesen/bug/bkp'Marti Bolivar
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2013-01-17Move endpoint definitions to include files (they are now needed outside in ↵Manuel Odendahl
usb_serial.cpp) Signed-off-by: Manuel Odendahl <wesen@ruinwesen.com>
2013-01-17Rename misleading ptr functionManuel Odendahl
Signed-off-by: Manuel Odendahl <wesen@ruinwesen.com>
2013-01-17Fix BKP write enableManuel Odendahl
Signed-off-by: Manuel Odendahl <wesen@ruinwesen.com>
2013-01-17Set DCNTR before starting DMA transfer.Manuel Odendahl
I am not sure why this would work for most DMA transfers but I ran into trouble when doing SDIO DMA. Signed-off-by: Manuel Odendahl <wesen@ruinwesen.com>
2013-01-17Refactor setting a USB EP rx countManuel Odendahl
Signed-off-by: Manuel Odendahl <wesen@ruinwesen.com>
2013-01-17Rename USB_EP_EP_KIND to USB_EP_EP_KIND_DBL_BUFManuel Odendahl
Signed-off-by: Manuel Odendahl <wesen@ruinwesen.com>
2013-01-17Add double buffering routinesManuel Odendahl
Signed-off-by: Manuel Odendahl <wesen@ruinwesen.com>
2013-01-05Add fix to support Summon/Linaro GCC ARM embedded toolchain.Dmitry Prokhorov
Signed-off-by: Dmitry Prokhorov <dipspb@gmail.com>
2013-01-01examples/blinky.cpp: Use toggleLED() instead of digitalWrite().Marti Bolivar
Keep things simple. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-11-08Merge remote-tracking branch 'wesen/bug/high-density-irqs'Marti Bolivar
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-11-08usb_cdcacm.c: reenable the endpoint if an empty bulk transfer was received.Manuel Odendahl
It is possible to receive empty bulk transfers. This would lead to the endpoint never being reenabled as this was handled by the read routine. This caused the USB to hang. Signed-off-by: Manuel Odendahl <wesen@ruinwesen.com>
2012-11-07stm32f1/rules.mk: update include path for assembler filesManuel Odendahl
stm32f1/performance: load stm32.h in order to have STM32_HIGH_DENSITY when necessary STM32_HIGH_DENSITY was not defined in isrs.S and vector_table.S for a high density STM32. This was because stm32.h where the flag is now defined (in contrast to being defined on the command line in an earlier version of libmaple) was not included. This led to crashes when using one of the high density peripherals. Updated the ASFLAGS to have the correct include path in rules.mk. Include stm32.h in the assembler files. Signed-off-by: Manuel Odendahl <wesen@ruinwesen.com>
2012-09-04Add some missing LeafLabs copyright notices.Marti Bolivar
Sigh; Emacs's elide-head feature makes it easy to forget to update these. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-09-03exti.c: Use exti_num enumerators instead of magic values.Marti Bolivar
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>