# HG changeset patch # User Mychaela Falconia # Date 1648324294 0 # Node ID 35e7f9d0379f5c065eb247c74062eb6400104bbf # Parent 800bf29abf3183d0dd925a6363c5949b6658a991 targets: add TARGET_HAS_BUZZER to c11x, c139 and dsample This new target config preprocessor symbol was introduced in Tourmaline in connection with the new approach to playing buzzer melodies via PWT, properly omitting the responsible code on targets where BU output controls the vibrator instead. That code is not present in Magnetite and we have no plans to backport it here, but target header files should be kept consistent between the two trees, especially given that we plan to support FC Venus target in Magnetite. diff -r 800bf29abf31 -r 35e7f9d0379f targets/c11x.h --- a/targets/c11x.h Fri Jul 30 03:55:52 2021 +0000 +++ b/targets/c11x.h Sat Mar 26 19:51:34 2022 +0000 @@ -4,3 +4,4 @@ #define USE_TSPACT2_FOR_TXLOW 0 #define GPIO1_SPEAKER_CTRL 0 #define UARTFAX_CLASSIC_DTR_DCD 0 +#define TARGET_HAS_BUZZER 1 diff -r 800bf29abf31 -r 35e7f9d0379f targets/c139.h --- a/targets/c139.h Fri Jul 30 03:55:52 2021 +0000 +++ b/targets/c139.h Sat Mar 26 19:51:34 2022 +0000 @@ -4,3 +4,4 @@ #define USE_TSPACT2_FOR_TXLOW 1 #define GPIO1_SPEAKER_CTRL 0 #define UARTFAX_CLASSIC_DTR_DCD 0 +#define TARGET_HAS_BUZZER 1 diff -r 800bf29abf31 -r 35e7f9d0379f targets/dsample.h --- a/targets/dsample.h Fri Jul 30 03:55:52 2021 +0000 +++ b/targets/dsample.h Sat Mar 26 19:51:34 2022 +0000 @@ -1,5 +1,6 @@ #define CONFIG_TARGET_DSAMPLE 1 #define GPIO1_SPEAKER_CTRL 1 #define UARTFAX_CLASSIC_DTR_DCD 1 +#define TARGET_HAS_BUZZER 1 #define TARGET_HAS_LPG 1 #define TARGET_HAS_PWL 1