aboutsummaryrefslogtreecommitdiffstats
path: root/wirish
Commit message (Collapse)AuthorAgeFilesLines
* st_stm32f401cdiscovery: USART3 pins; clearer pin referencesbnewbold2015-03-031-12/+10
|
* st_stm32f401cdiscovery: better wirish board supportbnewbold2015-03-031-5/+27
|
* stm32f4: wirish: fill in board_setup support for STM32F4bnewbold2015-03-031-13/+56
|
* stm32f4: fill in exception handling infrastructurebnewbold2015-03-031-1/+35
| | | | Eg, for HardFault or assert() failures.
* wirish_math: explicit type casts for round()bnewbold2015-03-031-1/+2
| | | | | | | | This is to squash type promotion warnings and ambiguity (float vs. double). A roundf() macro is introduced for use with floats, matching the POSIX/C99 convention.
* replace unnecessary 'XXX' stringsbnewbold2015-03-011-1/+1
|
* st_stm32f401c_discovery: fix SPI pin numbersbnewbold2015-03-011-8/+9
|
* board support: stm32f401c_discovery -> st_stm32f401cdiscoverybryan newbold2015-03-012-4/+4
|
* wirish.h: squelch stdbool.h redefinition compiler warningsbryan newbold2015-03-011-2/+7
|
* wirish/boards: squelch unused-function warningsbryan newbold2015-03-011-0/+2
|
* 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>