mirror of
https://github.com/italicsjenga/gba.git
synced 2024-12-23 19:01:30 +11:00
51c870281c
* Add Serial and GPIO registers and implement embedded_hal traits Use VolAddress and phantom_fields to populate the SIOCNT, RCNT, and SIODATA8 registers. Implement embedded_hal serial traits around an empty SioSerial struct. Hide serial read and write traits behind a "serial" feature flag to make embedded-hal and nb dependencies optional. * UART echo example Enable the serial feature for this example. Provide a pinout diagram to assist people with wiring up a USB to UART adapter.
34 lines
720 B
TOML
34 lines
720 B
TOML
[package]
|
|
name = "gba"
|
|
description = "A crate (and book) for making GBA games with Rust."
|
|
version = "0.4.0-pre1"
|
|
authors = ["Lokathor <zefria@gmail.com>", "Thomas Winwood <twwinwood@gmail.com>"]
|
|
repository = "https://github.com/rust-console/gba"
|
|
readme = "README.md"
|
|
keywords = ["gba"]
|
|
edition = "2018"
|
|
license = "Apache-2.0"
|
|
|
|
publish = false
|
|
|
|
[features]
|
|
default = []
|
|
serial = ["embedded-hal", "nb"]
|
|
|
|
[dependencies]
|
|
typenum = "1.10"
|
|
voladdress = "0.2"
|
|
gba-proc-macro = "0.5"
|
|
embedded-hal = { version = "0.2.4", optional = true }
|
|
nb = { version = "1.0.0", optional = true }
|
|
|
|
[profile.release]
|
|
lto = true
|
|
panic = "abort"
|
|
incremental = false
|
|
codegen-units = 1
|
|
|
|
[[example]]
|
|
name = "uart_echo"
|
|
required-features = ["serial"]
|