This commit is contained in:
Sebastien Bourdeauducq 2017-05-06 12:32:13 +08:00
parent 4da283648b
commit 1069944ea2
1 changed files with 19 additions and 19 deletions

View File

@ -14,9 +14,11 @@ use tm4c129x::interrupt::Handlers as InterruptHandlers;
const LED1: u8 = 0x10; // PF1 const LED1: u8 = 0x10; // PF1
const LED2: u8 = 0x40; // PF3 const LED2: u8 = 0x40; // PF3
const HV_PWM: u8 = 0x01; // PF0 const HV_PWM: u8 = 0x01; // PF0
const FV_PWM: u8 = 0x04; // PF2 const FV_PWM: u8 = 0x04; // PF2
const FBV_PWM: u8 = 0x01; // PD5 const FBV_PWM: u8 = 0x01; // PD5
const FD_ADC: u8 = 0x01; // PE0 const FD_ADC: u8 = 0x01; // PE0
const FV_ADC: u8 = 0x02; // PE1 const FV_ADC: u8 = 0x02; // PE1
const FBI_ADC: u8 = 0x04; // PE2 const FBI_ADC: u8 = 0x04; // PE2
@ -81,8 +83,6 @@ fn set_emission_range(range: EmissionRange) {
} }
fn main() { fn main() {
hprintln!("Hello, world!");
cortex_m::interrupt::free(|cs| { cortex_m::interrupt::free(|cs| {
let sysctl = tm4c129x::SYSCTL.borrow(cs); let sysctl = tm4c129x::SYSCTL.borrow(cs);
let nvic = tm4c129x::NVIC.borrow(cs); let nvic = tm4c129x::NVIC.borrow(cs);