-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.inc
110 lines (87 loc) · 2.34 KB
/
config.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Copyright Jacques Deschênes 2019,2020,2021
;; This file is part of stm32_eforth
;;
;; stm8_eforth is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;;
;; stm32_eforth is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY;; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with stm32_eforth. If not, see <http:;;www.gnu.org/licenses/>.
;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; to enable _TP macro
; set to 1
DEBUG=0
; constants to select board
; to assemble for a specific
; board or MCU set it to 1 and the other
; to 0.
NUCLEO_8S207K8=1
NUCLEO_8S208RB=0
DISCOVERY=0
DOORBELL=0
.if NUCLEO_8S207K8
NUCLEO_8S208RB=0
.endif
.if NUCLEO_8S207K8|NUCLEO_8S208RB
DISCOVERY=0
.endif
.if NUCLEO_8S207K8|NUCLEO_8S208RB|DISCOVERY
DOORBELL=0
.endif
; select end of line character
EOL_CR=1
EOL_LF=0
; set to 1 to include
; scaling constants vocabulary
; file: const_ratio.asm
WANT_SCALING_CONST = 0
; set to 1 to include
; constants tables vocabulary
; file: ctable.asm
WANT_CONST_TABLE=0
; include double library
WANT_DOUBLE = 0
; to include 32 bits
; floating point library
; file: float.asm
WANT_FLOAT = 1
.if WANT_FLOAT
WANT_DOUBLE=1 ; required by float32
.endif
; to include 24 bits
; floating point library
; file: float24.asm
WANT_FLOAT24 = 0
.if WANT_FLOAT24
WANT_FLOAT= 0
WANT_DOUBLE=0 ; not compatible with float24
.endif
; set to 1 to make vocabulary
; case sensitive
CASE_SENSE = 0
; how many bytes are reserved
; by system at EEPROM base.
EEPROM_RES = 16
.if NUCLEO_8S208RB
NUCLEO_8S20X=1
.include "inc/stm8s208.inc"
.include "inc/nucleo_8s208.inc"
.endif
.if NUCLEO_8S207K8
NUCLEO_8S20X=1
.include "inc/stm8s207.inc"
.include "inc/nucleo_8s207.inc"
.endif
.if DISCOVERY|DOORBELL
NUCLEO_8S20X=0
.include "inc/stm8s105.inc"
.include "inc/stm8s_disco.inc"
.endif