Commit Graph

1944 Commits

Author SHA1 Message Date
Eric Holland
3259f941b4 [nrf] Support for NRF52840 DK 2018-04-28 14:49:32 -07:00
Todd Eisenberger
e007acc4dc [stm32f0xx] Add support for stm32f070xb
This cleans up handling of a lot of optional components
across f0xx models.
2018-04-17 10:52:14 -07:00
Travis Geiselbrecht
e07741036d [travis-ci] remove the notification to #fnlk 2018-04-14 21:55:23 -07:00
Travis Geiselbrecht
5d766ef592 [travis-ci][vim2] add vim2-test to the build 2018-03-16 15:07:06 -07:00
Payam
6e05388579 [vim2] Initial support for Khadas VIM2 boards 2018-03-16 15:05:10 -07:00
Travis Geiselbrecht
5dea3e1933 [warnings] fix a few warnings introduced with newer version of gcc
Most of the warnings are new, such as needing to mark fallthroughs on
cases explicitly. A few are based on signed vs unsigned comparisons.

Disable one warning that was annoying about comparing null to arguments
marked nonnull.
2018-03-15 14:10:12 -07:00
Travis Geiselbrecht
1d63a772a9 [arch][arm64] rename a register alias from index to idx
index apparently collides with a new assembler builtin in a newer
binutils/gcc version.
2018-03-15 13:44:22 -07:00
Travis Geiselbrecht
6d33d9915f [travis-ci] bump the default toolchain to 7.3.0 2018-03-09 23:11:30 -08:00
Erik Gilling
c77f8f94bd [stm32f0xx] Enable sysconfig clock before accessing it in exti driver. 2018-02-09 15:25:12 -08:00
Erik Gilling
660c4ab08c [cdcconsole] Add TX buffering. 2018-01-30 20:34:34 -08:00
Todd Eisenberger
cc827a9856 [stm32f0xx] Correct register access for EXTI controller
A bunch of the register access here didn't match STM's docs.  The old
code had a few bugs:

1) The EXTI4-15 handler would clear pending bits for interrupts 16-31.
2) GPIO interrupt configuration was very misindexed.
2018-01-28 15:30:49 -08:00
Alex Elzenaar
86717f4a3b Minor documentation comment change to timer implementation. 2018-01-22 23:35:32 -08:00
Erik Gilling
448f7a7aba [cdcconsole] Initial console over usb cdc serial. 2018-01-22 23:33:35 -08:00
Erik Gilling
019d262d87 [cdcserial] Add async API. 2018-01-22 23:33:35 -08:00
Erik Gilling
cc60328989 [cdcserial] Refactor driver to support multiple channels. 2018-01-22 23:33:35 -08:00
Erik Gilling
5da17066df [stm32f0xx] Add support for CONSOLE_HAS_INPUT_BUFFER. 2018-01-22 23:33:35 -08:00
Erik Gilling
8ae85bd301 [stm32f0xx] Add timer capture driver.
Right now only capture is supported with the timers.  As more modes
are supported, the lower level bits of the driver should be
refactored.
2018-01-04 10:28:14 -08:00
Will Drewry
cf3b7a15df kernel/port.c: make make_buf() safe
make_buf() is a static function with two callers who pass in one of
two constants. The parameters allowed for any uint count to be
supplied and the arithmetic during memory allocation was unchecked

This change updates make_buf() to reflect its usage, which is
safe, while eliminating any future uses from accidentally becoming
unsafe.
2017-12-22 13:52:43 -08:00
Erik Gilling
fe71f59302 [stm32f0xx] Add external interrupt driver. 2017-12-22 11:14:18 -08:00
Erik Gilling
eb1ca2ed0c [stm32f0xx] Fix i2c stop and repeated start handling.
We need to look at the TC status bit to know that a transaction has ended.
This has the added benefit of cleaning up REG and TX handling.
2017-11-07 15:15:52 -08:00
Erik Gilling
8ebceb1ab0 [stm32f0xx] Fix gpio_set(). 2017-11-06 21:27:35 -08:00
Erik Gilling
0c97b7f6a1 [nucleo-f072rb] Enable i2c and add i2c_rb command. 2017-10-27 14:51:15 -07:00
Erik Gilling
d89fd06507 [stm32f0xx] Add i2c driver. 2017-10-27 14:51:15 -07:00
Tristan Shieh
2a70c35d36 [lib][bio] fix compile warning with arch/arm64
lib/bio/bio.c:345:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

Signed-off-by: Tristan Shieh <tristan.shieh@mediatek.com>
2017-10-23 00:21:16 -07:00
Zhong,Fangjian
ffe4be84b1 [arch][x86] bug fix in TSS descriptor base address
In 64-bit mode, the TSS descriptor is expanded to 16 bytes.
Currently, high 32-bit of TSS base address is set to be zero.
Updte descriptor structure definition, add high 32-bit high adress
and reserved bit.

Signed-off-by: Zhong,Fangjian <fangjian.zhong@intel.com>
2017-10-23 00:20:04 -07:00
Erik Gilling
e84ad6e5c1 [nucleo-f072rb] Add usb support. 2017-10-20 17:11:47 -07:00
Erik Gilling
a35b98ebdd [stm32f0xx] Support multi-packet setup transactions. 2017-10-20 17:11:47 -07:00
Erik Gilling
ab273b4920 [stm32f0xx] Implement usbc_ep0_recv() 2017-10-20 17:11:47 -07:00
Erik Gilling
82b3c2e0d1 [stm32f0xx] Properly initialize clocks in platform_early_init().
This got broken when moving to the new STM32F0xx_HAL_Driver.
2017-10-20 17:10:55 -07:00
Xi Wang
63fa995789 [platform][pc] fix memory map handling in multiboot
The starting address of mmap is off by 4 bytes.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
2017-07-29 21:34:26 -07:00
Xi Wang
9fa0924c88 [platform][pc] fix multiboot info constants
The values of several MB_INFO_* macros are incorrect.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
2017-07-29 21:34:26 -07:00
Ashok Kumar Sekar
f781ba7494 [arch][arm64] change CACHE_LINE to 64 for cortex a53,57 and 72
Signed-off-by: Ashok Kumar Sekar <ashokkumar.sekar@gmail.com>
2017-06-05 10:41:45 -07:00
James Zhong
089dce3a7d [kernel][vm][pmm] Bug fix in pmm
Bug fix of PAGE_ADDRESS_FROM_ARENA in pmm of vm module

Signed-off-by: James Zhong <sha8312@gmail.com>
2017-04-21 17:14:45 -07:00
M1cha
8c5a570500 [arch][arm] disable alignment aborts
just in case they are enabled by default.
2017-02-06 18:54:11 -08:00
Eric Holland
b8f77ca483 [bcm][gfx] gfx driver for raspberry pi 2017-02-06 18:52:08 -08:00
Peter Harliman Liem
a1cd66a0bd [lib][sysparam] free hexbuffer in error path 2016-12-11 14:37:41 -08:00
Girts Folkmanis
65019cc391 [build] add deps for srcfiles.txt and include_paths.txt
Without the dependencies, the files get written once and don't get
updated when include paths or source files change.
2016-12-11 14:37:12 -08:00
Travis Geiselbrecht
1332d188cb [make][compiler] add -fno-common
This removes the COMMON section merging logic, which actually uncovered
a few duplicately declared symbols across compilation units.
2016-11-17 14:44:21 -08:00
Girts
61d06e19fc [lib/cbuf] [app/tests] fix off by one in lib/cbuf. add a test.
Previously, if tail was == 0, and we wrote exactly enough bytes to
the end of the buffer, then head would end up at 0 as well. This
would make the buffer instaneously empty, as head == tail.
2016-11-01 21:54:23 -04:00
Pierre Carru
a77295ae63 [arch][arm] stackusage python3 compatibility 2016-11-01 21:52:31 -04:00
Pierre Carru
2a0601dfe9 [make] output .map file 2016-11-01 21:52:07 -04:00
Girts
5b0f4d262b [lib/version] add a level of .phony indirection (#171)
Without this, the rule that depends on the generated file
gets rebuilt every time.
2016-10-07 12:03:21 -07:00
Girts
3972b18697 [make] [lib/version] remove a misplaced .PHONY (#170)
When lib/version was included, a rule depended on .PHONY.  This would
unexpectedly invoke other rules defined as dependent on .PHONY (standard
phony-ness signal).

As a side effect, this used to generate srcfiles.txt and
include_paths.txt in build dir. Since they are useful, we might always
build those anyway, and not make them phony at all.
2016-10-07 11:24:29 -07:00
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