From 5781e9391fe3d7d3dabec620cb782d38f5f9cb9e Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Fri, 10 May 2019 11:50:53 -0400 Subject: Update to 0.2.0: Add HandlerArray type. * Create HandlerArray as a safe wrapper around Handler. * Add Cargo features for HandlerArray size. * Move Handler into sub-module. * Add CriticalSection sub-module for architecture dependent support of interrupt-free contexts. * Add build rules to pull in cortex-m support for CriticalSection automatically. --- Cargo.toml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 21623b4..2ea48ee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clint" -version = "0.1.0" +version = "0.2.0" description = "CLosure INTerrupt handlers." categories = ["no-std", "embedded", "hardware-support", "asynchronous"] keywords = ["interrupt", "peripheral"] @@ -15,3 +15,18 @@ compiletest_rs = "~0.3" [dev-dependencies.cortex-m-rt] version = "~0.6" + +[target.'cfg(all(target_arch = "arm", target_os = "none"))'.dependencies] +cortex-m = "~0.6" + +[features] +default = ["isr-32"] + +# Number of ISR closures to hold in a HandlerTable. This is pretty +# clumsy, but doesn't require const generics. +isr-8 = [] +isr-16 = [] +isr-32 = [] +isr-64 = [] +isr-128 = [] +isr-256 = [] -- cgit v1.2.3