aboutsummaryrefslogtreecommitdiffstats
path: root/wirish
Commit message (Collapse)AuthorAgeFilesLines
* wirish/Print: explicit double-width constantsbryan newbold2015-03-011-6/+6
| | | | | | | | | These are to prevent implicit constant conversions from floats to doubles and squelch -Wdouble-promotion warnings. Normally gcc will start by using doubles to represent floating point constants. On 32-bit MCUs with a floating point unit, it is more likely that floats are desired, unless explicitly annotated otherwise.
* stm32f401c_discovery: disable on-board SPI1 MEMS Gyro by defaultbryan newbold2015-03-011-3/+7
| | | | Signed-off-by: bryan newbold <bnewbold@robocracy.org>
* stm32f401c_discovery: add support for GPIO port E (up to 80 GPIO)bryan newbold2015-03-012-49/+69
| | | | | | Also fix comments/indexing for other GPIO ports. Signed-off-by: bryan newbold <bnewbold@robocracy.org>
* stm32f4: update board files STM32F401CDiscovery boardPerry Hung2015-03-012-16/+79
| | | | | -add basic pin map for STM32F401CDiscovery board -set CYCLE_PER_MICROSECOND
* stm32f4: add support for stm32f401CDiscovery boardPerry Hung2015-03-012-0/+196
| | | | Add support for stm32f401CDiscovery board running an STM32F401VGT6
* board support: opencm904 -> robotis_opencm904bnewbold2015-02-282-5/+0
|
* board support: cm900 -> robotis_cm900bnewbold2015-02-282-8/+2
|
* board support: nucleo -> st_nucleo_f103rbbnewbold2015-02-282-5/+5
| | | | Also correct attribution in Wirish board.h
* board support: rename VLDiscovery -> st_stm32vldiscoverybnewbold2015-02-282-4/+4
|
* buildsys: allow out-of-tree board filesbryan newbold2015-02-281-2/+14
| | | | | | | This allows custom hardware boards (using existing chipset support) to be targeted without patches to the libmaple repository. See also commit in firmware-template repo.
* Adding support for NUCLEO-F103RBGrégoire Passault2015-02-282-0/+251
| | | | Signed-off-by: Grégoire Passault <g.passault@gmail.com>
* Squash some GCC __always_inline warnings.Marti Bolivar2014-11-261-2/+2
| | | | | | | Change from __always_inline to plain inline to silence warnings about possibly non-inlinable functions. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* wirish: allow boards to override PLL input clockMarti Bolivar2014-11-242-4/+9
| | | | Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* wirish: allow boards to override more init() subroutinesMarti Bolivar2014-11-242-51/+57
| | | | Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* HardwareTimer.cpp: use STM32_TIMER_MASKMarti Bolivar2014-11-241-1/+17
| | | | Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* HardwareSPI.cpp: allow for missing SPI peripheralsMarti Bolivar2014-11-241-7/+31
| | | | Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* Rename various "stm32f2" directories "stm32f2-f4".Marti Bolivar2014-11-245-8/+9
| | | | | | Preparatory patch for adding STM32F4 support. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* Adding ROBOTIS "make install" and reset hookGregwar2014-04-241-0/+26
| | | | Signed-off-by: Grégoire Passault <g.passault@gmail.com>
* Adding BOOTLOADER option to support Robotis bootloader different ROMGregwar2014-04-231-0/+4
| | | | Signed-off-by: Grégoire Passault <g.passault@gmail.com>
* Adding support for cm900 and opencm904 boards (robotis)Gregwar2014-02-204-0/+441
| | | | Signed-off-by: Grégoire Passault <g.passault@gmail.com>
* wirish/syscalls.c: Replace obsolete caddr_t with void *Daniel Nyström2013-06-041-6/+7
| | | | | | | | | 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>
* Use linker symbol __text_start__ to setup base of nvic vector table.Magnus Lundin2013-05-031-5/+7
| | | | | Signed-off-by: Magnus Lundin <lundin@mlu.mine.nu> Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* wirish/syscalls.c: add weak exit function.Magnus Lundin2013-05-021-0/+5
| | | | | | For toolchains which require an exit function. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* Check if the last packet sent was the full endpoint size, in this case flush ↵Manuel Odendahl2013-01-171-1/+12
| | | | | | the host buffers by sending a 0 byte packet Signed-off-by: Manuel Odendahl <wesen@ruinwesen.com>
* Merge branch 'callback_interrupt_handlers'Marti Bolivar2012-09-032-11/+37
|\
| * ext_interrupts.cpp: Doxygen fixups.Marti Bolivar2012-09-031-26/+2
| | | | | | | | | | | | Keep the Doxygen in the header as per Wirish conventions. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
| * Whitespace fixups to EXTI files.Marti Bolivar2012-09-031-3/+4
| | | | | | | | Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
| * "Callback versions of functions now take voidArgumentFuncPtr. We can ↵Aditya Gaddam2012-09-022-2/+2
| | | | | | | | | | | | 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>"
| * "Added ability to set callbacks for interrupts that get an argument. This ↵Aditya Gaddam2012-08-312-0/+49
| | | | | | | | | | | | 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>"
* | Include <stdint.h> from wirish.h.Marti Bolivar2012-08-311-0/+2
| | | | | | | | Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* | HardwareSPI: move warning into .cpp from header.Marti Bolivar2012-08-272-5/+5
| | | | | | | | | | | | | | 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>
* | usb_serial.cpp: Hackishly silence spurious warnings on VLDiscovery.Marti Bolivar2012-08-271-0/+6
|/ | | | | | Guard hooks with BOARD_HAVE_SERIALUSB to keep GCC quiet. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* usb_serial.cpp: Neaten up reset signal RX hook.Marti Bolivar2012-08-221-34/+33
| | | | | | | | | | 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>
* Make PRIMASK set/clear functions __always_inline.Marti Bolivar2012-08-141-2/+2
| | | | | | | This is just to ensure that -Os doesn't prevent these from getting inlined. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* wirish/ext_interrupts.h: DoxygenMarti Bolivar2012-08-141-6/+7
| | | | Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* Add support for ARM's GCC ARM embedded toolchain.Marti Bolivar2012-08-052-9/+10
| | | | | | | 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>
* Move bootloader details out of libmaple.h.Marti Bolivar2012-07-311-0/+12
| | | | | | Finally! Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* HardwareSerial: make read() block until data arrive.Marti Bolivar2012-07-311-0/+3
| | | | | | | This makes the HardwareSerial behavior match that of SerialUSB, and should help avoid confusion. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* Move bootloader reset signal detection to Wirish.Marti Bolivar2012-07-311-0/+116
| | | | | | | | 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>
* Hack: Provide a hook so Mini doesn't disable JTAG/SWD.Marti Bolivar2012-07-311-1/+3
| | | | | | | 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>
* usb_serial.cpp: Minor tweak.Marti Bolivar2012-07-251-2/+1
| | | | Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* Add pin alias enums to other boards.Marti Bolivar2012-07-245-0/+41
| | | | | | | | 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>
* Doxygen hacks and fixups.Marti Bolivar2012-06-281-1/+1
| | | | | | | | - 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>
* Clean up micros().Marti Bolivar2012-06-271-7/+4
| | | | | | Don't leave US_PER_MS user-visible. Remove an unnecessary variable. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* STM32F1: Bring back HardwareSPI.Marti Bolivar2012-06-262-3/+6
| | | | | | We're going to merge into master without F2 support for this. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* Bring back and fix up util.c functionality.Marti Bolivar2012-06-263-0/+129
| | | | | | | | | | | | | | | 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>
* HardwareTimer: add a c_dev().Marti Bolivar2012-06-131-0/+8
| | | | Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* HardwareSPI: add a c_dev().Marti Bolivar2012-06-131-0/+8
| | | | Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* HardwareSerial: Add c_dev() accessor for instance's usart_dev*.Marti Bolivar2012-06-131-0/+4
| | | | | | This is analagous to std::string::c_str(). Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* Typo fix.Marti Bolivar2012-06-121-1/+1
| | | | Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>