2015-11-02 10:27 AM
I acquainted
with
STM32CubeMX amd HAL Drivers for STM32F1,
but I'm really
some confused
. For example SPI in HAL Drivers User Manual I find function HAL_SPI_Transmit() The thirdy parameters is Timeout Documentation say Timeout is Timeout duration ,of
what?
Why and how OK I loot in function definition in line 400 of the xxxxx_SPI.c Timeout is used as parametrs in function SPI_WaitOnFlagUntilTimeout()Unfortunately,
the documentation
again
say Timout duration and on line 2286 is Timout compared with HAL_MAX_DE''AY.What
is
HAL_MAX_DELAY
I
could find
so far
.Documentation
is a
bad joke
.Is there any
better
documentation
and
examples
described
above
function
parameters
?Rr
how you
can
become familiar
with the
HAL
layer
Drivers
? #use-the-source-luke2015-11-02 11:37 AM
The HAL uses a 1ms SysTick to effect all it's delays and timeouts, I'd start assuming it's in milliseconds.
2015-11-03 02:24 AM
Hi mark.aster,
Inhttp://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/DM00154093.pdf
section 2.12.4 (Timeout and error management), there is an explication for timeout and HAL_MAX_DELAY.''The timeout is often used for the APIs that operate in polling mode. It defines the delayduring which a blocking process should wait till an error is returned.''Hope this can help :)-Shahrzad-2015-11-03 06:41 AM
Thank you
UM1850 User manual Description of STM32F1xx HAL driversIt is probably
what
I missed
.Should
be an integral part
of stm32cube_fw_f1_v120.zip2015-11-03 09:39 AM
Hi mark.aster,
All documentation is available under the official page of Good luck :)-Shahrzad-