[gd32] format code (#5861)

This commit is contained in:
Man, Jianting (Meco) 2022-04-22 10:30:15 -04:00 committed by GitHub
parent c2a0995545
commit acc04facf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -401,7 +401,7 @@ rt_err_t rt_hw_spi_device_attach(const char *bus_name, const char *device_name,
gpio_init(cs_gpiox, GPIO_MODE_OUT_PP, GPIO_OSPEED_50MHZ, cs_gpio_pin);
gpio_bit_set(cs_gpiox, cs_gpio_pin);
#endif
/* attach the device to spi bus*/
spi_device = (struct rt_spi_device *)rt_malloc(sizeof(struct rt_spi_device));
RT_ASSERT(spi_device != RT_NULL);