mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 01:51:35 +08:00
drivers: Warning fixes
This commit is contained in:
@@ -99,7 +99,7 @@
|
|||||||
* CONFIG_ARCH_LEDS configuration switch.
|
* CONFIG_ARCH_LEDS configuration switch.
|
||||||
*/
|
*/
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
extern void led_init();
|
extern void led_init(void);
|
||||||
extern void led_on(int led);
|
extern void led_on(int led);
|
||||||
extern void led_off(int led);
|
extern void led_off(int led);
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|||||||
@@ -54,13 +54,13 @@
|
|||||||
* CONFIG_ARCH_LEDS configuration switch.
|
* CONFIG_ARCH_LEDS configuration switch.
|
||||||
*/
|
*/
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
extern void led_init();
|
extern void led_init(void);
|
||||||
extern void led_on(int led);
|
extern void led_on(int led);
|
||||||
extern void led_off(int led);
|
extern void led_off(int led);
|
||||||
extern void led_toggle(int led);
|
extern void led_toggle(int led);
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
__EXPORT void led_init()
|
__EXPORT void led_init(void)
|
||||||
{
|
{
|
||||||
/* Configure LED1-2 GPIOs for output */
|
/* Configure LED1-2 GPIOs for output */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user