blob: b59aea945101e2f4c0b513c6c6286d2c924bd2e8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#![allow(non_camel_case_types)]
#![no_main]
#![no_std]
extern crate cortex_m_rt;
extern crate panic_halt;
use cortex_m_rt::{entry, interrupt};
#[entry]
fn foo() -> ! {
loop {}
}
enum interrupt {
USART1,
}
#[interrupt]
fn USART1() {}
pub mod reachable {
use cortex_m_rt::interrupt;
enum interrupt {
USART1,
}
#[interrupt] //~ ERROR symbol `USART1` is already defined
fn USART1() {}
}
|