-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mikaël BRIDAY
committed
May 27, 2024
1 parent
34b178c
commit 91d8327
Showing
38 changed files
with
209 additions
and
392,845 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 |
---|---|---|
|
@@ -3,4 +3,6 @@ build | |
*_exe | ||
*.bin | ||
*.map | ||
*.py | ||
build.py | ||
make.py | ||
CMakeLists.txt |
242 changes: 0 additions & 242 deletions
242
examples/cortex-m/armv7em/stm32h743/Nucleo-144/readbutton_isr/CMakeLists.txt
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 |
---|---|---|
|
@@ -3,4 +3,6 @@ build | |
*_exe | ||
*.bin | ||
*.map | ||
*.py | ||
build.py | ||
make.py | ||
CMakeLists.txt |
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
20 changes: 20 additions & 0 deletions
20
goil/templates/code/cortex-m/armv7em/custom_app_define_h.goilTemplate
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,20 @@ | ||
% | ||
template if exists tpl_library_defines | ||
% | ||
/*----------------------------------------------------------------------------- | ||
* Use FLOAT truc instructions | ||
*/% | ||
let use_float := false | ||
foreach isr in ISRS do | ||
if isr::USEFLOAT then | ||
let use_float := true | ||
end if | ||
end foreach | ||
|
||
foreach task in TASKS do | ||
if task::USEFLOAT then | ||
let use_float := true | ||
end if | ||
end foreach | ||
% | ||
#define WITH_FLOAT % !yesNo(use_float) % |
45 changes: 45 additions & 0 deletions
45
goil/templates/code/cortex-m/armv7em/stm32l432/process_specific.goilTemplate
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,45 @@ | ||
% | ||
if exists proc::STACKSIZE then | ||
|
||
let use_float := false | ||
foreach sisr in ISRS do | ||
if sisr::USEFLOAT then | ||
let use_float := true | ||
end if | ||
end foreach | ||
foreach tsk in TASKS do | ||
if tsk::USEFLOAT then | ||
let use_float := true | ||
end if | ||
end foreach | ||
|
||
%/* | ||
* % !proc::KIND % % !proc::NAME % stack | ||
*/ | ||
#define APP_% !proc::KIND %_% !proc::NAME %_START_SEC_STACK | ||
#include "tpl_memmap.h" | ||
VAR(tpl_stack_word, OS_APPL_DATA) % !proc::NAME %_stack_zone[% !proc::STACKSIZE %/sizeof(tpl_stack_word)]; | ||
#define APP_% !proc::KIND %_% !proc::NAME %_STOP_SEC_STACK | ||
#include "tpl_memmap.h" | ||
|
||
#define % !proc::NAME %_STACK {% !proc::NAME %_stack_zone, % !proc::STACKSIZE %} | ||
|
||
/* | ||
* % !proc::KIND % % !proc::NAME % context | ||
*/ | ||
#define OS_START_SEC_VAR_NOINIT_32BIT | ||
#include "tpl_memmap.h" | ||
VAR(arm_core_context, OS_VAR) % !proc::NAME %_int_context;% | ||
if use_float then | ||
if exists proc::USEFLOAT default(false) then % | ||
VAR(arm_float_context, OS_VAR) % !proc::NAME %_fp_context; | ||
#define % !proc::NAME %_CONTEXT { &% !proc::NAME %_int_context, &% !proc::NAME %_fp_context }% | ||
else % | ||
#define % !proc::NAME %_CONTEXT { &% !proc::NAME %_int_context, NULL }% | ||
end if | ||
else % | ||
#define % !proc::NAME %_CONTEXT &% !proc::NAME %_int_context% | ||
end if % | ||
#define OS_STOP_SEC_VAR_NOINIT_32BIT | ||
#include "tpl_memmap.h" | ||
%end if #proc::STACKSIZE |
2 changes: 1 addition & 1 deletion
2
goil/templates/linker/gnu_ld/cortex-m/armv7em/stm32l432/memory_map.goilTemplate
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
Oops, something went wrong.