-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'topic/arm-freertos' into 'master'
Add FreeRTOS light runtime See merge request eng/toolchain/bb-runtimes!106
- Loading branch information
Showing
4 changed files
with
93 additions
and
1 deletion.
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 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,50 @@ | ||
from support.bsp_sources.target import Target | ||
from support.bsp_sources.archsupport import ArchSupport | ||
|
||
|
||
class ArmFreeRTOS(Target): | ||
def __init__(self): | ||
super().__init__() | ||
self.add_gnat_sources("src/s-macres__native.adb") | ||
self.add_linker_switch("-Wl,-r", loader=None) | ||
self.add_linker_switch("-nostdlib", loader=None) | ||
|
||
@property | ||
def target(self): | ||
return "arm-eabi" | ||
|
||
def has_libc(self, profile): | ||
return True | ||
|
||
@property | ||
def system_ads(self): | ||
return { | ||
"light": "system-xi-arm.ads", | ||
} | ||
|
||
|
||
class ArmV7AFP_FreeRTOS(ArmFreeRTOS): | ||
@property | ||
def has_timer_64(self): | ||
return True | ||
|
||
@property | ||
def has_single_precision_fpu(self): | ||
return True | ||
|
||
@property | ||
def has_double_precision_fpu(self): | ||
return True | ||
|
||
@property | ||
def name(self): | ||
return "v7a-fp" | ||
|
||
@property | ||
def compiler_switches(self): | ||
return ( | ||
"-march=armv7-a+fp", | ||
"-mfloat-abi=hard", | ||
"-marm", | ||
"-mno-unaligned-access", | ||
) |
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