Skip to content

Commit

Permalink
[FPU] small updates in templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikaël BRIDAY committed Feb 28, 2024
1 parent 015fa10 commit ac9c5a2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ FUNC(int, OS_APPL_CODE) main(void)

TASK(blink)
{
GPIOB->ODR ^= GPIO_ODR_OD3; //toggle user led.
digitalToggle(GPIOB,3); //toggle user led.
TerminateTask();
}
#define APP_Task_blink_STOP_SEC_CODE
Expand Down
12 changes: 11 additions & 1 deletion goil/templates/code/cortex-m/tpl_primary_irq.goilTemplate
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,17 @@ end foreach
* | Return Address | <- PSP+24
* +------------------+
* | xPSR (bit 9 = 1) | <- PSP+28
* +------------------+
* +------------------+---------------------\
* | s0 (FPU) | <- PSP+32 - 0x20 |
* +------------------+ |
* | .. | <- PSP+.. - |
* +----------------- + |
* | s15 (FPU) | <- PSP+92 - 0x5C |- only if FPU is available
* +------------------+ | and process is using FPU
* | FPSCR (FPU) | <- PSP+96 - 0x60 | (USEFLOAT = TRUE in .oil)
* +------------------+ |
* | reserved (align) | <- PSP+100- 0x64 |
* +------------------+---------------------/
*
*/
%
Expand Down
1 change: 1 addition & 0 deletions goil/templates/config/cortex-m/config.oil
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ IMPLEMENTATION thumb2_ressource {
};

ISR [] {
BOOLEAN USEFLOAT = FALSE;
#include <interruptSources.oil>
};

Expand Down

0 comments on commit ac9c5a2

Please sign in to comment.