| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
This is part of adding STM32F2-4 HardwareSPI support.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Eg, for HardFault or assert() failures.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Signed-off-by: bryan newbold <bnewbold@robocracy.org>
|
|
|
|
|
|
| |
Also fix comments/indexing for other GPIO ports.
Signed-off-by: bryan newbold <bnewbold@robocracy.org>
|
|
|
|
|
| |
-add basic pin map for STM32F401CDiscovery board
-set CYCLE_PER_MICROSECOND
|
|
|
|
| |
Add support for stm32f401CDiscovery board running an STM32F401VGT6
|
| |
|
| |
|
|
|
|
| |
Also correct attribution in Wirish board.h
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Signed-off-by: Grégoire Passault <g.passault@gmail.com>
|
|
|
|
|
|
|
| |
Change from __always_inline to plain inline to silence warnings about
possibly non-inlinable functions.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
|
|
|
|
| |
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
|
|
|
|
| |
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
|
|
|
|
| |
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
|
|
|
|
| |
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
|
|
|
|
|
|
| |
Preparatory patch for adding STM32F4 support.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
|
|
|
|
| |
Signed-off-by: Grégoire Passault <g.passault@gmail.com>
|
|
|
|
| |
Signed-off-by: Grégoire Passault <g.passault@gmail.com>
|
|
|
|
| |
Signed-off-by: Grégoire Passault <g.passault@gmail.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Signed-off-by: Magnus Lundin <lundin@mlu.mine.nu>
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
|
|
|
|
|
|
| |
For toolchains which require an exit function.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
|
|
|
|
|
|
| |
the host buffers by sending a 0 byte packet
Signed-off-by: Manuel Odendahl <wesen@ruinwesen.com>
|
|\ |
|
| |
| |
| |
| |
| |
| | |
Keep the Doxygen in the header as per Wirish conventions.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
|
| |
| |
| |
| | |
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
|
| |
| |
| |
| |
| |
| | |
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>"
|
| |
| |
| |
| |
| |
| | |
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>"
|
| |
| |
| |
| | |
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
|/
|
|
|
|
| |
Guard hooks with BOARD_HAVE_SERIALUSB to keep GCC quiet.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
This is just to ensure that -Os doesn't prevent these from getting
inlined.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
|
|
|
|
| |
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Finally!
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
|
|
|
|
|
|
|
| |
This makes the HardwareSerial behavior match that of SerialUSB, and
should help avoid confusion.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
|