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

Commit

Permalink
tm4c123gh6pm: can build an empty app
Browse files Browse the repository at this point in the history
  • Loading branch information
simias committed Oct 22, 2014
1 parent bbaa81d commit 7f7a1ce
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ when 'k20'
task :build_all => [:build_blink_k20, :build_blink_k20_isr]
when 'stm32f4'
task :build_all => [:build_blink_stm32f4]
else
when 'lpc17xx'
task :build_all => [:build_empty, :build_blink]
when 'tm4c123gh6pm'
task :build_all => [:build_blink_tm4c123gh6pm]
else
puts "I don't know what to build for this platform."
end
13 changes: 13 additions & 0 deletions apps/app_blink_tm4c123gh6pm.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#![feature(phase)]
#![crate_type="staticlib"]
#![no_std]

extern crate core;
extern crate zinc;

#[no_mangle]
#[no_split_stack]
#[allow(unused_variable)]
#[allow(dead_code)]
pub unsafe fn main() {
}
2 changes: 2 additions & 0 deletions platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ stm32f4:
arch: cortex_m4
k20:
arch: cortex_m4
tm4c123gh6pm:
arch: cortex_m4
1 change: 1 addition & 0 deletions src/zinc/hal/tm4c123gh6pm/iomem.ld
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
INCLUDE ./src/zinc/hal/cortex_m3/armmem.ld
17 changes: 17 additions & 0 deletions src/zinc/hal/tm4c123gh6pm/layout.ld
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
__STACK_BASE = 0x10002000;
_boot_checksum = 0; /* TODO(farcaller): extract this to lpc code only */
_data_load = LOADADDR(.data);

INCLUDE ./src/zinc/hal/tm4c123gh6pm/iomem.ld

ENTRY(main)

MEMORY
{
rom(RX) : ORIGIN = 0x00000000, LENGTH = 0x40000
ram(WAIL) : ORIGIN = 0x20000000, LENGTH = 0x8000 /* 32KB SRAM */
}

REGION_ALIAS("vectors", rom);

INCLUDE ./src/zinc/hal/layout_common.ld

0 comments on commit 7f7a1ce

Please sign in to comment.