Commit Graph

47 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
Gurjant Kalsi
e24567f546 [usbc][stellaris] Implement usbc_flush_ep for stellaris 2016-06-02 15:09:48 -07:00
Travis Geiselbrecht
2423845505 [merge] merge in cortex-m fpu support changes 2016-03-30 20:28:18 -07:00
Travis Geiselbrecht
cbb6e05127 [arm-m][fpu] fix fpu context switch to not overly trigger fpused tracking
Make sure stellaris builds with fpu enabled
2016-03-29 00:02:54 -07:00
Gurjant Kalsi
1fa7f2c977 [usb] Allow client code to specify USB endpoint type. 2016-03-28 21:21:21 -07:00
Travis Geiselbrecht
8c506eba61 [arch][arm] fix up the cortex-m fpu code to build again on all three combinations of arch/fpu
cortex-m0 with no fpu and limited instructions
cortex-m3+ with no fpu
cortex-m4/m7 with fpu

Untested if this still works.
2016-03-28 19:57:17 -07:00
Travis Geiselbrecht
6d01c3a2f4 [platform][stellaris] disable hitting some registers that are unimplemented on QEMU 2016-03-14 19:06:58 -07:00
Travis Geiselbrecht
e604f4b103 [target][lm3s6965evb] add support for stellaris based lm3s6965evb board
This seems to be somewhat properly emulated in qemu.

qemu-system-arm -machine lm3s6965evb -cpu cortex-m3
2016-02-20 20:08:15 -08:00
Travis Geiselbrecht
b7cb4be62e [platform][stellaris] move TI's driver library into external/ 2016-02-20 11:31:49 -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
Travis Geiselbrecht
367da75f12 [platform][stellaris] fix usbc driver for new changes in api 2015-11-19 15:29:05 -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
3d3998eb58 [lib][console] move the panic shell test into console.h and fix a few missing debug.h includes 2015-10-12 18:26:48 -07:00
Travis Geiselbrecht
801103f665 [debug] fix removal of _dputc() 2015-08-24 17:07:55 -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
a23c4a14b7 [platform][stellaris] convert to generic systick mechanism 2014-03-18 19:46:14 -07:00
Travis Geiselbrecht
684cde6c03 [arch][arm-m] refactor systick code into separate module
Add generic support for running systick in monotonic mode and providing
current_time() routines.

Platforms may choose not to use this, thus it is moved into an optional
module.
2014-03-18 19:43:11 -07:00
Travis Geiselbrecht
00786d270f [platform][stellaris] print more revision info
Also fixes a bug in the old revision print.
2014-03-11 20:45:49 -07:00
Travis Geiselbrecht
7d3be1b591 [stellaris] update usb driver to match stack changes 2013-10-20 16:04:18 -07:00
Travis Geiselbrecht
90d2942b44 [platform][stellaris] fix a bug in the usb driver, add more interfaces/endpoints 2013-09-12 11:12:46 -07:00
Travis Geiselbrecht
e3774f7108 [platform][stellaris] start of usb driver for stellaris 2013-09-09 15:03:58 -07:00
Travis Geiselbrecht
0e8fbf272b [stellaris] print some config data at startup 2013-08-30 18:45:31 -07:00
Travis Geiselbrecht
75ab828b20 [stellaris] clean up the vector table to use weak references 2013-08-30 18:45:31 -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
98b4e0938e [make] rename DEBUGLEVEL -> LK_DEBUGLEVEL, remove DEBUG define
-Remove top level DEBUG=<N> define
-Rename DEBUGLEVEL to LK_DEBUGLEVEL to be clear.
-Fix the places that used DEBUGLEVEL and the few spots that #ifdef
on DEBUG.
2013-06-07 22:27:00 -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
648f9e7a6e [platform][stellaris] fix warning in gcc 4.8.0 2013-05-05 18:19:46 -07:00
Travis Geiselbrecht
3dffd4ea6b [platform][stellaris] begin of a gpio api 2013-03-18 01:41:39 -07:00
Travis Geiselbrecht
764fa1681c [platform][stellaris] use lk's assert 2013-03-18 01:41:14 -07:00
Travis Geiselbrecht
4b63f75ff3 [platform][stellaris] create a more standard vectab 2013-03-10 17:53:38 -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
a7ed7d2ef2 [platform][stellaris] make timer implementation much more efficient
Explored using a hardware 64bit counter, but the division to get
back to usec and msec is far more expensive than the ticking
method using systick. Spiff up the current_time() mechanism to
calculate on its own and avoid expensive 64bit divides.
2013-03-09 17:03:11 -08:00
Travis Geiselbrecht
70b074bf6f [platform][stellaris] get systick firing properly 2013-02-17 18:41:27 -08:00
Travis Geiselbrecht
178b6772d5 [platform][stellaris] rearrange some headers 2013-02-17 18:15:06 -08:00
Travis Geiselbrecht
3138227750 [platform][stellaris] reformat according to scripts/codestyle 2013-02-17 17:46:04 -08:00
Travis Geiselbrecht
12100ab39d [platform][stellaris] point the headers and implementations to the stellarisware files 2013-02-16 15:06:24 -08:00
Travis Geiselbrecht
c96739f288 [platform][stellaris] Add a full copy of the TI Stellarisware 9453 driver lib
A few modifications were made to the files:
-Removed a huge pile of unused register defs headers from inc/
-Converted all line endings in source files to unix
-Removed some prebuilt libraries
2013-02-16 15:06:19 -08:00
Travis Geiselbrecht
3911d09cf4 [platform][stellaris] get debug receive working
-Add proper vector table support
-Enable RX uart interrupt
-Get it wired up to the cbuf properly
2013-02-06 21:42:21 -08:00
Ian McKellar
6d6f2b749f bring up to date 2013-02-04 22:20:16 -08:00
Ian McKellar
2e23f92e12 remove unneeded parts of TI driverlib 2012-11-08 22:11:29 -08:00
Ian McKellar
c2381cd2ec it boots! 2012-11-06 06:05:21 -08:00