Declare rxpdo, txpdo as arrays
Rxpdo/txpdo were declared as external pointers if MAX_MAPPINGS2/3 were 0. However they must be declared as arrays for an external unit to be able to use them as such. Change-Id: I4bd547ae809ccfcb2dc1761f0f511f7e6088b712pull/117/head
parent
fa0d6bf4d6
commit
d96f7cefef
|
@ -25,13 +25,13 @@ static volatile int watchdog;
|
||||||
#if MAX_MAPPINGS_SM2 > 0
|
#if MAX_MAPPINGS_SM2 > 0
|
||||||
static uint8_t rxpdo[MAX_RXPDO_SIZE] __attribute__((aligned (8)));
|
static uint8_t rxpdo[MAX_RXPDO_SIZE] __attribute__((aligned (8)));
|
||||||
#else
|
#else
|
||||||
extern uint8_t * rxpdo;
|
extern uint8_t rxpdo[];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if MAX_MAPPINGS_SM3 > 0
|
#if MAX_MAPPINGS_SM3 > 0
|
||||||
static uint8_t txpdo[MAX_TXPDO_SIZE] __attribute__((aligned (8)));
|
static uint8_t txpdo[MAX_TXPDO_SIZE] __attribute__((aligned (8)));
|
||||||
#else
|
#else
|
||||||
extern uint8_t * txpdo;
|
extern uint8_t txpdo[];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** Function to pre-qualify the incoming SDO download.
|
/** Function to pre-qualify the incoming SDO download.
|
||||||
|
|
Loading…
Reference in New Issue