Skip to content
This repository was archived by the owner on Jul 6, 2019. It is now read-only.

Commit b634656

Browse files
committed
isrs: Silence non-upper-case-globals warning
1 parent 440d308 commit b634656

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/zinc/hal/cortex_m3/isr.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ pub extern fn isr_default_fault() {
4646
#[cfg(test)]
4747
pub extern fn isr_default_fault() { unimplemented!() }
4848

49+
#[allow(non_upper_case_globals)]
4950
const ISRCount: uint = 16;
5051

5152
#[link_section=".isr_vector"]
53+
#[allow(non_upper_case_globals)]
5254
#[no_mangle]
5355
pub static ISRVectors: [Option<unsafe extern fn()>, ..ISRCount] = [
5456
Some(__STACK_BASE),

src/zinc/hal/k20/isr.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ extern {
8888
fn isr_soft();
8989
}
9090

91+
#[allow(non_upper_case_globals)]
9192
const ISRCount: uint = 95;
9293

9394
#[link_section=".isr_vector_nvic"]
95+
#[allow(non_upper_case_globals)]
9496
#[no_mangle]
9597
pub static NVICVectors: [Option<unsafe extern fn()>, ..ISRCount] = [
9698
Some(isr_dma_0),

0 commit comments

Comments
 (0)