Created
November 21, 2022 16:42
-
-
Save elpekenin/5241e870e265889ef92bda5d1e4b62a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling: platforms/chibios/drivers/audio_dac_basic.c platforms/chibios/drivers/audio_dac_basic.c:53:14: error: unknown type name 'dacsample_t' | |
53 | static const dacsample_t dac_buffer_1[AUDIO_DAC_BUFFER_SIZE] = { | |
| ^~~~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:60:14: error: unknown type name 'dacsample_t' | |
60 | static const dacsample_t dac_buffer_2[AUDIO_DAC_BUFFER_SIZE] = { | |
| ^~~~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:66:1: error: unknown type name 'GPTConfig'; did you mean 'SPIConfig'? | |
66 | GPTConfig gpt6cfg1 = {.frequency = AUDIO_DAC_SAMPLE_RATE, | |
| ^~~~~~~~~ | |
| SPIConfig | |
platforms/chibios/drivers/audio_dac_basic.c:66:23: error: field name not in record or union initializer | |
66 | GPTConfig gpt6cfg1 = {.frequency = AUDIO_DAC_SAMPLE_RATE, | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c:66:23: note: (near initialization for 'gpt6cfg1') | |
platforms/chibios/drivers/audio_dac_basic.c:67:23: error: field name not in record or union initializer | |
67 | .callback = NULL, | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c:67:23: note: (near initialization for 'gpt6cfg1') | |
platforms/chibios/drivers/audio_dac_basic.c:67:36: error: excess elements in scalar initializer [-Werror] | |
67 | .callback = NULL, | |
| ^~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:67:36: note: (near initialization for 'gpt6cfg1') | |
platforms/chibios/drivers/audio_dac_basic.c:68:23: error: field name not in record or union initializer | |
68 | .cr2 = TIM_CR2_MMS_1, /* MMS = 010 = TRGO on Update Event. */ | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c:68:23: note: (near initialization for 'gpt6cfg1') | |
platforms/chibios/drivers/audio_dac_basic.c:68:36: error: 'TIM_CR2_MMS_1' undeclared here (not in a function) | |
68 | .cr2 = TIM_CR2_MMS_1, /* MMS = 010 = TRGO on Update Event. */ | |
| ^~~~~~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:68:36: error: excess elements in scalar initializer [-Werror] | |
platforms/chibios/drivers/audio_dac_basic.c:68:36: note: (near initialization for 'gpt6cfg1') | |
platforms/chibios/drivers/audio_dac_basic.c:69:23: error: field name not in record or union initializer | |
69 | .dier = 0U}; | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c:69:23: note: (near initialization for 'gpt6cfg1') | |
platforms/chibios/drivers/audio_dac_basic.c:69:36: error: excess elements in scalar initializer [-Werror] | |
69 | .dier = 0U}; | |
| ^~ | |
platforms/chibios/drivers/audio_dac_basic.c:69:36: note: (near initialization for 'gpt6cfg1') | |
platforms/chibios/drivers/audio_dac_basic.c:70:1: error: unknown type name 'GPTConfig'; did you mean 'SPIConfig'? | |
70 | GPTConfig gpt7cfg1 = {.frequency = AUDIO_DAC_SAMPLE_RATE, | |
| ^~~~~~~~~ | |
| SPIConfig | |
platforms/chibios/drivers/audio_dac_basic.c:70:23: error: field name not in record or union initializer | |
70 | GPTConfig gpt7cfg1 = {.frequency = AUDIO_DAC_SAMPLE_RATE, | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c:70:23: note: (near initialization for 'gpt7cfg1') | |
platforms/chibios/drivers/audio_dac_basic.c:71:23: error: field name not in record or union initializer | |
71 | .callback = NULL, | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c:71:23: note: (near initialization for 'gpt7cfg1') | |
platforms/chibios/drivers/audio_dac_basic.c:71:36: error: excess elements in scalar initializer [-Werror] | |
71 | .callback = NULL, | |
| ^~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:71:36: note: (near initialization for 'gpt7cfg1') | |
platforms/chibios/drivers/audio_dac_basic.c:72:23: error: field name not in record or union initializer | |
72 | .cr2 = TIM_CR2_MMS_1, /* MMS = 010 = TRGO on Update Event. */ | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c:72:23: note: (near initialization for 'gpt7cfg1') | |
platforms/chibios/drivers/audio_dac_basic.c:72:36: error: excess elements in scalar initializer [-Werror] | |
72 | .cr2 = TIM_CR2_MMS_1, /* MMS = 010 = TRGO on Update Event. */ | |
| ^~~~~~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:72:36: note: (near initialization for 'gpt7cfg1') | |
platforms/chibios/drivers/audio_dac_basic.c:73:23: error: field name not in record or union initializer | |
73 | .dier = 0U}; | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c:73:23: note: (near initialization for 'gpt7cfg1') | |
platforms/chibios/drivers/audio_dac_basic.c:73:36: error: excess elements in scalar initializer [-Werror] | |
73 | .dier = 0U}; | |
| ^~ | |
platforms/chibios/drivers/audio_dac_basic.c:73:36: note: (near initialization for 'gpt7cfg1') | |
platforms/chibios/drivers/audio_dac_basic.c:75:32: error: unknown type name 'GPTDriver'; did you mean 'SPIDriver'? | |
75 | static void gpt_audio_state_cb(GPTDriver *gptp); | |
| ^~~~~~~~~ | |
| SPIDriver | |
platforms/chibios/drivers/audio_dac_basic.c:76:1: error: unknown type name 'GPTConfig'; did you mean 'SPIConfig'? | |
76 | GPTConfig gptStateUpdateCfg = {.frequency = 10, | |
| ^~~~~~~~~ | |
| SPIConfig | |
platforms/chibios/drivers/audio_dac_basic.c:76:34: error: field name not in record or union initializer | |
76 | GPTConfig gptStateUpdateCfg = {.frequency = 10, | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c:76:34: note: (near initialization for 'gptStateUpdateCfg') | |
platforms/chibios/drivers/audio_dac_basic.c:77:32: error: field name not in record or union initializer | |
77 | .callback = gpt_audio_state_cb, | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c:77:32: note: (near initialization for 'gptStateUpdateCfg') | |
platforms/chibios/drivers/audio_dac_basic.c:77:45: error: 'gpt_audio_state_cb' undeclared here (not in a function) | |
77 | .callback = gpt_audio_state_cb, | |
| ^~~~~~~~~~~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:77:45: error: excess elements in scalar initializer [-Werror] | |
platforms/chibios/drivers/audio_dac_basic.c:77:45: note: (near initialization for 'gptStateUpdateCfg') | |
platforms/chibios/drivers/audio_dac_basic.c:78:32: error: field name not in record or union initializer | |
78 | .cr2 = TIM_CR2_MMS_1, /* MMS = 010 = TRGO on Update Event. */ | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c:78:32: note: (near initialization for 'gptStateUpdateCfg') | |
platforms/chibios/drivers/audio_dac_basic.c:78:45: error: excess elements in scalar initializer [-Werror] | |
78 | .cr2 = TIM_CR2_MMS_1, /* MMS = 010 = TRGO on Update Event. */ | |
| ^~~~~~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:78:45: note: (near initialization for 'gptStateUpdateCfg') | |
platforms/chibios/drivers/audio_dac_basic.c:79:32: error: field name not in record or union initializer | |
79 | .dier = 0U}; | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c:79:32: note: (near initialization for 'gptStateUpdateCfg') | |
platforms/chibios/drivers/audio_dac_basic.c:79:45: error: excess elements in scalar initializer [-Werror] | |
79 | .dier = 0U}; | |
| ^~ | |
platforms/chibios/drivers/audio_dac_basic.c:79:45: note: (near initialization for 'gptStateUpdateCfg') | |
platforms/chibios/drivers/audio_dac_basic.c:81:14: error: unknown type name 'DACConfig' | |
81 | static const DACConfig dac_conf_ch1 = {.init = AUDIO_DAC_OFF_VALUE, .datamode = DAC_DHRM_12BIT_RIGHT}; | |
| ^~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:81:40: error: field name not in record or union initializer | |
81 | static const DACConfig dac_conf_ch1 = {.init = AUDIO_DAC_OFF_VALUE, .datamode = DAC_DHRM_12BIT_RIGHT}; | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c:81:40: note: (near initialization for 'dac_conf_ch1') | |
platforms/chibios/drivers/audio_dac_basic.c:81:69: error: field name not in record or union initializer | |
81 | static const DACConfig dac_conf_ch1 = {.init = AUDIO_DAC_OFF_VALUE, .datamode = DAC_DHRM_12BIT_RIGHT}; | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c:81:69: note: (near initialization for 'dac_conf_ch1') | |
platforms/chibios/drivers/audio_dac_basic.c:81:81: error: 'DAC_DHRM_12BIT_RIGHT' undeclared here (not in a function) | |
81 | static const DACConfig dac_conf_ch1 = {.init = AUDIO_DAC_OFF_VALUE, .datamode = DAC_DHRM_12BIT_RIGHT}; | |
| ^~~~~~~~~~~~~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:81:81: error: excess elements in scalar initializer [-Werror] | |
platforms/chibios/drivers/audio_dac_basic.c:81:81: note: (near initialization for 'dac_conf_ch1') | |
platforms/chibios/drivers/audio_dac_basic.c:82:14: error: unknown type name 'DACConfig' | |
82 | static const DACConfig dac_conf_ch2 = {.init = AUDIO_DAC_OFF_VALUE, .datamode = DAC_DHRM_12BIT_RIGHT}; | |
| ^~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:82:40: error: field name not in record or union initializer | |
82 | static const DACConfig dac_conf_ch2 = {.init = AUDIO_DAC_OFF_VALUE, .datamode = DAC_DHRM_12BIT_RIGHT}; | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c:82:40: note: (near initialization for 'dac_conf_ch2') | |
platforms/chibios/drivers/audio_dac_basic.c:82:69: error: field name not in record or union initializer | |
82 | static const DACConfig dac_conf_ch2 = {.init = AUDIO_DAC_OFF_VALUE, .datamode = DAC_DHRM_12BIT_RIGHT}; | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c:82:69: note: (near initialization for 'dac_conf_ch2') | |
platforms/chibios/drivers/audio_dac_basic.c:82:81: error: excess elements in scalar initializer [-Werror] | |
82 | static const DACConfig dac_conf_ch2 = {.init = AUDIO_DAC_OFF_VALUE, .datamode = DAC_DHRM_12BIT_RIGHT}; | |
| ^~~~~~~~~~~~~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:82:81: note: (near initialization for 'dac_conf_ch2') | |
platforms/chibios/drivers/audio_dac_basic.c:98:14: error: unknown type name 'DACConversionGroup' | |
98 | static const DACConversionGroup dac_conv_grp_ch1 = {.num_channels = 1U, .trigger = DAC_TRG(0b000)}; | |
| ^~~~~~~~~~~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:98:53: error: field name not in record or union initializer | |
98 | static const DACConversionGroup dac_conv_grp_ch1 = {.num_channels = 1U, .trigger = DAC_TRG(0b000)}; | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c:98:53: note: (near initialization for 'dac_conv_grp_ch1') | |
platforms/chibios/drivers/audio_dac_basic.c:98:73: error: field name not in record or union initializer | |
98 | static const DACConversionGroup dac_conv_grp_ch1 = {.num_channels = 1U, .trigger = DAC_TRG(0b000)}; | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c:98:73: note: (near initialization for 'dac_conv_grp_ch1') | |
platforms/chibios/drivers/audio_dac_basic.c:98:84: error: implicit declaration of function 'DAC_TRG' [-Werror=implicit-function-declaration] | |
98 | static const DACConversionGroup dac_conv_grp_ch1 = {.num_channels = 1U, .trigger = DAC_TRG(0b000)}; | |
| ^~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:98:84: error: excess elements in scalar initializer [-Werror] | |
platforms/chibios/drivers/audio_dac_basic.c:98:84: note: (near initialization for 'dac_conv_grp_ch1') | |
platforms/chibios/drivers/audio_dac_basic.c:99:14: error: unknown type name 'DACConversionGroup' | |
99 | static const DACConversionGroup dac_conv_grp_ch2 = {.num_channels = 1U, .trigger = DAC_TRG(0b010)}; | |
| ^~~~~~~~~~~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:99:53: error: field name not in record or union initializer | |
99 | static const DACConversionGroup dac_conv_grp_ch2 = {.num_channels = 1U, .trigger = DAC_TRG(0b010)}; | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c:99:53: note: (near initialization for 'dac_conv_grp_ch2') | |
platforms/chibios/drivers/audio_dac_basic.c:99:73: error: field name not in record or union initializer | |
99 | static const DACConversionGroup dac_conv_grp_ch2 = {.num_channels = 1U, .trigger = DAC_TRG(0b010)}; | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c:99:73: note: (near initialization for 'dac_conv_grp_ch2') | |
platforms/chibios/drivers/audio_dac_basic.c:99:84: error: excess elements in scalar initializer [-Werror] | |
99 | static const DACConversionGroup dac_conv_grp_ch2 = {.num_channels = 1U, .trigger = DAC_TRG(0b010)}; | |
| ^~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:99:84: note: (near initialization for 'dac_conv_grp_ch2') | |
platforms/chibios/drivers/audio_dac_basic.c: In function 'channel_1_start': | |
platforms/chibios/drivers/audio_dac_basic.c:102:5: error: implicit declaration of function 'gptStart'; did you mean 'spiStart'? [-Werror=implicit-function-declaration] | |
102 | gptStart(&GPTD6, &gpt6cfg1); | |
| ^~~~~~~~ | |
| spiStart | |
platforms/chibios/drivers/audio_dac_basic.c:102:15: error: 'GPTD6' undeclared (first use in this function); did you mean 'GP6'? | |
102 | gptStart(&GPTD6, &gpt6cfg1); | |
| ^~~~~ | |
| GP6 | |
platforms/chibios/drivers/audio_dac_basic.c:102:15: note: each undeclared identifier is reported only once for each function it appears in | |
platforms/chibios/drivers/audio_dac_basic.c:103:5: error: implicit declaration of function 'gptStartContinuous' [-Werror=implicit-function-declaration] | |
103 | gptStartContinuous(&GPTD6, 2U); | |
| ^~~~~~~~~~~~~~~~~~ | |
In file included from ./lib/chibios/os/hal/include/hal_pal.h:174, | |
from ./lib/chibios/os/hal/include/hal.h:299, | |
from platforms/chibios/_wait.h:19, | |
from platforms/wait.h:25, | |
from quantum/audio/voices.h:21, | |
from quantum/audio/audio.h:23, | |
from platforms/chibios/drivers/audio_dac_basic.c:18: | |
platforms/chibios/drivers/audio_dac_basic.c:104:19: error: 'GPIOA' undeclared (first use in this function) | |
104 | palSetPadMode(GPIOA, 4, PAL_MODE_INPUT_ANALOG); | |
| ^~~~~ | |
./lib/chibios/os/hal/ports/RP/LLD/GPIOv1/hal_pal_lld.h:381:26: note: in definition of macro 'pal_lld_setpadmode' | |
381 | __pal_lld_pad_set_mode(port, pad, mode) | |
| ^~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:104:5: note: in expansion of macro 'palSetPadMode' | |
104 | palSetPadMode(GPIOA, 4, PAL_MODE_INPUT_ANALOG); | |
| ^~~~~~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c: In function 'channel_1_stop': | |
platforms/chibios/drivers/audio_dac_basic.c:108:5: error: implicit declaration of function 'gptStopTimer' [-Werror=implicit-function-declaration] | |
108 | gptStopTimer(&GPTD6); | |
| ^~~~~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:108:19: error: 'GPTD6' undeclared (first use in this function); did you mean 'GP6'? | |
108 | gptStopTimer(&GPTD6); | |
| ^~~~~ | |
| GP6 | |
In file included from ./lib/chibios/os/hal/include/hal_pal.h:174, | |
from ./lib/chibios/os/hal/include/hal.h:299, | |
from platforms/chibios/_wait.h:19, | |
from platforms/wait.h:25, | |
from quantum/audio/voices.h:21, | |
from quantum/audio/audio.h:23, | |
from platforms/chibios/drivers/audio_dac_basic.c:18: | |
platforms/chibios/drivers/audio_dac_basic.c:109:19: error: 'GPIOA' undeclared (first use in this function) | |
109 | palSetPadMode(GPIOA, 4, PAL_MODE_OUTPUT_PUSHPULL); | |
| ^~~~~ | |
./lib/chibios/os/hal/ports/RP/LLD/GPIOv1/hal_pal_lld.h:381:26: note: in definition of macro 'pal_lld_setpadmode' | |
381 | __pal_lld_pad_set_mode(port, pad, mode) | |
| ^~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:109:5: note: in expansion of macro 'palSetPadMode' | |
109 | palSetPadMode(GPIOA, 4, PAL_MODE_OUTPUT_PUSHPULL); | |
| ^~~~~~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c: In function 'channel_1_set_frequency': | |
platforms/chibios/drivers/audio_dac_basic.c:121:13: error: request for member 'frequency' in something not a structure or union | |
121 | gpt6cfg1.frequency = 2 * freq * AUDIO_DAC_BUFFER_SIZE; | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c: In function 'channel_2_start': | |
platforms/chibios/drivers/audio_dac_basic.c:129:15: error: 'GPTD7' undeclared (first use in this function); did you mean 'GP7'? | |
129 | gptStart(&GPTD7, &gpt7cfg1); | |
| ^~~~~ | |
| GP7 | |
In file included from ./lib/chibios/os/hal/include/hal_pal.h:174, | |
from ./lib/chibios/os/hal/include/hal.h:299, | |
from platforms/chibios/_wait.h:19, | |
from platforms/wait.h:25, | |
from quantum/audio/voices.h:21, | |
from quantum/audio/audio.h:23, | |
from platforms/chibios/drivers/audio_dac_basic.c:18: | |
platforms/chibios/drivers/audio_dac_basic.c:131:19: error: 'GPIOA' undeclared (first use in this function) | |
131 | palSetPadMode(GPIOA, 5, PAL_MODE_INPUT_ANALOG); | |
| ^~~~~ | |
./lib/chibios/os/hal/ports/RP/LLD/GPIOv1/hal_pal_lld.h:381:26: note: in definition of macro 'pal_lld_setpadmode' | |
381 | __pal_lld_pad_set_mode(port, pad, mode) | |
| ^~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:131:5: note: in expansion of macro 'palSetPadMode' | |
131 | palSetPadMode(GPIOA, 5, PAL_MODE_INPUT_ANALOG); | |
| ^~~~~~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c: In function 'channel_2_stop': | |
platforms/chibios/drivers/audio_dac_basic.c:135:19: error: 'GPTD7' undeclared (first use in this function); did you mean 'GP7'? | |
135 | gptStopTimer(&GPTD7); | |
| ^~~~~ | |
| GP7 | |
In file included from ./lib/chibios/os/hal/include/hal_pal.h:174, | |
from ./lib/chibios/os/hal/include/hal.h:299, | |
from platforms/chibios/_wait.h:19, | |
from platforms/wait.h:25, | |
from quantum/audio/voices.h:21, | |
from quantum/audio/audio.h:23, | |
from platforms/chibios/drivers/audio_dac_basic.c:18: | |
platforms/chibios/drivers/audio_dac_basic.c:136:19: error: 'GPIOA' undeclared (first use in this function) | |
136 | palSetPadMode(GPIOA, 5, PAL_MODE_OUTPUT_PUSHPULL); | |
| ^~~~~ | |
./lib/chibios/os/hal/ports/RP/LLD/GPIOv1/hal_pal_lld.h:381:26: note: in definition of macro 'pal_lld_setpadmode' | |
381 | __pal_lld_pad_set_mode(port, pad, mode) | |
| ^~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:136:5: note: in expansion of macro 'palSetPadMode' | |
136 | palSetPadMode(GPIOA, 5, PAL_MODE_OUTPUT_PUSHPULL); | |
| ^~~~~~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c: In function 'channel_2_set_frequency': | |
platforms/chibios/drivers/audio_dac_basic.c:148:13: error: request for member 'frequency' in something not a structure or union | |
148 | gpt7cfg1.frequency = 2 * freq * AUDIO_DAC_BUFFER_SIZE; | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c: At top level: | |
platforms/chibios/drivers/audio_dac_basic.c:155:32: error: unknown type name 'GPTDriver'; did you mean 'SPIDriver'? | |
155 | static void gpt_audio_state_cb(GPTDriver *gptp) { | |
| ^~~~~~~~~ | |
| SPIDriver | |
In file included from ./lib/chibios/os/hal/include/hal_pal.h:174, | |
from ./lib/chibios/os/hal/include/hal.h:299, | |
from platforms/chibios/_wait.h:19, | |
from platforms/wait.h:25, | |
from quantum/audio/voices.h:21, | |
from quantum/audio/audio.h:23, | |
from platforms/chibios/drivers/audio_dac_basic.c:18: | |
platforms/chibios/drivers/audio_dac_basic.c: In function 'audio_driver_initialize': | |
platforms/chibios/_pin_defs.h:33:21: error: 'GPIOA' undeclared (first use in this function) | |
33 | #define A4 PAL_LINE(GPIOA, 4) | |
| ^~~~~ | |
./lib/chibios/os/hal/ports/RP/LLD/GPIOv1/hal_pal_lld.h:203:50: note: in definition of macro 'PAL_LINE' | |
203 | #define PAL_LINE(port, pad) ((pad), (port)) | |
| ^~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:191:23: note: in expansion of macro 'A4' | |
191 | if ((AUDIO_PIN == A4) || (AUDIO_PIN_ALT == A4)) { | |
| ^~ | |
./lib/chibios/os/hal/ports/RP/LLD/GPIOv1/hal_pal_lld.h:203:47: error: left-hand operand of comma expression has no effect [-Werror=unused-value] | |
203 | #define PAL_LINE(port, pad) ((pad), (port)) | |
| ^ | |
platforms/chibios/_pin_defs.h:33:12: note: in expansion of macro 'PAL_LINE' | |
33 | #define A4 PAL_LINE(GPIOA, 4) | |
| ^~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:191:23: note: in expansion of macro 'A4' | |
191 | if ((AUDIO_PIN == A4) || (AUDIO_PIN_ALT == A4)) { | |
| ^~ | |
./lib/chibios/os/hal/ports/RP/LLD/GPIOv1/hal_pal_lld.h:203:47: error: left-hand operand of comma expression has no effect [-Werror=unused-value] | |
203 | #define PAL_LINE(port, pad) ((pad), (port)) | |
| ^ | |
platforms/chibios/_pin_defs.h:33:12: note: in expansion of macro 'PAL_LINE' | |
33 | #define A4 PAL_LINE(GPIOA, 4) | |
| ^~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:191:48: note: in expansion of macro 'A4' | |
191 | if ((AUDIO_PIN == A4) || (AUDIO_PIN_ALT == A4)) { | |
| ^~ | |
platforms/chibios/drivers/audio_dac_basic.c:193:9: error: implicit declaration of function 'dacStart' [-Werror=implicit-function-declaration] | |
193 | dacStart(&DACD1, &dac_conf_ch1); | |
| ^~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:193:19: error: 'DACD1' undeclared (first use in this function) | |
193 | dacStart(&DACD1, &dac_conf_ch1); | |
| ^~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:197:19: error: 'GPTD6' undeclared (first use in this function); did you mean 'GP6'? | |
197 | gptStart(&GPTD6, &gpt6cfg1); | |
| ^~~~~ | |
| GP6 | |
In file included from ./lib/chibios/os/hal/include/hal_pal.h:174, | |
from ./lib/chibios/os/hal/include/hal.h:299, | |
from platforms/chibios/_wait.h:19, | |
from platforms/wait.h:25, | |
from quantum/audio/voices.h:21, | |
from quantum/audio/audio.h:23, | |
from platforms/chibios/drivers/audio_dac_basic.c:18: | |
./lib/chibios/os/hal/ports/RP/LLD/GPIOv1/hal_pal_lld.h:203:47: error: left-hand operand of comma expression has no effect [-Werror=unused-value] | |
203 | #define PAL_LINE(port, pad) ((pad), (port)) | |
| ^ | |
platforms/chibios/_pin_defs.h:34:12: note: in expansion of macro 'PAL_LINE' | |
34 | #define A5 PAL_LINE(GPIOA, 5) | |
| ^~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:200:23: note: in expansion of macro 'A5' | |
200 | if ((AUDIO_PIN == A5) || (AUDIO_PIN_ALT == A5)) { | |
| ^~ | |
./lib/chibios/os/hal/ports/RP/LLD/GPIOv1/hal_pal_lld.h:203:47: error: left-hand operand of comma expression has no effect [-Werror=unused-value] | |
203 | #define PAL_LINE(port, pad) ((pad), (port)) | |
| ^ | |
platforms/chibios/_pin_defs.h:34:12: note: in expansion of macro 'PAL_LINE' | |
34 | #define A5 PAL_LINE(GPIOA, 5) | |
| ^~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:200:48: note: in expansion of macro 'A5' | |
200 | if ((AUDIO_PIN == A5) || (AUDIO_PIN_ALT == A5)) { | |
| ^~ | |
platforms/chibios/drivers/audio_dac_basic.c:202:19: error: 'DACD2' undeclared (first use in this function) | |
202 | dacStart(&DACD2, &dac_conf_ch2); | |
| ^~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:204:19: error: 'GPTD7' undeclared (first use in this function); did you mean 'GP7'? | |
204 | gptStart(&GPTD7, &gpt7cfg1); | |
| ^~~~~ | |
| GP7 | |
platforms/chibios/drivers/audio_dac_basic.c:216:31: error: 'DAC_CR_BOFF1' undeclared (first use in this function) | |
216 | DACD1.params->dac->CR &= ~DAC_CR_BOFF1; | |
| ^~~~~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:217:31: error: 'DAC_CR_BOFF2' undeclared (first use in this function) | |
217 | DACD2.params->dac->CR &= ~DAC_CR_BOFF2; | |
| ^~~~~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:49:31: error: 'GPTD8' undeclared (first use in this function); did you mean 'GP8'? | |
49 | # define AUDIO_STATE_TIMER GPTD8 | |
| ^~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:220:15: note: in expansion of macro 'AUDIO_STATE_TIMER' | |
220 | gptStart(&AUDIO_STATE_TIMER, &gptStateUpdateCfg); | |
| ^~~~~~~~~~~~~~~~~ | |
In file included from ./lib/chibios/os/hal/include/hal_pal.h:174, | |
from ./lib/chibios/os/hal/include/hal.h:299, | |
from platforms/chibios/_wait.h:19, | |
from platforms/wait.h:25, | |
from quantum/audio/voices.h:21, | |
from quantum/audio/audio.h:23, | |
from platforms/chibios/drivers/audio_dac_basic.c:18: | |
platforms/chibios/drivers/audio_dac_basic.c: In function 'audio_driver_stop': | |
platforms/chibios/_pin_defs.h:33:21: error: 'GPIOA' undeclared (first use in this function) | |
33 | #define A4 PAL_LINE(GPIOA, 4) | |
| ^~~~~ | |
./lib/chibios/os/hal/ports/RP/LLD/GPIOv1/hal_pal_lld.h:203:50: note: in definition of macro 'PAL_LINE' | |
203 | #define PAL_LINE(port, pad) ((pad), (port)) | |
| ^~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:224:23: note: in expansion of macro 'A4' | |
224 | if ((AUDIO_PIN == A4) || (AUDIO_PIN_ALT == A4)) { | |
| ^~ | |
./lib/chibios/os/hal/ports/RP/LLD/GPIOv1/hal_pal_lld.h:203:47: error: left-hand operand of comma expression has no effect [-Werror=unused-value] | |
203 | #define PAL_LINE(port, pad) ((pad), (port)) | |
| ^ | |
platforms/chibios/_pin_defs.h:33:12: note: in expansion of macro 'PAL_LINE' | |
33 | #define A4 PAL_LINE(GPIOA, 4) | |
| ^~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:224:23: note: in expansion of macro 'A4' | |
224 | if ((AUDIO_PIN == A4) || (AUDIO_PIN_ALT == A4)) { | |
| ^~ | |
./lib/chibios/os/hal/ports/RP/LLD/GPIOv1/hal_pal_lld.h:203:47: error: left-hand operand of comma expression has no effect [-Werror=unused-value] | |
203 | #define PAL_LINE(port, pad) ((pad), (port)) | |
| ^ | |
platforms/chibios/_pin_defs.h:33:12: note: in expansion of macro 'PAL_LINE' | |
33 | #define A4 PAL_LINE(GPIOA, 4) | |
| ^~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:224:48: note: in expansion of macro 'A4' | |
224 | if ((AUDIO_PIN == A4) || (AUDIO_PIN_ALT == A4)) { | |
| ^~ | |
platforms/chibios/drivers/audio_dac_basic.c:225:23: error: 'GPTD6' undeclared (first use in this function); did you mean 'GP6'? | |
225 | gptStopTimer(&GPTD6); | |
| ^~~~~ | |
| GP6 | |
platforms/chibios/drivers/audio_dac_basic.c:228:9: error: implicit declaration of function 'dacStopConversion' [-Werror=implicit-function-declaration] | |
228 | dacStopConversion(&DACD1); | |
| ^~~~~~~~~~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:228:28: error: 'DACD1' undeclared (first use in this function) | |
228 | dacStopConversion(&DACD1); | |
| ^~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:229:9: error: implicit declaration of function 'dacPutChannelX' [-Werror=implicit-function-declaration] | |
229 | dacPutChannelX(&DACD1, 0, AUDIO_DAC_OFF_VALUE); | |
| ^~~~~~~~~~~~~~ | |
In file included from ./lib/chibios/os/hal/include/hal_pal.h:174, | |
from ./lib/chibios/os/hal/include/hal.h:299, | |
from platforms/chibios/_wait.h:19, | |
from platforms/wait.h:25, | |
from quantum/audio/voices.h:21, | |
from quantum/audio/audio.h:23, | |
from platforms/chibios/drivers/audio_dac_basic.c:18: | |
./lib/chibios/os/hal/ports/RP/LLD/GPIOv1/hal_pal_lld.h:203:47: error: left-hand operand of comma expression has no effect [-Werror=unused-value] | |
203 | #define PAL_LINE(port, pad) ((pad), (port)) | |
| ^ | |
platforms/chibios/_pin_defs.h:34:12: note: in expansion of macro 'PAL_LINE' | |
34 | #define A5 PAL_LINE(GPIOA, 5) | |
| ^~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:232:23: note: in expansion of macro 'A5' | |
232 | if ((AUDIO_PIN == A5) || (AUDIO_PIN_ALT == A5)) { | |
| ^~ | |
./lib/chibios/os/hal/ports/RP/LLD/GPIOv1/hal_pal_lld.h:203:47: error: left-hand operand of comma expression has no effect [-Werror=unused-value] | |
203 | #define PAL_LINE(port, pad) ((pad), (port)) | |
| ^ | |
platforms/chibios/_pin_defs.h:34:12: note: in expansion of macro 'PAL_LINE' | |
34 | #define A5 PAL_LINE(GPIOA, 5) | |
| ^~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:232:48: note: in expansion of macro 'A5' | |
232 | if ((AUDIO_PIN == A5) || (AUDIO_PIN_ALT == A5)) { | |
| ^~ | |
platforms/chibios/drivers/audio_dac_basic.c:233:23: error: 'GPTD7' undeclared (first use in this function); did you mean 'GP7'? | |
233 | gptStopTimer(&GPTD7); | |
| ^~~~~ | |
| GP7 | |
platforms/chibios/drivers/audio_dac_basic.c:235:28: error: 'DACD2' undeclared (first use in this function) | |
235 | dacStopConversion(&DACD2); | |
| ^~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:49:31: error: 'GPTD8' undeclared (first use in this function); did you mean 'GP8'? | |
49 | # define AUDIO_STATE_TIMER GPTD8 | |
| ^~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:238:19: note: in expansion of macro 'AUDIO_STATE_TIMER' | |
238 | gptStopTimer(&AUDIO_STATE_TIMER); | |
| ^~~~~~~~~~~~~~~~~ | |
In file included from ./lib/chibios/os/hal/include/hal_pal.h:174, | |
from ./lib/chibios/os/hal/include/hal.h:299, | |
from platforms/chibios/_wait.h:19, | |
from platforms/wait.h:25, | |
from quantum/audio/voices.h:21, | |
from quantum/audio/audio.h:23, | |
from platforms/chibios/drivers/audio_dac_basic.c:18: | |
platforms/chibios/drivers/audio_dac_basic.c: In function 'audio_driver_start': | |
platforms/chibios/_pin_defs.h:33:21: error: 'GPIOA' undeclared (first use in this function) | |
33 | #define A4 PAL_LINE(GPIOA, 4) | |
| ^~~~~ | |
./lib/chibios/os/hal/ports/RP/LLD/GPIOv1/hal_pal_lld.h:203:50: note: in definition of macro 'PAL_LINE' | |
203 | #define PAL_LINE(port, pad) ((pad), (port)) | |
| ^~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:242:23: note: in expansion of macro 'A4' | |
242 | if ((AUDIO_PIN == A4) || (AUDIO_PIN_ALT == A4)) { | |
| ^~ | |
./lib/chibios/os/hal/ports/RP/LLD/GPIOv1/hal_pal_lld.h:203:47: error: left-hand operand of comma expression has no effect [-Werror=unused-value] | |
203 | #define PAL_LINE(port, pad) ((pad), (port)) | |
| ^ | |
platforms/chibios/_pin_defs.h:33:12: note: in expansion of macro 'PAL_LINE' | |
33 | #define A4 PAL_LINE(GPIOA, 4) | |
| ^~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:242:23: note: in expansion of macro 'A4' | |
242 | if ((AUDIO_PIN == A4) || (AUDIO_PIN_ALT == A4)) { | |
| ^~ | |
./lib/chibios/os/hal/ports/RP/LLD/GPIOv1/hal_pal_lld.h:203:47: error: left-hand operand of comma expression has no effect [-Werror=unused-value] | |
203 | #define PAL_LINE(port, pad) ((pad), (port)) | |
| ^ | |
platforms/chibios/_pin_defs.h:33:12: note: in expansion of macro 'PAL_LINE' | |
33 | #define A4 PAL_LINE(GPIOA, 4) | |
| ^~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:242:48: note: in expansion of macro 'A4' | |
242 | if ((AUDIO_PIN == A4) || (AUDIO_PIN_ALT == A4)) { | |
| ^~ | |
platforms/chibios/drivers/audio_dac_basic.c:243:9: error: implicit declaration of function 'dacStartConversion' [-Werror=implicit-function-declaration] | |
243 | dacStartConversion(&DACD1, &dac_conv_grp_ch1, (dacsample_t *)dac_buffer_1, AUDIO_DAC_BUFFER_SIZE); | |
| ^~~~~~~~~~~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:243:29: error: 'DACD1' undeclared (first use in this function) | |
243 | dacStartConversion(&DACD1, &dac_conv_grp_ch1, (dacsample_t *)dac_buffer_1, AUDIO_DAC_BUFFER_SIZE); | |
| ^~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:243:56: error: 'dacsample_t' undeclared (first use in this function) | |
243 | dacStartConversion(&DACD1, &dac_conv_grp_ch1, (dacsample_t *)dac_buffer_1, AUDIO_DAC_BUFFER_SIZE); | |
| ^~~~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:243:69: error: expected expression before ')' token | |
243 | dacStartConversion(&DACD1, &dac_conv_grp_ch1, (dacsample_t *)dac_buffer_1, AUDIO_DAC_BUFFER_SIZE); | |
| ^ | |
In file included from ./lib/chibios/os/hal/include/hal_pal.h:174, | |
from ./lib/chibios/os/hal/include/hal.h:299, | |
from platforms/chibios/_wait.h:19, | |
from platforms/wait.h:25, | |
from quantum/audio/voices.h:21, | |
from quantum/audio/audio.h:23, | |
from platforms/chibios/drivers/audio_dac_basic.c:18: | |
./lib/chibios/os/hal/ports/RP/LLD/GPIOv1/hal_pal_lld.h:203:47: error: left-hand operand of comma expression has no effect [-Werror=unused-value] | |
203 | #define PAL_LINE(port, pad) ((pad), (port)) | |
| ^ | |
platforms/chibios/_pin_defs.h:34:12: note: in expansion of macro 'PAL_LINE' | |
34 | #define A5 PAL_LINE(GPIOA, 5) | |
| ^~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:245:23: note: in expansion of macro 'A5' | |
245 | if ((AUDIO_PIN == A5) || (AUDIO_PIN_ALT == A5)) { | |
| ^~ | |
./lib/chibios/os/hal/ports/RP/LLD/GPIOv1/hal_pal_lld.h:203:47: error: left-hand operand of comma expression has no effect [-Werror=unused-value] | |
203 | #define PAL_LINE(port, pad) ((pad), (port)) | |
| ^ | |
platforms/chibios/_pin_defs.h:34:12: note: in expansion of macro 'PAL_LINE' | |
34 | #define A5 PAL_LINE(GPIOA, 5) | |
| ^~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:245:48: note: in expansion of macro 'A5' | |
245 | if ((AUDIO_PIN == A5) || (AUDIO_PIN_ALT == A5)) { | |
| ^~ | |
platforms/chibios/drivers/audio_dac_basic.c:246:29: error: 'DACD2' undeclared (first use in this function) | |
246 | dacStartConversion(&DACD2, &dac_conv_grp_ch2, (dacsample_t *)dac_buffer_2, AUDIO_DAC_BUFFER_SIZE); | |
| ^~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:246:69: error: expected expression before ')' token | |
246 | dacStartConversion(&DACD2, &dac_conv_grp_ch2, (dacsample_t *)dac_buffer_2, AUDIO_DAC_BUFFER_SIZE); | |
| ^ | |
platforms/chibios/drivers/audio_dac_basic.c:49:31: error: 'GPTD8' undeclared (first use in this function); did you mean 'GP8'? | |
49 | # define AUDIO_STATE_TIMER GPTD8 | |
| ^~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:248:25: note: in expansion of macro 'AUDIO_STATE_TIMER' | |
248 | gptStartContinuous(&AUDIO_STATE_TIMER, 2U); | |
| ^~~~~~~~~~~~~~~~~ | |
At top level: | |
platforms/chibios/drivers/audio_dac_basic.c:60:26: error: 'dac_buffer_2' defined but not used [-Werror=unused-const-variable=] | |
60 | static const dacsample_t dac_buffer_2[AUDIO_DAC_BUFFER_SIZE] = { | |
| ^~~~~~~~~~~~ | |
platforms/chibios/drivers/audio_dac_basic.c:53:26: error: 'dac_buffer_1' defined but not used [-Werror=unused-const-variable=] | |
53 | static const dacsample_t dac_buffer_1[AUDIO_DAC_BUFFER_SIZE] = { | |
| ^~~~~~~~~~~~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment