boards/arm/stm32f0l0g0/: Fix issues noted by nxstyle.
This commit is contained in:
parent
b9638de388
commit
54d6a0768c
@ -143,7 +143,8 @@ static void stm32_i2ctool(void)
|
|||||||
* CONFIG_BOARD_LATE_INITIALIZE=y :
|
* CONFIG_BOARD_LATE_INITIALIZE=y :
|
||||||
* Called from board_late_initialize().
|
* Called from board_late_initialize().
|
||||||
*
|
*
|
||||||
* CONFIG_BOARD_LATE_INITIALIZE=n && CONFIG_LIB_BOARDCTL=y && CONFIG_NSH_ARCHINIT:
|
* CONFIG_BOARD_LATE_INITIALIZE=n && CONFIG_LIB_BOARDCTL=y
|
||||||
|
* && CONFIG_NSH_ARCHINIT:
|
||||||
* Called from the NSH library
|
* Called from the NSH library
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@ -184,7 +185,6 @@ int stm32_bringup(void)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
syslog(LOG_ERR, "Failed to initialize GPIO Driver: %d\n", ret);
|
syslog(LOG_ERR, "Failed to initialize GPIO Driver: %d\n", ret);
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -206,7 +206,8 @@ int stm32_bringup(void)
|
|||||||
ret = stm32_timer_driver_setup("/dev/timer0", 6);
|
ret = stm32_timer_driver_setup("/dev/timer0", 6);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
syslog(LOG_ERR, "ERROR: stm32_timer_driver_setup failed. TIM6: %d\n", ret);
|
syslog(LOG_ERR, "ERROR: stm32_timer_driver_setup failed. TIM6: %d\n",
|
||||||
|
ret);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -214,7 +215,8 @@ int stm32_bringup(void)
|
|||||||
ret = stm32_timer_driver_setup("/dev/timer1", 7);
|
ret = stm32_timer_driver_setup("/dev/timer1", 7);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
syslog(LOG_ERR, "ERROR: stm32_timer_driver_setup failed. TIM7: %d\n", ret);
|
syslog(LOG_ERR, "ERROR: stm32_timer_driver_setup failed. TIM7: %d\n",
|
||||||
|
ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -98,21 +98,20 @@ uint32_t board_buttons(void)
|
|||||||
* Button support.
|
* Button support.
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* board_button_initialize() must be called to initialize button resources. After
|
* board_button_initialize() must be called to initialize button resources.
|
||||||
* that, board_buttons() may be called to collect the current state of all
|
* After that, board_buttons() may be called to collect the current state of
|
||||||
* buttons or board_button_irq() may be called to register button interrupt
|
* all buttons or board_button_irq() may be called to register button
|
||||||
* handlers.
|
* interrupt handlers.
|
||||||
*
|
*
|
||||||
* After board_button_initialize() has been called, board_buttons() may be called to
|
* After board_button_initialize() has been called, board_buttons() may be
|
||||||
* collect the state of all buttons. board_buttons() returns an 32-bit bit set
|
* called to collect the state of all buttons. board_buttons() returns an
|
||||||
* with each bit associated with a button. See the BUTTON_*_BIT
|
* 32-bit bit set with each bit associated with a button. See the
|
||||||
* definitions in board.h for the meaning of each bit.
|
* BUTTON_*_BIT definitions in board.h for the meaning of each bit.
|
||||||
*
|
*
|
||||||
* board_button_irq() may be called to register an interrupt handler that will
|
* board_button_irq() may be called to register an interrupt handler that
|
||||||
* be called when a button is depressed or released. The ID value is a
|
* will be called when a button is depressed or released. The ID value is a
|
||||||
* button enumeration value that uniquely identifies a button resource. See the
|
* button enumeration value that uniquely identifies a button resource. See
|
||||||
* BUTTON_* definitions in board.h for the meaning of enumeration
|
* the BUTTON_* definitions in board.h for the meaning of enumeration value.
|
||||||
* value.
|
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
@ -123,7 +122,8 @@ int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg)
|
|||||||
|
|
||||||
if (id == BUTTON_USER)
|
if (id == BUTTON_USER)
|
||||||
{
|
{
|
||||||
ret = stm32_gpiosetevent(GPIO_BTN_USER, true, true, true, irqhandler, arg);
|
ret = stm32_gpiosetevent(GPIO_BTN_USER, true, true, true, irqhandler,
|
||||||
|
arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -62,7 +62,8 @@
|
|||||||
* Configure the timer driver.
|
* Configure the timer driver.
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* devpath - The full path to the timer device. This should be of the form /dev/timer0
|
* devpath - The full path to the timer device. This should be of the form
|
||||||
|
* /dev/timer0
|
||||||
* timer - The timer's number.
|
* timer - The timer's number.
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
|
Loading…
Reference in New Issue
Block a user