fix: Extra brackets (#7252)
This commit is contained in:
parent
61c239b6f0
commit
87ab55bbb2
|
@ -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,
|
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)
|
#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)
|
#elif defined(CY_IP_MXTDM_INSTANCES)
|
||||||
const cy_stc_pdm_pcm_config_v2_t* pdl_struct,
|
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,
|
||||||
const cy_stc_pdm_pcm_channel_config_t* pdl_chan_struct_paired)
|
const cy_stc_pdm_pcm_channel_config_t* pdl_chan_struct_paired
|
||||||
#endif
|
#endif
|
||||||
|
)
|
||||||
{
|
{
|
||||||
cy_rslt_t result = CY_RSLT_SUCCESS;
|
cy_rslt_t result = CY_RSLT_SUCCESS;
|
||||||
obj->base = _cyhal_pdm_pcm_base[obj->resource.block_num];
|
obj->base = _cyhal_pdm_pcm_base[obj->resource.block_num];
|
||||||
|
|
|
@ -351,7 +351,7 @@ int rt_hw_spi_init(void)
|
||||||
return result;
|
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)
|
if (result != RT_EOK)
|
||||||
{
|
{
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in New Issue