Brian Swetland
5434847c51
[libc] C style static_assert takes two arguments
...
Fix this up and fix up the one existening dependency on the
existing incorrect behaviour.
2021-02-06 20:30:34 -08: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
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
a7496980c0
[lib][stdio] fix the build after -fbuiltin and io changes
2016-02-07 16:05:46 -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
Brian Swetland
e04df1aa0d
[lpc43xx][debug] integrate SWO/SWD debug, enable debug uart isr
2015-08-05 18:05:10 -07:00
Brian Swetland
7001fe7cb8
[lpc43xx][udc] improve endpoint clear feature
2015-08-04 18:58:22 -07:00
Brian Swetland
3e864f32fc
[lpc43xx][udc] handle multiple queue'd requests, fail when offline
2015-08-04 17:42:55 -07:00
Brian Swetland
c02f5c0880
[lpc43xx][gpdma] register definitions for DMA peripheral
2015-08-04 17:42:26 -07:00
Brian Swetland
3e0c3e9477
[platform][lpc43xx] somewhat more dynamic clock management
2015-08-04 14:15:33 -07:00
Brian Swetland
025da2ff38
[lpc43xx][udc] add write barrier, probably just paranoia
2015-08-02 19:17:54 -07:00
Brian Swetland
0d2e2651e6
[lpc43xx][udc] correctly set the interface number
2015-07-31 17:48:20 -07:00
Brian Swetland
c6db623a8a
[dev][udc] support multiple gadgets (one interface per gadget)
...
Also move more of the generic udc glue into udc-common.c
2015-07-31 16:07:22 -07:00
Brian Swetland
1da3bd7963
[platform][lpc43xx] yield during dgetc
2015-07-30 19:57:26 -07:00
Brian Swetland
cb8d867a4b
[lpc43xx][sgpio] header for serial gpio peripheral
2015-07-30 09:59:27 -07:00
Brian Swetland
7ec6f8914e
[lpc43xx][gpio] fix typo in header
2015-07-30 09:59:09 -07:00
Brian Swetland
54cfc1a645
[lpc43xx][gpio] implement basic gpio api, clean up header a bit
...
It's hard to fully unify this without some table mapping GPIOs to PINs.
2015-07-27 12:53:32 -07:00
Brian Swetland
4feb0286b4
[platform][lpc43xx] option for using bootloader clock config
2015-07-26 21:57:44 -07:00
Brian Swetland
b83ca46590
[lpc43xx][udc] some basic locking to avoid badness
...
The big bit of unfinished work is supporting multiple queue'd requests
and queueing a request against an endpoint where requests are in progress
(neither work yet, both will result in things getting messed up).
2015-07-26 14:43:33 -07:00
Brian Swetland
945ae49780
[platform][lpc43xx][udc] USB Device Controller Driver
...
This borrows liberally from the old LK MSM72xx UDC driver that existed
back in 2008. Turns out the MSM72xx and LPC43xx use the same UDC IP
block.
Code has been tidied up a bit, uses a hw header I threw together
before finding the old driver, and some udc common code has been
broken out into a separate file, but not yet a library.
Still needs some locking code and other cleanup, but enumeration
and bulk transfers are working.
2015-07-26 12:28:10 -07:00
Brian Swetland
65aceadb1e
[platform][lpc43xx] update irq defs
2015-07-26 12:28:10 -07:00
Brian Swetland
52dc703a5e
[platform][lpc43xx] more clock setup fiddling
2015-07-14 23:34:39 -07:00
Brian Swetland
76749b16d1
[platform][lpc43xx] pass correct frequency to arm_cm_systick_init()
2015-07-13 00:21:24 -07:00
Brian Swetland
08492fa540
[platform][lpc43xx] spifi serial flash controller registers
2015-07-13 00:19:14 -07:00
Brian Swetland
d68991fd41
[platform][lpc43xx] configure for 192MHz PLL1 and BASE_M4_CLK
...
Max is 204MHz, but 192 divides better for UARTs, etc.
2015-07-13 00:18:04 -07:00
Brian Swetland
ab23ec112a
[platform][lpc43xx] more clock registers
2015-07-13 00:15:46 -07:00
Brian Swetland
5ce67dc53c
[platform][lpc43xx] generate lk.bin.sign with lpc rom checksum
2015-07-12 00:52:33 -07:00
Brian Swetland
eea18f45cc
[platform][lpc43xx] usb device controller register/structure info
2015-07-06 00:01:00 -07:00
Brian Swetland
b736d68903
[platform][lpc43xx] support some faster debug uart baudrates
...
TARGET_DEBUG_BAUDRATE may be 115200, 1000000, 2000000, or 3000000
2015-07-05 23:10:55 -07:00
Brian Swetland
45a6034cf6
[platform][lpc43xx] hook up reboot
2015-07-05 05:45:02 -07:00
Brian Swetland
3e3036d0c2
[platform][lpc43xx] hook up debug uart
...
For the moment, just a trivial implementation in debug.c.
To be replaced with a standard lk uart "driver" later on.
2015-07-05 05:44:54 -07:00
Brian Swetland
c1f044266f
[platform][lpc43xx] add register definitions for some core bits
2015-07-05 05:44:54 -07:00
Brian Swetland
39afbc9668
[platform][lpc43xxx] minimal skeleton platform, target, and project
...
Just enough to compile cleanly. Not much platform-specific information
besides the IRQ numbers just yet.
2015-07-05 05:44:54 -07:00