Question
Code processing time takes too long. I'm using STM32L476JGYx.
I'm using SPI Communication in STM32L476JGYx.
But the code processing time takes too long.
[Sensor_IO_SPI_Read] function takes 2 micro sec.
After that, I calculated the received raw data.
But, it took more 30 micro sec. (32 micro sec)
Below, the calculating code is here.
ctx->pDataRX->Axis_x = (float)((-1.0f) * raw_data_tmp.i16bit[0] * ctx->sensitivity * M_PI / 180.0f);
ctx->pDataRX->Axis_y = (float) ((-1.0f) * raw_data_tmp.i16bit[1] * ctx->sensitivity * M_PI / 180.0f);
ctx->pDataRX->Axis_z = (float) ((-1.0f) * raw_data_tmp.i16bit[2] * ctx->sensitivity * M_PI / 180.0f);What happened in my code.....?
Below, I attach my clock configuration.

