[package] name = "atsam4-hal" version = "0.3.1" authors = ["John W. Terrell ", "Jacob Alexander "] edition = "2021" description = "HAL for the ATSAM4 microcontrollers" keywords = ["arm", "cortex-m", "atsam4", "hal"] categories = ["embedded", "hardware-support", "no-std"] license = "MIT OR Apache-2.0" repository = "https://github.com/atsam4-rs/atsam4-hal" [dependencies] cortex-m = { version = "0.7.7", features = ["critical-section-single-core"] } defmt = "0.3" embedded-dma = "0.2.0" embedded-hal = { version = "0.2.7", features = ["unproven"] } embedded-storage = "0.3.0" fugit = { version = "0.3.6", features = ["defmt"] } fugit-timer = "0.1.3" nb = "1.1.0" paste = "1.0" usb-device = { version = "0.2.9", features = ["defmt"], optional = true } void = { version = "1.0.2", default-features = false } # atsam4e atsam4e8c-pac = { version = "0.3.1", optional = true } atsam4e8e-pac = { version = "0.3.1", optional = true } atsam4e16c-pac = { version = "0.3.1", optional = true } atsam4e16e-pac = { version = "0.3.1", optional = true } # atsam4n atsam4n8a-pac = { version = "0.3.1", optional = true } atsam4n8b-pac = { version = "0.3.1", optional = true } atsam4n8c-pac = { version = "0.3.1", optional = true } atsam4n16b-pac = { version = "0.3.1", optional = true } atsam4n16c-pac = { version = "0.3.1", optional = true } # atsam4s atsam4s2a-pac = { version = "0.3.1", optional = true } atsam4s2b-pac = { version = "0.3.1", optional = true } atsam4s2c-pac = { version = "0.3.1", optional = true } atsam4s4a-pac = { version = "0.3.1", optional = true } atsam4s4b-pac = { version = "0.3.1", optional = true } atsam4s4c-pac = { version = "0.3.1", optional = true } atsam4s8b-pac = { version = "0.3.1", optional = true } atsam4s8c-pac = { version = "0.3.1", optional = true } atsam4sa16b-pac = { version = "0.3.1", optional = true } atsam4sa16c-pac = { version = "0.3.1", optional = true } atsam4sd16b-pac = { version = "0.3.1", optional = true } atsam4sd16c-pac = { version = "0.3.1", optional = true } atsam4sd32b-pac = { version = "0.3.1", optional = true } atsam4sd32c-pac = { version = "0.3.1", optional = true } [features] default = ["atsam4e16e"] unstable = [] # Enable USB clock support usb = ["usb-device"] # atsam4e atsam4e = [] atsam4e_c = [] # 100-pin atsam4e_e = [] # 144-pin atsam4e8c = ["atsam4e", "atsam4e_c", "atsam4e8c-pac", "atsam4e8c-pac/rt", "atsam4e8c-pac/critical-section"] atsam4e8e = ["atsam4e", "atsam4e_e", "atsam4e8e-pac", "atsam4e8e-pac/rt", "atsam4e8e-pac/critical-section"] atsam4e16c = ["atsam4e", "atsam4e_c", "atsam4e16c-pac", "atsam4e16c-pac/rt", "atsam4e16c-pac/critical-section"] atsam4e16e = ["atsam4e", "atsam4e_e", "atsam4e16e-pac", "atsam4e16e-pac/rt", "atsam4e16e-pac/critical-section"] # atsam4n atsam4n = [] atsam4n_a = [] # 48-pin atsam4n_b = [] # 64-pin atsam4n_c = [] # 100-pin atsam4n8a = ["atsam4n", "atsam4n_a", "atsam4n8a-pac", "atsam4n8a-pac/rt", "atsam4n8a-pac/critical-section"] atsam4n8b = ["atsam4n", "atsam4n_b", "atsam4n8b-pac", "atsam4n8b-pac/rt", "atsam4n8b-pac/critical-section"] atsam4n8c = ["atsam4n", "atsam4n_c", "atsam4n8c-pac", "atsam4n8c-pac/rt", "atsam4n8c-pac/critical-section"] atsam4n16b = ["atsam4n", "atsam4n_b", "atsam4n16b-pac", "atsam4n16b-pac/rt", "atsam4n16b-pac/critical-section"] atsam4n16c = ["atsam4n", "atsam4n_c", "atsam4n16c-pac", "atsam4n16c-pac/rt", "atsam4n16c-pac/critical-section"] # atsam4s atsam4s = [] atsam4s_a = [] # 48-pin atsam4s_b = [] # 64-pin atsam4s_c = [] # 100-pin atsam4s_ = [] # Single blank flash atsam4sa = [] # Cache (CMCC) atsam4sd = [] # Dual bank flash and cache (CMCC) atsam4s2a = ["atsam4s", "atsam4s_", "atsam4s_a", "atsam4s2a-pac", "atsam4s2a-pac/rt", "atsam4s2a-pac/critical-section"] atsam4s2b = ["atsam4s", "atsam4s_", "atsam4s_b", "atsam4s2b-pac", "atsam4s2b-pac/rt", "atsam4s2b-pac/critical-section"] atsam4s2c = ["atsam4s", "atsam4s_", "atsam4s_c", "atsam4s2c-pac", "atsam4s2c-pac/rt", "atsam4s2c-pac/critical-section"] atsam4s4a = ["atsam4s", "atsam4s_", "atsam4s_a", "atsam4s4a-pac", "atsam4s4a-pac/rt", "atsam4s4a-pac/critical-section"] atsam4s4b = ["atsam4s", "atsam4s_", "atsam4s_b", "atsam4s4b-pac", "atsam4s4b-pac/rt", "atsam4s4b-pac/critical-section"] atsam4s4c = ["atsam4s", "atsam4s_", "atsam4s_c", "atsam4s4c-pac", "atsam4s4c-pac/rt", "atsam4s4c-pac/critical-section"] atsam4s8b = ["atsam4s", "atsam4s_", "atsam4s_b", "atsam4s8b-pac", "atsam4s8b-pac/rt", "atsam4s8b-pac/critical-section"] atsam4s8c = ["atsam4s", "atsam4s_", "atsam4s_c", "atsam4s8c-pac", "atsam4s8c-pac/rt", "atsam4s8c-pac/critical-section"] atsam4sa16b = ["atsam4s", "atsam4sa", "atsam4s_b", "atsam4sa16b-pac", "atsam4sa16b-pac/rt", "atsam4sa16b-pac/critical-section"] atsam4sa16c = ["atsam4s", "atsam4sa", "atsam4s_c", "atsam4sa16c-pac", "atsam4sa16c-pac/rt", "atsam4sa16c-pac/critical-section"] atsam4sd16b = ["atsam4s", "atsam4sd", "atsam4s_b", "atsam4sd16b-pac", "atsam4sd16b-pac/rt", "atsam4sd16b-pac/critical-section"] atsam4sd16c = ["atsam4s", "atsam4sd", "atsam4s_c", "atsam4sd16c-pac", "atsam4sd16c-pac/rt", "atsam4sd16c-pac/critical-section"] atsam4sd32b = ["atsam4s", "atsam4sd", "atsam4s_b", "atsam4sd32b-pac", "atsam4sd32b-pac/rt", "atsam4sd32b-pac/critical-section"] atsam4sd32c = ["atsam4s", "atsam4sd", "atsam4s_c", "atsam4sd32c-pac", "atsam4sd32c-pac/rt", "atsam4sd32c-pac/critical-section"]