Skip to content

Commit

Permalink
fixes #424 BG task wrongly uses ISR data stack
Browse files Browse the repository at this point in the history
  • Loading branch information
TG9541 committed Apr 8, 2021
1 parent ddeb201 commit 349a14c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
22 changes: 22 additions & 0 deletions docs/words.md
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,16 @@
; this should be sufficent to replace COMPILE and [COMPILE]
```

```
; COMPILE ( -- )
; Ersatz using POSTPONE
```

```
; [COMPILE] ( -- )
; Ersatz using POSTPONE
```

```
; , ( w -- )
; Compile an integer into
Expand All @@ -906,6 +916,12 @@
; Compile a byte into code dictionary.
```

```
; A, ( A -- )
; Compile a byte in A into code dictionary.
; GENALIAS ACOMMA "A,"
```

```
; CALL, ( ca -- )
; Compile a subroutine call.
Expand Down Expand Up @@ -968,6 +984,12 @@
; indefinite loop structure.
```

```
; COMPILIT ( -- )
; Compile call to inline literall target address into code dictionary.
; GENALIAS COMPILIT "COMPILIT"
```

```
; AGAIN ( a -- )
; Terminate a BEGIN-AGAIN
Expand Down
2 changes: 0 additions & 2 deletions inc/bgtask.inc
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
.ifne HAS_BACKGROUND
RamWord BGADDR ; address of background routine (0: off)
RamWord TICKCNT ; "TICKCNT" 16 bit ticker (counts up)

BSPPSIZE = BG_STACKSIZE ; Size of data stack for background tasks
.endif

;****** timer macro ******
Expand Down
5 changes: 2 additions & 3 deletions inc/defconf.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
;--------------------------------------------------------
RELVER1 = 2 ; Revision digit 1
RELVER0 = 8 ; Revision digit 0
PRE_REL = 1 ; Pre Release digit 0 (0: release)
PRE_REL = 0 ; Pre Release digit 0 (0: release)

TERM_LINUX = 1 ; LF terminates line

Expand Down Expand Up @@ -41,8 +41,7 @@
BG_USE_TIM3 = 0 ; Use TIM3 for the Background Task (instead of TIM2)
BG_TIM_REL = 0x26DE ; Reload value for Background Task timer (default for 5ms @ HSI 16MHz/8)
BG_RUNMASK = 0 ; BG task runs if "(BG_RUNMASK AND TICKCNT) equals 0"
BG_STACKSIZE = 32 ; Default size in bytes of data stack for background tasks
BSPPSIZE = 0 ; BG task data stack size (bytes) for memory calculation
BSPPSIZE = 32 ; Default size in bytes of data stack for background tasks

HAS_CPNVM = 0 ; Can compile to Flash, always interpret to RAM
HAS_DOES = 0 ; DOES> extension
Expand Down

0 comments on commit 349a14c

Please sign in to comment.