-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.inc
48 lines (38 loc) · 976 Bytes
/
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; configuration parameters
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
DEBUG=0 ; set to 1 to include debugging code
WANT_IWDG=0 ; set to 1 to add words IWDGEN and IWDGREF
HSI=1 ; set this to 1 if using internal high speed oscillator
.if HSI
HSE=0
.else
HSE=1
.endif
FMSTR=16 ; master clock frequency in Mhz
; boards list
; set selected board to 1
NUCLEO_8S208RB=0
; use this to ensure
; only one is selected
.if NUCLEO_8S208RB
NUCLEO_8S207K8=0
SB5_SHORT=0
.else
NUCLEO_8S207K8=1
.endif
; NUCLEO-8S208RB config.
.if NUCLEO_8S208RB
.include "inc/stm8s208.inc"
.include "inc/nucleo_8s208.inc"
.endif
; NUCLEO-8S207K8 config.
.if NUCLEO_8S207K8
SB5_SHORT=1 ; when SB5 short on board STM8 OSCIN is connected to 8Mhz TMCO signal
.include "inc/stm8s207.inc"
.include "inc/nucleo_8s207.inc"
.endif
; all boards includes
.include "inc/ascii.inc"
.include "inc/gen_macros.inc"
.include "tbi_macros.inc"