Commit Graph

1901 Commits

Author SHA1 Message Date
Girts Folkmanis
9a2fcf2b60 [make] don't call build engine multiple times.
If some included rule.mk defines an additional make target that the user
might want to call (e.g., "flash"), and user specifies a project name on
the command line, then previously the outer "makefile" would call
engine.mk multiple times. The new logic prevents that.

Additionally, silence extra "Nothing to be done" messages when calling
engine.mk again after removing the project name from make goals.
2016-09-30 10:41:23 -07:00
circl0
6782ea9af6 [kernel] fix get top thread error if NUM_PRIORITIES < 32 2016-09-30 10:39:58 -07:00
Girts Folkmanis
fc611a8fda [lib/console] add "repeat" command.
Adds a repeat command with the following syntax:
  repeat <times> <delay in ms> <argv0> [<argv1> ...]
2016-09-30 10:38:10 -07:00
Girts Folkmanis
a74d56b9a2 [dev/gpio_i2c] add optional pullups
If GPIO_I2C_PULLUPS == 1, enables pullups when not actively
driving I2C lines low.
2016-09-30 10:36:57 -07:00
Christopher Anderson
5e7df94fdd Merge pull request #167 from girtsf/stm32-power
[stm32] share power.c across stm32 platforms.
2016-09-24 00:55:48 -04:00
Girts Folkmanis
58ee575dcb [stm32] share power.c across stm32 platforms.
Previously power.c was only implemented for f7, but the
same functionality exists in other stm32 devices, thanks
to CMSIS defines.

This refactors out f7's power.c to platform/stm32/ and adds
deps from f7 and f4.
2016-09-15 13:41:45 -07:00
John Grossman
0c782aa381 [spelling] signalling --> signaling (#162)
Switch from the UK spelling of signalling (also, signalled and
signaller) to the American spelling.
2016-09-07 15:29:56 -07:00
Girts
71792d0d25 [make] Compare whole words for LKINC check. (#160)
Previously, if lk was built from an external directory that contained
"lk" in the name, the "findstring" check would succeed and not add lk's
directory to LKINC. This switches to a word comparison instead of
a substring search.
2016-09-06 12:26:37 -07:00
Eric Holland
e724ff9707 [aarch64] Fix stack pointer misalignment (#159)
sp can become misaligned from 16 byte boundry because context frame
is not a multiple of 16 bytes.
2016-09-06 12:21:34 -07:00
Travis Geiselbrecht
f2c90720f3 [merge] Merge remote-tracking branch 'pr/rpi3' 2016-08-25 17:36:50 -07:00
klemens
d0b90c2d68 [spelling] spelling-fixes. (not external/) 2016-08-25 17:30:34 -07:00
Gurjant Kalsi
173046ecca [squash] Use x4 as early scratch register in case args are passed in x0-x3 (changes as per code review). 2016-08-25 15:51:34 -07:00
Gurjant Kalsi
2072cfe8f1 [arm64] Backport changes from magenta 2016-08-25 15:50:52 -07:00
Gurjant Kalsi
5c6554165e [squash] Fix typo in IPI code 2016-08-23 15:58:32 -07:00
Gurjant Kalsi
c6e2c28c86 [bcm28xx][arm64] Fix some type warnings. 2016-08-23 15:15:43 -07:00
Gurjant Kalsi
b6018454c0 [bcm28xx] Fix arm/arm64 exception iframe warning 2016-08-23 15:09:07 -07:00
Gurjant Kalsi
c5b427333a [bcm28xx][arm64][ipi] Fix IPI on non-GIC based BCM28xx 2016-08-23 12:56:40 -07:00
Gurjant Kalsi
bc5f276c02 [bcm2835][bcm2837] Removed BCM2835 and BCM2837 platforms in favor of BCM28xx unified platform. 2016-08-23 12:35:14 -07:00
Eric Holland
5e5e2ac50c [rpi3][bcm28xx][smp] fixes to bring up all cores 2016-08-23 12:28:42 -07:00
Gurjant Kalsi
69d35fa55b [rpi3][bcm28xx][timer] Fix BCM2837 timer runing too fast.
RPi3/BCM2837 timer was previously running too fast due to an improper multiplier
in arm_generic_timer_init(...). Fixed by setting the multiplier to 0 and
allowing the ARM generic timer code to determine the frequency and compute the
appropriate multiplier.
2016-08-23 12:28:36 -07:00
Gurjant Kalsi
100133dc38 [BCM28xx] Roll BCM2836 and BCM2837 into a single platform. Have both RPi2 and RPi3 use the new BCM28XX platform. 2016-08-23 12:28:28 -07:00
Gurjant Kalsi
edb7020781 [miniuart][uart][rpi3][bcm28xx] Miniuart Driver for Raspberry Pi 3 / BCM28XX 2016-08-23 12:28:20 -07:00
Eric Holland
1164bc17bc [rpi3]64bit platform support 2016-08-23 12:28:13 -07:00
Eric Holland
d90cb4e7c6 [gfx] Add mandelbrot test to gfx routines (#149) 2016-08-12 10:28:12 -07:00
Eric Holland
c3c48e6bb1 [arm64][mmu] fix asid shift in tlbi 2016-08-02 22:07:29 -07:00
Gurjant Kalsi
acbee6a974 [dartuino][ndebug] Fix Dartuino Build, NDebug no longer present in tree.
Removed references to NDebug from the Dartuino Build since it is no longer maintained in the LK tree.
2016-07-15 14:58:49 -07:00
Gurjant Kalsi
87b40fda48 [usb][usbtest] Fix compile error in USB test app (missing parameter).
Endpoint type was added to USBC (interrupt, bulk, isoc, etc) but usbtest app was not updated to reflect this.
2016-07-15 14:04:50 -07:00
Minglun Tsai
919a925eca [platform][mediatek] support mediatek platform: mt6797 (#137)
Basic mt6797 platform S/W for lk.
2016-06-21 09:53:03 -07:00
Travis Geiselbrecht
10bb61326b Merge pull request #146 from littlekernel/pr/nrf52
Pr/nrf52
2016-06-21 09:39:19 -07:00
Travis Geiselbrecht
6e4e6f40e8 [travis-ci] add nucleo-f072rb project to the test builds 2016-06-21 09:36:05 -07:00
Erik Corry
4a553a7941 [pull][cmpctmalloc] Fix cmpctmalloc for large allocations (#147) 2016-06-21 09:35:40 -07:00
Travis Geiselbrecht
d52054c87e Merge pull request #143 from konkers/pr/stm32f0-usb
stm32f0xx usb driver
2016-06-21 09:33:24 -07:00
Eric Holland
6388cde233 [nrf52] Platform and sample target support for Nordic NRF52 (cortex-M4) 2016-06-16 16:31:53 -07:00
Eric Holland
1491809fd0 [nrf52] First commit for platform support 2016-06-16 10:41:04 -07:00
Erik Gilling
26f1d1edb7 [stm32f0xx] Fix SPI CPHA defines. 2016-06-12 19:31:35 -07:00
Erik Gilling
4fdf2bffcc [stm32f0xx] Fix gpio_get(). 2016-06-12 19:31:35 -07:00
Christopher Anderson
1656c7320d Merge pull request #144 from littlekernel/pr/nrf51-external
[nordic] move vendor code to external
2016-06-09 13:00:54 -07:00
Eric Holland
d1c4965dc7 [nordic] move vendor code to external 2016-06-07 10:11:54 -07:00
Erik Gilling
9371ea5335 [stm32f0xx] Add stm HAL based usb driver. 2016-06-06 20:56:02 -07:00
Erik Gilling
b88985bb2c [stm32f0xx] Add STM32F0xx_HAL_Driver. 2016-06-06 20:55:43 -07:00
Erik Gilling
6c82940c32 [stm32f0xx] Import new CMSIS from STM32Cube_FW_F0_V1.5.0. 2016-06-06 20:55:43 -07:00
Gurjant Kalsi
5324238022 [ndebug] Move NDebug from main LK tree to Coral tree. 2016-06-06 10:21:04 -07:00
Erik Gilling
c01adc6e0d [kernel] Add debug tracking of stack memory usage.
On thread creation, initializes the stack to a known value.  When
thread state is dumped, this value is uses to intuit max stack
usage.
2016-06-03 12:25:01 -07:00
Gurjant Kalsi
bb4c6402b0 [console][io] Add an optional global input queue.
In this model, getc reads from a global input buffer and the uart posts data to this buffer.

This commit also enables the global input queue for STM32F7 and QEMU-Virt.

Tested on STM32F7/Dartuino and QEMU-ARM A15 with both CONSOLE_HAS_INPUT_BUFFER=1 and CONSOLE_HAS_INPUT_BUFFER=0
2016-06-02 16:01:56 -07:00
Gurjant Kalsi
a6ab56cd5f [usbc][stm32f7] Implement usbc_flush_ep for stm32f7 2016-06-02 15:30:38 -07:00
Gurjant Kalsi
e24567f546 [usbc][stellaris] Implement usbc_flush_ep for stellaris 2016-06-02 15:09:48 -07:00
Gurjant Kalsi
3e47da8572 [usbc] Add a usbc_flush_ep call to flush a given USB endpoint 2016-06-02 15:08:56 -07:00
Gurjant Kalsi
5007eb75e8 [arch][arm][arm-m] Implement arch_in_int_handler for ARM-M V7 CPUs 2016-06-01 17:43:27 -07:00
Søren Gjesse
6faa2957e1 [spifs] Fix warning with GCC 5.3.1
With GCC 5.3.1 (5-2016-q2-update from https://launchpad.net/gcc-arm-embedded)
additional warnings about unused variables cause compilation to fail.
2016-05-31 12:19:57 -07:00
Gurjant Kalsi
4cd364ce33 [stm32f7][eth] Eth requires sys/types.h for status_t 2016-05-17 16:57:17 -07:00