Skip to content

Commit d77441c

Browse files
committed
corrected logical error for STMS903: Do not use tim2 and tim4
1 parent 186e057 commit d77441c

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

STM8S_StdPeriph_Driver/src/stm8s_conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@
5656
#include "stm8s_rst.h"
5757
#include "stm8s_spi.h"
5858
#include "stm8s_tim1.h"
59-
#if !defined(STM8S903) || !defined(STM8AF622x)
59+
#if !defined(STM8S903) && !defined(STM8AF622x)
6060
#include "stm8s_tim2.h"
6161
#endif /* (STM8S903) || (STM8AF622x) */
6262
#if defined(STM8S208) || defined(STM8S207) || defined(STM8S007) ||defined(STM8S105) ||\
6363
defined(STM8S005) || defined (STM8AF52Ax) || defined (STM8AF62Ax) || defined (STM8AF626x)
6464
#include "stm8s_tim3.h"
6565
#endif /* (STM8S208) ||defined(STM8S207) || defined(STM8S007) ||defined(STM8S105) */
66-
#if !defined(STM8S903) || !defined(STM8AF622x)
66+
#if !defined(STM8S903) && !defined(STM8AF622x)
6767
#include "stm8s_tim4.h"
6868
#endif /* (STM8S903) || (STM8AF622x) */
6969
#if defined(STM8S903) || defined(STM8AF622x)

sduino/hardware/sduino/stm8/boards.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,22 @@ stm8sblue.build.variant=standard
1717
# meaningless variables just to keep the makefile happy
1818

1919
stm8sblue.upload.speed=1
20+
21+
22+
##############################################################
23+
24+
stm8sdisco.name=STM8S105C6 Discovery Board
25+
26+
stm8sdisco.upload.using=stm8flash
27+
stm8sdisco.upload.protocol=stlinkv2
28+
stm8sdisco.upload.mcu=stm8s105?6
29+
stm8sdisco.upload.maximum_size=32768
30+
31+
stm8sdisco.build.mcu=STM8S105
32+
stm8sdisco.build.f_cpu=16000000L
33+
stm8sdisco.build.core=sduino
34+
stm8sdisco.build.variant=stm8sdisco
35+
36+
# meaningless variables just to keep the makefile happy
37+
38+
stm8sdisco.upload.speed=1

0 commit comments

Comments
 (0)