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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
//! launchpad is crate for playing with the [Texas Instruments Stellaris
//! Launchpad](http://www.ti.com/tool/ek-lm4f120xl) (not to be confused with
//! the older MSP430 Launchpad). TI cancelled the Stellaris/LM4F range not
//! long after it came out and replaced it with Tiva-C/TM4C range. The [Tiva-C
//! Launchpad TM4C123G-XL](http://www.ti.com/tool/ek-tm4c123gxl) is almost
//! exactly the same as a Stellaris Launchpad and should be software
//! compatible. The Ethernet-enabled [TM4C1294 Connected
//! Launchpad](http://www.ti.com/tool/ek-tm4c1294xl) is not supported.
//!
//! It's very much a work in progress, but so far the UART, SysTick, Timer
//! (inc PWM) and GPIO seem to work. I'm gradually trying to follow the
//! example set by japaric in his [F3 crate](https://github.com/japaric/f3)
//! for the STM32F3 Discovery Board.

#![crate_type="staticlib"]
#![feature(asm)]
#![feature(const_fn)]
#![feature(core_intrinsics)]
#![feature(lang_items)]
#![feature(naked_functions)]
#![feature(start)]
#![feature(never_type)]
#![no_std]
#![warn(dead_code)]
#![deny(missing_docs)]

// ****************************************************************************
//
// Crates
//
// ****************************************************************************

extern crate compiler_builtins_snapshot;
#[macro_use]
extern crate cortex_m;
extern crate alloc_cortex_m;
pub extern crate lm4f120;
extern crate r0;
extern crate rlibc;
extern crate volatile_register;

// ****************************************************************************
//
// Imports
//
// ****************************************************************************

pub mod board;
pub mod common;

pub use lm4f120 as cpu;

pub use cpu::systick::delay;

// ****************************************************************************
//
// Public Types
//
// ****************************************************************************

// None

// ****************************************************************************
//
// Private Types
//
// ****************************************************************************

// None

// ****************************************************************************
//
// Public Data
//
// ****************************************************************************

// None

// ****************************************************************************
//
// Public Functions
//
// ****************************************************************************

// None

// ****************************************************************************
//
// Private Functions
//
// ****************************************************************************

// None

// ****************************************************************************
//
// End Of File
//
// ****************************************************************************