Skip to content
Snippets Groups Projects
Select Git revision
  • 0deaa01f42d25e1ce2fedf35fc7902a1f68a2d3a
  • master default protected
  • usb
  • fresk
4 results

launch.json

Blame
  • Cargo.toml 1.10 KiB
    [package]
    authors = ["Per Lindgren <per.lindgren@ltu.se>"]
    edition = "2018"
    readme = "README.md"
    name = "app"
    version = "0.1.0"
    
    # [patch.crates-io]
    # stm32f4xx-hal = { path = "../stm32f4xx-hal" }
    
    [dependencies]
    cortex-m-rt = "0.6.7"
    # cortex-m-semihosting = "0.3.2"
    panic-halt = "0.2.0"
    # panic-abort = "0.3.1" # requires nightly toolchain
    
    panic-semihosting = "0.5.1"
    panic-itm = "0.4.0"
    bare-metal = "0.2.4"
    nb = "0.1.1"
    cortex-m-rtfm = "0.4.0"
    
    [dependencies.cortex-m]
    version = "0.5.8"
    features = ["inline-asm"] # <- currently requires nightly compiler
    
    # Uncomment for the allocator example.
    # alloc-cortex-m = "0.3.5"
    
    [dependencies.stm32f4]
    version = "0.5.0"
    features = ["stm32f411", "rt"]
    # optional = true
    
    [dependencies.stm32f4xx-hal]
    version = "0.2.8"
    features = ["stm32f411", "rt"]
    
    # this lets you use `cargo fix`!
    # [[bin]]
    # name = "app"
    # test = false
    # bench = false
    
    [profile.dev]
    incremental = false
    codegen-units = 1
    
    [profile.release]
    codegen-units = 1   # better optimizations
    debug = true        # symbols are nice and they don't increase the size on Flash
    lto = true          # better optimizations