-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use the critical-section crate and update examples accordingly
- Loading branch information
Showing
37 changed files
with
543 additions
and
708 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
This file was deleted.
Oops, something went wrong.
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,40 @@ | ||
/************************************************************************* | ||
* Processor-specific object file for PIC32MX170 and PIC32MX270 | ||
*************************************************************************/ | ||
|
||
/************************************************************************* | ||
* Symbols used for interrupt-vector table generation | ||
*************************************************************************/ | ||
PROVIDE(_vector_spacing = 0x0001); | ||
PROVIDE(_ebase_address = 0x9D000000); /* first 4 KiB of program flash */ | ||
|
||
|
||
MEMORY | ||
{ | ||
boot_flash (rx) : ORIGIN = 0xBFC00000, LENGTH = 0xc00 | ||
program_flash (rx) : ORIGIN = 0x9D000000, LENGTH = 256k | ||
sram (w!x) : ORIGIN = 0x80000000, LENGTH = 64k | ||
configsfrs : ORIGIN = 0xBFC00BF0, LENGTH = 0x10 | ||
} | ||
|
||
REGION_ALIAS("exception_mem", program_flash) | ||
REGION_ALIAS("program_mem", program_flash) | ||
REGION_ALIAS("data_mem", sram) | ||
|
||
/* aliases for direct start without bootloader | ||
* put the reset handler into the boot flash. | ||
*/ | ||
REGION_ALIAS(reset_mem, boot_flash) | ||
|
||
/* aliases for bootloader support | ||
* put the bootloader into the boot flash section and the reset handler at the | ||
* beginning of the normal program flash memory. | ||
*/ | ||
/* REGION_ALIAS(reset_mem, program_flash) | ||
REGION_ALIAS(bootloader_mem, boot_flash) */ | ||
|
||
/************************************************************************* | ||
* common part for all PIC32 devices | ||
*************************************************************************/ | ||
INPUT("device.x") /* interrupt vector symbols from Peripheral Access Crate */ | ||
INPUT("pic32_common.ld") |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
|
||
BIN=blinky | ||
|
||
cargo build --release || exit | ||
cargo objcopy --release $* -- -O ihex $BIN.hex |
Oops, something went wrong.