Commit Graph

130 Commits

Author SHA1 Message Date
Wladimir J. van der Laan
0e88fae4d2 rust: lock embedded-graphics to 0.6.0-alpha.2
The API keeps changing significantly between alpha versions, it's too much
work for me to keep updating the demo - I'll update it to 0.6.0 once
there is a release.
2020-02-02 16:55:22 +00:00
Wladimir J. van der Laan
f8b280eb6f doc: interrupt_enabe is not a typo (by me) 2020-01-21 18:46:30 +01:00
Wladimir J. van der Laan
dff0540fc6 doc: Typo fixes in kpu.md 2020-01-21 18:36:35 +01:00
Wladimir J. van der Laan
bd40892845 rust: add upstream PR for cc-rs 2020-01-19 18:10:26 +00:00
Wladimir J. van der Laan
ff78df047d voxel: Use accelerometer to steer 2020-01-12 17:36:28 +00:00
Wladimir J. van der Laan
7e0b0f05b0 voxel: Add smoothing for height 2020-01-12 13:12:20 +00:00
Wladimir J. van der Laan
e85a074309 rust: Add voxel rendering demo 2020-01-12 11:55:53 +00:00
Wladimir J. van der Laan
d128fdd4a8 esp8266at: change to nom 5 2019-12-31 23:19:41 +00:00
Wladimir J. van der Laan
a59cbcd4ee esp8266at: add missing dyn and b"" 2019-12-31 22:46:07 +00:00
Wladimir J. van der Laan
a1c65405ea rust: Clean up cargo patches
No more need for any `k210-hal` and `k210-pac` patches with 0.2.0
2019-12-28 20:17:37 +00:00
Wladimir J. van der Laan
33eab72e3e k210-console: SGR 39/49
these are fairly important: reset to default color
2019-10-14 02:37:53 +00:00
Wladimir J. van der Laan
cbb53817e3 rust: Switch back to k210-pac upstream
Patch "Remove work-around for pcrel issue" was merged.
2019-09-27 14:41:19 +02:00
Wladimir J. van der Laan
ff064f596f rust: Update for embedded-graphics 0.6.0-alpha.2 2019-09-16 14:54:11 +00:00
Wladimir J. van der Laan
ce5c41f0da rust: use repr(C) for aligned structs
Just a precaution: we want a predictable layout here.
2019-09-05 11:17:23 +00:00
Wladimir J. van der Laan
adfa176f77 doc: Add some random info about KPU 2019-08-30 17:59:57 +00:00
Wladimir J. van der Laan
a6feb00fc8 doc: remove CH340C and MSM261S4030H0 from Sipeed M1 description
These are not actually part of the M1 module, but are on the back side
of the Sipeed Dock.
2019-08-30 17:55:09 +00:00
Wladimir J. van der Laan
dfd14f517f rust: address 0xffffffff80000000 → 0x80000000
Try working without address work-around to aid debugging and disassembly.
2019-08-29 10:19:32 +00:00
Wladimir J. van der Laan
1397aa19db rust: Animate dot in embfx
Also add bounds check for pixels iterator (whoops).
2019-08-28 07:53:35 +00:00
Wladimir J. van der Laan
860bda159a rust: Simplify and optimize pixel iterator
It should be entirely safe to write u16 to a u32 array: no alignment
issues, no risk of creating undefined values.
2019-08-28 07:05:53 +00:00
Wladimir J. van der Laan
d1ee942f10 rust: Add embgfx demo 2019-08-26 08:37:09 +00:00
Wladimir J. van der Laan
68faef6cf4 rust: SPI clock speed constant for LCD 2019-08-21 14:56:04 +00:00
Wladimir J. van der Laan
37cf4ad5a2 rust: Test PLL computation against output of C implementation 2019-08-21 14:55:31 +00:00
Wladimir J. van der Laan
eab9d94a1b rust: Return usable PLL register values directly from the computation
The internal representation and parameter names are just an implementation detail.
2019-08-21 09:01:55 +00:00
Wladimir J. van der Laan
9bdf7ea2df rust: Factor PLL computation out from sysctl
If you need to have mystery meat algorithms, at least abstract
them.
2019-08-21 08:49:41 +00:00
Wladimir J. van der Laan
d7eb8dd0e8 rust: sysctl PLL setting
Port over the terrible PLL frequency setting code, and use it to set up
the clocks for every demo.
2019-08-20 21:18:23 +00:00
Wladimir J. van der Laan
f8f7235daa rust: UART/network optimizations 2019-08-18 14:40:19 +00:00
Wladimir J. van der Laan
2840ec0cf9 doc: Add important note on I2C addresses 2019-08-18 11:32:53 +00:00
Wladimir J. van der Laan
213ca1d50e rust: Use buffered UART1 in term-server and weather 2019-08-16 17:27:39 +00:00
Wladimir J. van der Laan
1118d708b1 rust: Actually provide trap handler 2019-08-15 20:53:22 +00:00
Wladimir J. van der Laan
335f728b72 rust: Drop cc-rs patch
1.0.40 was released with RISC-V support !
2019-08-15 14:57:53 +00:00
Wladimir J. van der Laan
1990bff89f rust: k210-pac dependency bump 2019-08-15 12:48:41 +00:00
Wladimir J. van der Laan
b6b5d13b0c rust: Add interrupt test
really want to handle UART interrupts so this needs PLIC
and dispatching but this is a start…
2019-08-14 18:35:38 +00:00
Wladimir J. van der Laan
31da4a7cd7 rust: Update secp256k1 dependency to 0.15.2
`lowmemory` feature was merged upstream, no need for a patch anymore.
2019-08-14 17:57:05 +00:00
Wladimir J. van der Laan
0dcbeda646 rust: sdcard read/write sectors using DMA 2019-08-12 17:43:16 +00:00
Wladimir J. van der Laan
ed91b43e2a rust: sdlcd improvements
- Init error reporting
- Put 16-bit halves of display output correctly
- Better comments
2019-08-12 07:37:32 +00:00
Wladimir J. van der Laan
a46b314c6d rust: Clean up sdlcd, add ffmpeg commandline to README 2019-08-12 06:57:27 +00:00
Wladimir J. van der Laan
31dc21ce85 rust: Add sdlcd example
Stream raw SD card contents directly to LCD screen.
2019-08-11 18:16:53 +00:00
Wladimir J. van der Laan
862407a1bc rust: Comment update 2019-08-11 18:16:53 +00:00
Wladimir J. van der Laan
e32ba5b66a rust: Bump LCD SPI clock rate
Now that LCD is using DMA, the SPI clock rate can be increased.
2019-08-11 18:16:53 +00:00
Wladimir J. van der Laan
a5d1f5c9ae rust: Make SPI send/recv loops nicer
Use iterators to make the loops simpler.
2019-08-11 18:16:53 +00:00
Wladimir J. van der Laan
161bd9982e rust: Prefer X::from to as X 2019-08-11 18:16:44 +00:00
Wladimir J. van der Laan
c2c6287f9c rust: Basic sdcard test
Print SD card information and dump a sector.
2019-08-11 09:56:54 +00:00
Wladimir J. van der Laan
ff1e5c5483 Rust dependency bump 2019-08-09 14:51:54 +00:00
Wladimir J. van der Laan
6056338e93 rust/secp256k1-test: Pushing bits upstream
Not yet upstream:
- cc-rs: disable fPIC for risc-v targets
- secp256k1: low-memory feature
- riscv-rt: .sdata2 sections linker script
2019-08-08 06:48:30 +00:00
Wladimir J. van der Laan
d9434deb22 rust/game-of-life: Check toggle coords against correct bounds 2019-08-07 18:32:09 +00:00
Wladimir J. van der Laan
4ed4555586 rust: Add secp256k1 test 2019-08-07 18:14:48 +00:00
Wladimir J. van der Laan
e43668a88c rust: Remove k210-pac patch
Upstream k210-pac is good enough now, no need to override it anymore.
2019-08-07 13:01:01 +00:00
Wladimir J. van der Laan
4e5ea50f08 rust: lcd: Clarify magic values 2019-08-07 11:27:49 +00:00
Wladimir J. van der Laan
e86d5c5f75 Use DMAC for display everywhere
This mimics the way the Kendryte SDK does things—it is better because
the MMIO based SPI tends to sometimes lose synchonization when the CPU
doesn't keep up providing data fast enough.
2019-08-07 10:22:05 +00:00
Wladimir J. van der Laan
2906c8c895 DMAC!
Add basic DMAC support (SPI/LCD first).

The current implementation (adding _dma to LCD traits) is really, really
awkward and just for testing. Probably it would be better for the LCD to
own its own dedicated DMA channel to avoid having to pass them in
for every… single… thing…
2019-08-07 09:19:44 +00:00