Commit Graph

31 Commits

Author SHA1 Message Date
Travis Geiselbrecht
f2cf99bf73 [platform][stm32f4xx] append the necessary #define to GLOBAL_COMPILEFLAGS
GLOBAL_CFLAGS will only work for .c files, which breaks on the first
inclusion of the headers by a .cpp file. *_COMPILEFLAGS is for all
language types (C, asm, C++)
2022-08-14 19:05:20 -07:00
luka177
17a2af5ceb [platform-stm32f4xx] Updata chip defenition 2022-07-21 19:19:31 +03:00
Travis Geiselbrecht
445f3e4ee7 [platform/target][warnings] fix -Wmissing-declarations warnings in platform/ and target/
Mostly driver code in various platforms. There are still some warnings
in this part of the tree in lesser-used platforms.
2021-10-21 23:18:09 -07:00
Travis Geiselbrecht
6cb02526b7 [include][console] split lib/console.h into two
TL;DR most uses of lib/console.h -> lk/console_cmd.h

Move the part that lets a piece of code somewhere in the system to
define a console command from the actual lib/console api to start an
instance of the console. Move in almost every place the user of the
console command definition to the new header, lk/console_cmd.h which is
always in the include path.

Also remove most uses of testing for WITH_LIB_CONSOLE since you can
almost always just safely define it and then let the linker remove it.
2019-07-13 16:56:33 -07:00
Travis Geiselbrecht
3aecdda231 [includes] replace header guards with #pragma once 2019-07-13 15:46:16 -07:00
Travis Geiselbrecht
cba9e47987 [license] replace the longer full MIT license with a shorter one
Used scripts/replacelic. Everything seems to build fine.
2019-07-05 17:22:23 -07:00
Travis Geiselbrecht
d8fa82cb91 [formatting] run everything through codestyle
Almost nothing changes here except moving braces to the same line as the
function declaration. Everything else is largely whitespace changes and
a few dangling files with tab indents.

See scripts/codestyle
2019-06-19 21:02:24 -07:00
Travis Geiselbrecht
1b7a28efb8 [include][lk] fixup lk/ include path move 2019-06-19 19:46:11 -07:00
Martin Foo
b66bd3e420 Add STM32F429I-DISCO1 support(default serial:USART1). 2019-06-19 18:18:52 -07: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
Travis Geiselbrecht
8d63a2dcb8 [platform][stm32f4xx] move ST's peripheral driver library into external/ 2016-02-20 11:31:50 -08:00
Travis Geiselbrecht
d569c090ea [vim] remove vim expandtab comments on most of the files 2016-02-14 12:32:07 -08:00
Travis Geiselbrecht
2eb32a4369 [style] mass reformat all the non external code to 4 space indents
Ran everything through scripts/codestyle.space, which uses astyle
to generally follow K&R style.

Biggest non whitespace change is pulling brackets down on function
declarations, which I'm pretty ambivalent about, but astyle insists
on taking a stance
2016-02-14 12:24:01 -08:00
Gurjant Kalsi
7e0a4d3f90 [bio] Add a flag that allows devices to declare that they only deal with cache aligned blocks of memory 2015-11-04 17:18:15 -08:00
Travis Geiselbrecht
35ebee0e40 [merge] branch 'heapswitch'
This picks up the major work of allowing multiple heap implementations
and enable dlmalloc as an alternate heap to the simple existing one
(now called 'miniheap').

Also added a novm page allocator for memory management on systems too small
or missing an mmu to have a vm. Not much more than a simple bitmap allocator
that the heap pulls from. Allows for other heaps and/or users of physical
memory to coexist and span multiple banks of memory.
2015-10-20 16:53:00 -07:00
Travis Geiselbrecht
3b2d7a268b [make] remove the need for a module to manually add $(LOCAL_DIR)/include to the global include path
Pretty much every module in the system was already doing it, so do it
automatically.
2015-10-19 19:07:16 -07:00
Travis Geiselbrecht
7c09e82033 [make] make sure MEMBASE and MEMSIZE are always set exactly once 2015-10-15 17:22:16 -07:00
Brian Swetland
585a210f22 [stm32f4xx][debug] one byte writes to STIM0 2015-08-07 16:45:39 -07:00
Brian Swetland
f2e8f9c261 [platform][stm32f4xx] wire up SWD/SWO to console
If SWO trace is enabled, dputc() sends output to STIM0 as well
as the debug serial port.

Inject characters sent via DebugMonitor IPC into debug serial
rx buffer.
2015-08-05 14:55:47 -07:00
Will Lee
06cfce0adf [platform][stm32f4xx] internal flash support for bio layer 2015-07-16 18:21:56 -07:00
Shinya Suzuki
d953d335e7 [platform][stm32f4xx] support uart baud rate change 2015-07-14 14:24:13 -07:00
Will Lee
c4ab10c760 [platform][stm32f4xx] disable platform vector table relocation
This can interfere with LK's management of the vector table.
2015-07-09 17:46:03 -07:00
Brian Swetland
818352d4a3 [platform][stm32f4xx] minor cleanup 2015-07-02 15:19:14 -07:00
Brian Swetland
05636f5eb2 [platform][stm32f4xx] allow per-uart baudrate and rxbuf size configuration 2015-07-02 15:14:38 -07:00
Brian Swetland
31d66a7b3a [platform][stm32f4xx] fix warning in uart.c 2015-07-01 22:47:23 -07:00
Brian Swetland
12fdd82e03 [platform][stm32f4xx] fix uart_getc() to work properly if wait==1
return a negative value if no characters are available
2015-07-01 19:47:35 -07:00
Brian Swetland
56d87d83cb [platform][stm32f4xx] allow rom/mem base overrides 2015-06-29 13:49:30 -07:00
Brian Swetland
ecf9925ff6 [platform][stm32f4xx] provide overrides for PLL init values 2015-06-23 20:00:17 -07:00
Brian Swetland
acf7a49c4f [platform][stm32f4xx] based on stm32f2xx platform
Quick first pass at stm32f4xx support using the latest STM32F4
peripheral library code.  Probably could (and should) share more
with stm32fxxx.
2015-06-19 18:49:08 -07:00
Brian Swetland
3644293ed7 [platform][stm32f4xx] adjust header for lk integration 2015-06-19 18:49:08 -07:00
Brian Swetland
60a15dbc52 [platform][stm32f4xx] Import STM32F4xx StdPeriph Lib v1.5.1 2015-06-19 18:49:08 -07:00