arch/arm/src/stm32h7/stm32_oneshot: fix style issues

This commit is contained in:
Pierre-Olivier Vauboin 2020-05-05 17:48:54 +02:00 committed by patacongo
parent d96565a765
commit 8d763d37ab
3 changed files with 9 additions and 6 deletions

View File

@ -185,7 +185,8 @@ int stm32_oneshot_initialize(struct stm32_oneshot_s *oneshot, int chan,
{
uint32_t frequency;
tmrinfo("chan=%d resolution=%d usec, USEC_PER_SEC:%d\n", chan, resolution, USEC_PER_SEC);
tmrinfo("chan=%d resolution=%d usec, USEC_PER_SEC:%d\n", chan, resolution,
USEC_PER_SEC);
DEBUGASSERT(oneshot && resolution > 0);
/* Get the TC frequency the corresponds to the requested resolution */
@ -227,7 +228,8 @@ int stm32_oneshot_max_delay(struct stm32_oneshot_s *oneshot, uint64_t *usec)
{
DEBUGASSERT(oneshot != NULL && usec != NULL);
tmrinfo("frequency: %d, USEC_PER_SEC: %d\n", oneshot->frequency, USEC_PER_SEC);
tmrinfo("frequency: %d, USEC_PER_SEC: %d\n", oneshot->frequency,
USEC_PER_SEC);
*usec = (uint64_t)(UINT32_MAX / oneshot->frequency) *
(uint64_t)USEC_PER_SEC;
return OK;
@ -261,8 +263,8 @@ int stm32_oneshot_start(struct stm32_oneshot_s *oneshot,
uint64_t period;
irqstate_t flags;
tmrinfo("handler=%p arg=%p, ts=(%lu, %lu)\n",
handler, arg, (unsigned long)ts->tv_sec, (unsigned long)ts->tv_nsec);
tmrinfo("handler=%p arg=%p, ts=(%lu, %lu)\n", handler, arg,
(unsigned long)ts->tv_sec, (unsigned long)ts->tv_nsec);
DEBUGASSERT(oneshot && handler && ts);
DEBUGASSERT(oneshot->tch);

View File

@ -65,7 +65,7 @@
typedef void (*oneshot_handler_t)(void *arg);
/* The oneshot client must allocate an instance of this structure and called
* stm32_oneshot_initialize() before using the oneshot facilities. The client
* stm32_oneshot_initialize() before using the oneshot facilities. The client
* should not access the contents of this structure directly since the
* contents are subject to change.
*/

View File

@ -39,7 +39,8 @@
* Private Types
****************************************************************************/
/* This structure describes the state of the oneshot timer lower-half driver */
/* This structure describes the state of the oneshot timer lower-half driver
*/
struct stm32_oneshot_lowerhalf_s
{