Fixing gcc build warnings

This commit is contained in:
Jack Marriott
2018-11-28 21:42:21 -05:00
parent cfcc602566
commit 34b6ab8e07
2 changed files with 5 additions and 2 deletions

View File

@@ -53,6 +53,6 @@ typedef enum {
/***************************************************************************** /*****************************************************************************
* FUNCTION DECLARATIONS * FUNCTION DECLARATIONS
*****************************************************************************/ *****************************************************************************/
void ebmp_init(Gpp_gpioCfg *driver); int ebmp_init(Gpp_gpioCfg *driver);
#endif /* EBMP_H_ */ #endif /* EBMP_H_ */

View File

@@ -10,6 +10,7 @@
// HEADER FILES // HEADER FILES
//***************************************************************************** //*****************************************************************************
#include "inc/subsystem/gpp/ebmp.h" #include "inc/subsystem/gpp/ebmp.h"
#include "devices/i2c/threaded_int.h"
#include "Board.h" #include "Board.h"
#include "common/inc/global/ocmp_frame.h" #include "common/inc/global/ocmp_frame.h"
@@ -231,7 +232,7 @@ static void ebmp_handle_irq(void *context)
** ARGUMENTS : None ** ARGUMENTS : None
** RETURN TYPE : None ** RETURN TYPE : None
*****************************************************************************/ *****************************************************************************/
void ebmp_init(Gpp_gpioCfg *driver) int ebmp_init(Gpp_gpioCfg *driver)
{ {
pin_ap_boot_alert1 = &driver->pin_ap_boot_alert1; pin_ap_boot_alert1 = &driver->pin_ap_boot_alert1;
pin_ap_boot_alert2 = &driver->pin_ap_boot_alert2; pin_ap_boot_alert2 = &driver->pin_ap_boot_alert2;
@@ -271,6 +272,8 @@ void ebmp_init(Gpp_gpioCfg *driver)
/* Use a threaded interrupt to handle IRQ */ /* Use a threaded interrupt to handle IRQ */
ThreadedInt_Init(pin_soc_pltrst_n, ebmp_handle_irq, (void *)AP_RESET); ThreadedInt_Init(pin_soc_pltrst_n, ebmp_handle_irq, (void *)AP_RESET);
} }
return RETURN_OK;
} }
/***************************************************************************** /*****************************************************************************