|
|
|
@ -30,6 +30,7 @@
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <wiringPiI2C.h>
|
|
|
|
#include <wiringPiI2C.h>
|
|
|
|
|
|
|
|
#include <../afsk/send_afsk.h>
|
|
|
|
|
|
|
|
|
|
|
|
#define MAX_MESSAGE_LENGTH (197)
|
|
|
|
#define MAX_MESSAGE_LENGTH (197)
|
|
|
|
|
|
|
|
|
|
|
|
@ -58,6 +59,8 @@ int main(void)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
uint8_t retVal;
|
|
|
|
uint8_t retVal;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
send_afsk();
|
|
|
|
|
|
|
|
|
|
|
|
// Configure SPI bus to AX5043
|
|
|
|
// Configure SPI bus to AX5043
|
|
|
|
setSpiChannel(SPI_CHANNEL);
|
|
|
|
setSpiChannel(SPI_CHANNEL);
|
|
|
|
setSpiSpeed(SPI_SPEED);
|
|
|
|
setSpiSpeed(SPI_SPEED);
|
|
|
|
|