hackndev / zinc

The bare metal stack for rust
zinc.rs
Apache License 2.0
1k stars 100 forks source link

Fix platform tree for Tiva C/Stellaris Launchpad boards #399

Closed jamwaffles closed 8 years ago

jamwaffles commented 8 years ago

This pull request fixes regressions in the mcu_tiva_c platform tree allowing Zinc to be built for the Stellaris Launchpad and Tiva C boards. I've test-compiled a boilerplate project onto my Stellaris Launchpad which works, and I've compiled a few of the tiva_c_* projects under examples/, which built fine as well, although I haven't flashed them to any boards yet.

Apologies for the messy commits. I hope the overall diff makes apparent what I did. There's a lot of .unwrap() unsafe code in the platform tree files, but that seems to be on par with the lpc17xx files, so I left my changes as is. An incorrect platform tree will panic with no error currently, but that seems to be a general issue with Zinc at the moment as the codebase is still in flux.

Notable changes:

Software versions:

macOS Sierra

$ rustc --version
rustc 1.13.0-nightly (6ffdda1ba 2016-09-14)

$ arm-none-eabi-ld --version
GNU ld (GNU Tools for ARM Embedded Processors) 2.24.0.20150921

Thank you to the Zinc team for making it possible to write Rust on ARM CPUs!

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-6.5%) to 85.657% when pulling a543993d75fd9e362116362a2ae3ef3a6941b27d on jamwaffles:tiva-c-regression-fix into 0b38933dd1b188e02be61a65c94caa6fa64d0420 on hackndev:master.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-6.5%) to 85.657% when pulling a543993d75fd9e362116362a2ae3ef3a6941b27d on jamwaffles:tiva-c-regression-fix into 0b38933dd1b188e02be61a65c94caa6fa64d0420 on hackndev:master.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-6.5%) to 85.657% when pulling a543993d75fd9e362116362a2ae3ef3a6941b27d on jamwaffles:tiva-c-regression-fix into 0b38933dd1b188e02be61a65c94caa6fa64d0420 on hackndev:master.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-6.5%) to 85.657% when pulling a543993d75fd9e362116362a2ae3ef3a6941b27d on jamwaffles:tiva-c-regression-fix into 0b38933dd1b188e02be61a65c94caa6fa64d0420 on hackndev:master.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-6.5%) to 85.657% when pulling 219b5ddb1947341ade404354a5d391f9092911e1 on jamwaffles:tiva-c-regression-fix into 0b38933dd1b188e02be61a65c94caa6fa64d0420 on hackndev:master.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-6.5%) to 85.657% when pulling 219b5ddb1947341ade404354a5d391f9092911e1 on jamwaffles:tiva-c-regression-fix into 0b38933dd1b188e02be61a65c94caa6fa64d0420 on hackndev:master.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-6.5%) to 85.657% when pulling 219b5ddb1947341ade404354a5d391f9092911e1 on jamwaffles:tiva-c-regression-fix into 0b38933dd1b188e02be61a65c94caa6fa64d0420 on hackndev:master.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-6.5%) to 85.657% when pulling 831994fb6045b64f44b8585f38cf343860c7c55f on jamwaffles:tiva-c-regression-fix into 0b38933dd1b188e02be61a65c94caa6fa64d0420 on hackndev:master.

jamwaffles commented 8 years ago

Glad to see it merged, thank you! Now to implement SPI on the Tiva...