forked from Stellaris-code/hollyhock-fork
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update app_template to use .bin format
- Loading branch information
Showing
5 changed files
with
53 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Compiled files | ||
*.o | ||
*.hhk | ||
*.bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,28 @@ | ||
ENTRY(_main); | ||
|
||
SECTIONS { | ||
. = 0x8CFF0000; | ||
start_address = 0x8CFF0000; | ||
.init start_address : AT(start_address) { | ||
*(.init) | ||
} | ||
info_address = 0x8CFF0010; | ||
. = info_address; | ||
.hollyhock_name : { | ||
*(.hollyhock_name) | ||
} | ||
.hollyhock_description : { | ||
*(.hollyhock_description) | ||
} | ||
.hollyhock_author : { | ||
*(.hollyhock_author) | ||
} | ||
.hollyhock_version : { | ||
*(.hollyhock_version) | ||
} | ||
.text : { | ||
*(.text) | ||
} | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
#include <appdef.hpp> | ||
#include <sdk/os/lcd.hpp> | ||
#include <sdk/os/debug.hpp> | ||
|
||
/* | ||
* Fill this section in with some information about your app. | ||
* All fields are optional - so if you don't need one, take it out. | ||
*/ | ||
APP_NAME("My app name") | ||
APP_NAME("My app name 2") | ||
APP_DESCRIPTION("A short description of my app") | ||
APP_AUTHOR("My name") | ||
APP_VERSION("1.0.0") | ||
|
||
extern "C" | ||
void main() { | ||
// Put your app's code here! | ||
Debug_SetCursorPosition(1,2); | ||
Debug_PrintString("HelloWorld",0); | ||
LCD_Refresh(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.section .init | ||
mov.l main_addr, r0 | ||
jmp @r0 | ||
nop | ||
.align 2 | ||
main_addr: | ||
.long _main | ||
load_addr: | ||
.long 0x8cff0000 |