Commit Graph

28 Commits

Author SHA1 Message Date
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
Travis Geiselbrecht
e905886659 [platform][stm32f2xx] move ST's peripheral driver library into external/ 2016-02-20 11:31:50 -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
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
c32a4cba8d [platform][stm32f2xx] disable fpu in 4xx series chip
ARM_CPU=cortex-m4f has broken fpu support, switch to cortex-m4 for now.
2015-04-11 13:40:42 -07:00
Travis Geiselbrecht
822514acdb [platform] expand platform_halt() to include suggested action and reason
-Remove old halt() call
-Add default implementation that just wedges the cpu if platform doesn't override
-Add default implementation for zynq
2014-08-06 15:31:27 -07:00
Travis Geiselbrecht
070a8549c8 [platform][stm32f1xx/stm32f2xx/sam3] convert to new generic systick module 2014-03-18 20:04:17 -07:00
Dima Zavin
36c7735533 [libc][stdio] cleanup printf definition and clients
Move implementation to stdio.c to sit next to the other
stdio definitions that use the debug output functions. Keep
the declaration of it, though, in printf.h to sit next to
sprintf, etc.

Don't include printf.h directly in other places, rely on stdio.h
to properly pull in these functions.

Change-Id: I357cb04a5c78185b8fde908193b672326c2ee542
Signed-off-by: Dima Zavin <dima@android.com>
2013-08-05 10:04:29 -07:00
Dima Zavin
e8a9b4b7a4 [libc] move tracing out of debug into separate trace.h
Change-Id: I7476fc17b587a0ea2a42cbe3d49b72063e4c5dc8
Signed-off-by: Dima Zavin <dima@android.com>
2013-08-05 10:04:29 -07:00
Travis Geiselbrecht
d5cf22f40d [make] rename DEFINES to GLOBAL_DEFINES
To fix your module makefiles:
-Change DEFINES to GLOBAL_DEFINES
2013-06-07 22:26:38 -07:00
Travis Geiselbrecht
e002c58b59 [make] rename INCLUDES -> GLOBAL_INCLUDES
To be more consistent, rename make variable INCLUDES to GLOBAL_INCLUDES.
Also remove the need to put -I in front of each field, the make system
will do that for you.

To fix your module makefiles:
-Change INCLUDES -> GLOBAL_INCLUDES
-Remove -I prefix
2013-06-07 22:26:06 -07:00
Travis Geiselbrecht
867b31d499 [platform] switch arm-m platforms to using new arm-m irq header/footer 2013-03-10 17:53:37 -07:00
Travis Geiselbrecht
0c64f5aa7b [platform] fix m3_* api calls to arch_cm_* 2013-03-10 17:53:37 -07:00
Travis Geiselbrecht
c039abf948 [platform] switch all platforms to using the char version of cbuf 2013-01-22 00:17:34 -08:00
Travis Geiselbrecht
69318ef642 [platform][stm32f2xx] properly set 4xx series as -m4f 2012-11-11 20:12:26 -08:00
Travis Geiselbrecht
60ec317b71 [platform] fix cortex-m based platforms to better support non -m3 2012-11-11 20:12:09 -08:00
Travis Geiselbrecht
a6f6a7fbe7 [platform] run platform/ through astyle 2012-10-31 22:09:01 -07:00
Travis Geiselbrecht
9c4a2fff48 [platform][stm32f2xx] have the alternate function config be flags on gpio_config 2012-10-14 13:27:53 -07:00
Travis Geiselbrecht
b8b58d00d0 [platform][stm32f2xx] have 4xx be a variant of 2xx 2012-10-14 13:27:53 -07:00
Chris Anderson
91c79721d2 [stm32f2xx] Update timer.c to use lk_{big}time_t 2012-10-07 10:58:50 -07:00
Chris Anderson
6fa3fe5bc7 [stm32f2xx] Reformat vectable for readability 2012-10-07 01:36:29 -07:00
Chris Anderson
b614bcf281 [stm32f2xx] Clean up gpios and get uart3 running 2012-10-07 01:36:29 -07:00
Chris Anderson
f54f887e71 [stm32f2xx] Update vector table for f2xx NVIC 2012-10-07 01:36:29 -07:00
Chris Anderson
a0ab877606 [stm32f2xx] Rework of gpio code for 2xx line 2012-10-07 01:36:29 -07:00
Chris Anderson
d4acbaad06 Initial skeleton / build for stm32f2xx 2012-10-07 01:36:29 -07:00