aboutsummaryrefslogtreecommitdiff
path: root/wirish
AgeCommit message (Collapse)Author
2013-08-29Merge branch 'master' into MIDIUSBmlundinse
2013-07-16Merge branch 'HEAD' of git://github.com/leaflabs/libmaple.gitmlundinse
2013-06-04wirish/syscalls.c: Replace obsolete caddr_t with void *Daniel Nyström
caddr_t is obsolete in POSIX and thus unavailable in most modern toolchains. caddr_t usage should be replaced by void *. stddef.h includes the size_t typedef which was missing. Signed-off-by: Daniel Nyström <daniel@nystrom.st>
2013-05-10Use 32 bit midiusb messagesmlundinse
Integrated Donald Delmar Davis work to use 32bit midimessages for MIDI USB, more cleanup is stiill needed
2013-05-04Make BOARD_HAVE_USB define contitionalmlundinse
wirish/boards.h Make BOARD_HAVE_USB define contitional so it can be overridden for boards with different USB setup (like stm32f4 usb) Signed-off-by: Magnus Lundin <lundin@mlu.mine.nu>
2013-05-04Whitespace cosmeticsmlundinse
2013-05-04Merge branch 'master' into usbbuildworkmlundinse
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-03Use linker symbol __text_start__ to setup base of nvic vector table.Magnus Lundin
Signed-off-by: Magnus Lundin <lundin@mlu.mine.nu> Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2013-05-03Define BOARD_HAVE_MIDIUSB if BOARD_HAVE_USBmlundinse
and USB_TYPE == USB_MIDI Signed-off-by: Magnus Lundin <lundin@mlu.mine.nu>
2013-05-03wirish/boards.hmlundinse
Define BOARD_HAVE_USB if usb config bits present and define BOARD_HAVE_SERIALUSB if board have usb and USB_TYPE is USB_SERIAL or undefined 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-04-29Added board.mk makefile with board specific definesmlundinse
2013-04-23dont initialise SerialUSB by defaultmlundinse
2013-04-23Added weak _exit functionmlundinse
2013-04-12Added midi usb supportmlundinse
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>
2012-09-03Merge branch 'callback_interrupt_handlers'Marti Bolivar
2012-09-03ext_interrupts.cpp: Doxygen fixups.Marti Bolivar
Keep the Doxygen in the header as per Wirish conventions. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-09-03Whitespace fixups to EXTI files.Marti Bolivar
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-09-02"Callback versions of functions now take voidArgumentFuncPtr. We can ↵Aditya Gaddam
probably use voidFuncPtr instead, but this way people can see that the function expects something different. Existing functions haven't changed in signature. Signed-off-by: Aditya Gaddam <adityagaddam@gmail.com>"
2012-08-31Include <stdint.h> from wirish.h.Marti Bolivar
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-08-31"Added ability to set callbacks for interrupts that get an argument. This ↵Aditya Gaddam
argument can be the instance that needs to handle the interrupt, or just a random argument you might find useful later. Suggestions from mbolivar and iperry from pull53 on libmaple were taken into account. Signed-off-by: Aditya Gaddam <adityagaddam@gmail.com>"
2012-08-27HardwareSPI: move warning into .cpp from header.Marti Bolivar
This causes the warning to be emitted at most once. As is, it can be emitted each time HardwareSPI.h is included, which is annoying. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-08-27usb_serial.cpp: Hackishly silence spurious warnings on VLDiscovery.Marti Bolivar
Guard hooks with BOARD_HAVE_SERIALUSB to keep GCC quiet. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-08-22usb_serial.cpp: Neaten up reset signal RX hook.Marti Bolivar
Move magic bytes from stack to Flash. De-magic-number sizeof magic byte buffer. Use uintptr_t instead of unsigned int when casting address of wait_reset(). Based on a patch by Michael Hope. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-08-14Make PRIMASK set/clear functions __always_inline.Marti Bolivar
This is just to ensure that -Os doesn't prevent these from getting inlined. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-08-14wirish/ext_interrupts.h: DoxygenMarti Bolivar
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-08-05Add support for ARM's GCC ARM embedded toolchain.Marti Bolivar
Based on patches provided by Hanspeter Portner: http://forums.leaflabs.com/topic.php?id=1717#post-11812 Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-07-31Move bootloader details out of libmaple.h.Marti Bolivar
Finally! Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-07-31HardwareSerial: make read() block until data arrive.Marti Bolivar
This makes the HardwareSerial behavior match that of SerialUSB, and should help avoid confusion. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-07-31Move bootloader reset signal detection to Wirish.Marti Bolivar
Use usb_cdcacm hooks to move the DTR edge and "1EAF" magic packet detection to usb_serial.cpp. We'll later be able to extend this system to support Leonardo-style reset signalling. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-07-31Hack: Provide a hook so Mini doesn't disable JTAG/SWD.Marti Bolivar
The nonexistence of a configuration system is starting to become kind of a pain. Oh well; let's keep piling hacks on until things break. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-07-25usb_serial.cpp: Minor tweak.Marti Bolivar
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-07-24Add pin alias enums to other boards.Marti Bolivar
Repeat Anton's VLDiscovery trick on the rest of the boards. Leave out st_stm3220g_eval since that's just a teaser to get people to play with F2. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-06-28Doxygen hacks and fixups.Marti Bolivar
- Shut Doxygen up in various places - Fix some genuine docs bugs - Ignore sources we're not responsible for Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-06-27Clean up micros().Marti Bolivar
Don't leave US_PER_MS user-visible. Remove an unnecessary variable. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-06-26STM32F1: Bring back HardwareSPI.Marti Bolivar
We're going to merge into master without F2 support for this. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-06-26Bring back and fix up util.c functionality.Marti Bolivar
Rip out the existing nonportable pieces, and shove them under wirish/stm32f1, using weak symbols so users who only want libmaple proper don't end up with build errors. Add stubbed-out (and only partially functional) definitions for F2 targets under wirish/stm32f2. The behavior on F103 targets is the same as it was before (though the assertion framework has always been broken and badly needs replacement, that awaits another commit). We additionally now skip re-enabling USB on F1 targets without USB, to make things work on value line MCUs. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-06-13HardwareTimer: add a c_dev().Marti Bolivar
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-06-13HardwareSPI: add a c_dev().Marti Bolivar
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-06-13HardwareSerial: Add c_dev() accessor for instance's usart_dev*.Marti Bolivar
This is analagous to std::string::c_str(). Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-06-12Typo fix.Marti Bolivar
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-06-08maple: board.cpp: More comments.Marti Bolivar
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-06-08Bring back <wirish/wirish_debug.h>.Marti Bolivar
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-06-08maple: board.h: More comments, remove SYSTICK_RELOAD_VAL.Marti Bolivar
We derive SYSTICK_RELOAD_VAL from CYCLES_PER_MICROSECOND now, so let's hide it for expert use. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-06-07wirish/syscalls.c: Assert LeafLabs copyright.Marti Bolivar
_sbrk() is new in 2011, and there've been changes in 2012. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-06-07wirish/syscalls.c: Weaken I/O related function defs.Marti Bolivar
For overriding. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>