From 0f33d2b8a632d313ee45fca05360979eff59bea6 Mon Sep 17 00:00:00 2001
From: Jan Niehusmann <jan@gondor.com>
Date: Thu, 11 Aug 2022 12:07:34 +0000
Subject: [PATCH] Enable feature "rt" when compiling vector_table example

Without this change, building the vector_table example fails when
building from the rp2040-hal directory:

```
rp2040-hal$ cargo build --release --example vector_table
   Compiling rp2040-hal v0.5.0 (rp2040-hal)
error[E0432]: unresolved import `pac::interrupt`
  --> rp2040-hal/examples/vector_table.rs:30:5
   |
30 | use pac::interrupt;
   |     ^^^^^---------
   |     |    |
   |     |    help: a similar name exists in the module (notice the capitalization): `Interrupt`
   |     no `interrupt` in the root

error: cannot determine resolution for the attribute macro `interrupt`
   --> rp2040-hal/examples/vector_table.rs:148:3
    |
148 | #[interrupt]
    |   ^^^^^^^^^
    |
    = note: import resolution is stuck, try simplifying macro imports
```
---
 rp2040-hal/Cargo.toml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/rp2040-hal/Cargo.toml b/rp2040-hal/Cargo.toml
index 2b86b06..3c1335c 100644
--- a/rp2040-hal/Cargo.toml
+++ b/rp2040-hal/Cargo.toml
@@ -50,3 +50,8 @@ rom-v2-intrinsics = []
 # irq example uses cortex-m-rt::interrupt, need rt feature for that
 name = "gpio_irq_example"
 required-features = ["rt"]
+
+[[example]]
+# vector_table example uses cortex-m-rt::interrupt, need rt feature for that
+name = "vector_table"
+required-features = ["rt"]