generated from TDD-Templates/cmake_cpputest_template
Changed project to make use of symlinks for the INO file.
This commit is contained in:
parent
ec1e504edf
commit
2f9fb1202d
|
@ -0,0 +1 @@
|
||||||
|
./src/main.cpp
|
|
@ -1,7 +0,0 @@
|
||||||
#include "stdio.h"
|
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
|
||||||
{
|
|
||||||
printf("Hello!\n");
|
|
||||||
return 0;
|
|
||||||
}
|
|
|
@ -9,6 +9,9 @@
|
||||||
#include <TinyGPS++.h> // Library to handle GPS data
|
#include <TinyGPS++.h> // Library to handle GPS data
|
||||||
#include <SoftwareSerial.h> // Software serial for GPS communication
|
#include <SoftwareSerial.h> // Software serial for GPS communication
|
||||||
#include <RH_RF95.h> //
|
#include <RH_RF95.h> //
|
||||||
|
//#include "Radio/Radio.h"
|
||||||
|
|
||||||
|
#include "inc/board_config.h"
|
||||||
|
|
||||||
|
|
||||||
// MAGNETOMETER (LIS2MDL) CONFIGURATION
|
// MAGNETOMETER (LIS2MDL) CONFIGURATION
|
||||||
|
@ -61,7 +64,6 @@ NodeId node = {
|
||||||
};
|
};
|
||||||
uint8_t reciver_buffer[RF95_BUF_SZ];
|
uint8_t reciver_buffer[RF95_BUF_SZ];
|
||||||
|
|
||||||
|
|
||||||
void Radio_setup(void) {
|
void Radio_setup(void) {
|
||||||
pinMode(RFM95_RST, OUTPUT);
|
pinMode(RFM95_RST, OUTPUT);
|
||||||
digitalWrite(RFM95_RST, HIGH);
|
digitalWrite(RFM95_RST, HIGH);
|
||||||
|
@ -79,6 +81,7 @@ void Radio_setup(void) {
|
||||||
rf95.setTxPower(RF95_MIN_DB, false);
|
rf95.setTxPower(RF95_MIN_DB, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Radio_reset(void) {
|
void Radio_reset(void) {
|
||||||
digitalWrite(RFM95_RST, LOW);
|
digitalWrite(RFM95_RST, LOW);
|
||||||
delay(10);
|
delay(10);
|
||||||
|
@ -119,6 +122,8 @@ int Radio_SendData() {
|
||||||
rf95.setModeIdle();
|
rf95.setModeIdle();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int Radio_ReceiveData() {
|
int Radio_ReceiveData() {
|
||||||
//Set radio into RX mode.
|
//Set radio into RX mode.
|
||||||
rf95.setModeRx();
|
rf95.setModeRx();
|
Loading…
Reference in New Issue