Compilation error
This commit is contained in:
+1
-1
@@ -79,7 +79,7 @@ void startPulses()
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(PCBSKY9X)
|
#if defined(PCBSKY9X)
|
||||||
#define PPM_PORT_PARAM uint32_t ppmPort=0
|
#define PPM_PORT_PARAM uint32_t ppmPort
|
||||||
#else
|
#else
|
||||||
#define PPM_PORT_PARAM
|
#define PPM_PORT_PARAM
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -163,6 +163,8 @@ void disable_ppm2();
|
|||||||
void init_ssc();
|
void init_ssc();
|
||||||
void disable_ssc();
|
void disable_ssc();
|
||||||
#define disable_pxx() disable_ssc()
|
#define disable_pxx() disable_ssc()
|
||||||
|
// TODO illogical in the driver :(
|
||||||
|
void setupPulsesPPM(uint32_t ppmPort=0);
|
||||||
|
|
||||||
// SD driver
|
// SD driver
|
||||||
#if !defined(SIMU)
|
#if !defined(SIMU)
|
||||||
|
|||||||
@@ -34,15 +34,12 @@
|
|||||||
|
|
||||||
#include "../open9x.h"
|
#include "../open9x.h"
|
||||||
|
|
||||||
// TODO illogical in the driver :(
|
|
||||||
void setupPulsesPPM(uint32_t ppmPort=0);
|
|
||||||
|
|
||||||
void init_main_ppm( uint32_t period, uint32_t out_enable )
|
void init_main_ppm( uint32_t period, uint32_t out_enable )
|
||||||
{
|
{
|
||||||
register Pio *pioptr ;
|
register Pio *pioptr ;
|
||||||
register Pwm *pwmptr ;
|
register Pwm *pwmptr ;
|
||||||
|
|
||||||
setupPulsesPPM() ;
|
setupPulsesPPM(0) ;
|
||||||
|
|
||||||
if ( out_enable )
|
if ( out_enable )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user