tiny/usiTwiSlave.h/c : Make usi_onRequestPtr,usi_onRecievePtr extern and include <stdddef.h> to fix compilation errors apparently caused by new version of compiler.
This commit is contained in:
parent
a3cda0b908
commit
37bb0cf065
@ -40,13 +40,16 @@ Change Activity:
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
includes
|
includes
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
#include <stddef.h>
|
||||||
#include <avr/io.h>
|
#include <avr/io.h>
|
||||||
#include <avr/interrupt.h>
|
#include <avr/interrupt.h>
|
||||||
|
|
||||||
#include "usiTwiSlave.h"
|
#include "usiTwiSlave.h"
|
||||||
//#include "../common/util.h"
|
//#include "../common/util.h"
|
||||||
|
|
||||||
|
//request_func_t _onTwiDataRequest = NULL;
|
||||||
|
request_func_t usi_onRequestPtr = NULL;
|
||||||
|
receive_func_t usi_onReceiverPtr = NULL;
|
||||||
|
|
||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
device dependent defines
|
device dependent defines
|
||||||
|
@ -36,6 +36,7 @@ Change Activity:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
|
|
||||||
includes
|
includes
|
||||||
@ -52,17 +53,26 @@ Change Activity:
|
|||||||
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
void usiTwiSlaveInit( uint8_t );
|
void usiTwiSlaveInit( uint8_t );
|
||||||
void usiTwiTransmitByte( uint8_t );
|
void usiTwiTransmitByte( uint8_t );
|
||||||
uint8_t usiTwiReceiveByte( void );
|
uint8_t usiTwiReceiveByte( void );
|
||||||
bool usiTwiDataInReceiveBuffer( void );
|
bool usiTwiDataInReceiveBuffer( void );
|
||||||
void (*_onTwiDataRequest)(void);
|
//void (*_onTwiDataRequest)(void);
|
||||||
|
|
||||||
|
//extern request_func_t _onTwiDataRequest;
|
||||||
|
|
||||||
bool usiTwiDataInTransmitBuffer(void);
|
bool usiTwiDataInTransmitBuffer(void);
|
||||||
uint8_t usiTwiAmountDataInReceiveBuffer(void);
|
uint8_t usiTwiAmountDataInReceiveBuffer(void);
|
||||||
// on_XXX handler pointers
|
// on_XXX handler pointers
|
||||||
void (*usi_onRequestPtr)(void);
|
//void (*usi_onRequestPtr)(void);
|
||||||
void (*usi_onReceiverPtr)(uint8_t);
|
//void (*usi_onReceiverPtr)(uint8_t);
|
||||||
|
|
||||||
|
typedef void (*request_func_t)(void);
|
||||||
|
typedef void (*receive_func_t)(uint8_t);
|
||||||
|
|
||||||
|
extern request_func_t usi_onRequestPtr;
|
||||||
|
extern receive_func_t usi_onReceiverPtr;
|
||||||
|
|
||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user