fix: Extra brackets (#7252)

This commit is contained in:
Shelton Jacob 2023-04-16 10:46:42 +08:00 committed by GitHub
parent 61c239b6f0
commit 87ab55bbb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -1091,12 +1091,13 @@ static void _cyhal_pdm_pcm_arrays_init( void )
static cy_rslt_t _cyhal_pdm_pcm_init_hw(cyhal_pdm_pcm_t *obj, int paired_channel, cyhal_pdm_pcm_t* existing_obj,
#if defined(CY_IP_MXAUDIOSS_INSTANCES)
const cy_stc_pdm_pcm_config_t* pdl_struct)
const cy_stc_pdm_pcm_config_t* pdl_struct
#elif defined(CY_IP_MXTDM_INSTANCES)
const cy_stc_pdm_pcm_config_v2_t* pdl_struct,
const cy_stc_pdm_pcm_channel_config_t* pdl_chan_struct,
const cy_stc_pdm_pcm_channel_config_t* pdl_chan_struct_paired)
#endif
const cy_stc_pdm_pcm_channel_config_t* pdl_chan_struct_paired
#endif
)
{
cy_rslt_t result = CY_RSLT_SUCCESS;
obj->base = _cyhal_pdm_pcm_base[obj->resource.block_num];

View File

@ -351,7 +351,7 @@ int rt_hw_spi_init(void)
return result;
}
result = es32f0_spi_device_attach((ES_SPI1_NSS_PIN, ES_DEVICE_NAME_SPI1_BUS, ES_DEVICE_NAME_SPI1_DEV0);
result = es32f0_spi_device_attach(ES_SPI1_NSS_PIN, ES_DEVICE_NAME_SPI1_BUS, ES_DEVICE_NAME_SPI1_DEV0);
if (result != RT_EOK)
{
return result;