2019-06-12 19:18:37 +00:00
# pragma once
//////////////////////////////////
////////////// Main //////////////
//////////////////////////////////
// The speed at which we should talk over our main hardware serial connection.
2019-06-20 11:23:09 +00:00
# define BAUD_PC 115200
2019-06-12 19:18:37 +00:00
// Multiple devices can use the same SPI data pin AFAIKT, but some libraries *cough* SD *cough* are too stupid to figure out which pin it is on their own.
2019-06-20 11:23:09 +00:00
# define PIN_SPI_DATA 9
# define PIN_TPL_DONE 8
2019-06-12 19:18:37 +00:00
/////////////////////////////////
////////////// GPS //////////////
/////////////////////////////////
// The *TX* gin of the GPS device.
// This is swapped because we receive the GPS device's message on our side on the RX pin, and the GPS device transmits messages on the TX.
2019-06-13 14:10:12 +00:00
# define PIN_GPS_RX 5
2019-06-12 19:18:37 +00:00
// The *RX* pin on the GPS device.
// This is swapped because where the GPs device is receiving, we aresending and vice versa.
// The TX / RX here are according to *our* side, not the GPS device's side.
2019-06-13 14:10:12 +00:00
# define PIN_GPS_TX 4
2019-06-12 19:18:37 +00:00
// The speed at which we should talk to the GPS device. Some GPS devices require a certain speed in order to use certain commands, so it's important that you check the datasheets for the device you're using.
// 9600 is the correct speed for a NEO-6M.
# define BAUD_GPS 9600
//////////////////////////////////
////////// microSD Card //////////
//////////////////////////////////
2019-06-13 13:13:03 +00:00
// The chip select pin that activates the connection to the microSD card over SPI.
2019-06-12 19:18:37 +00:00
# define PIN_SD_SPI_CHIP_SELECT 3
2019-06-13 13:13:03 +00:00
2019-06-20 12:56:08 +00:00
// The filename on the microSD card to store data in.
2019-06-13 13:13:03 +00:00
# define SD_FILENAME "data.tsv"
2019-06-20 12:56:08 +00:00
// The filename on the microSD card to store debug information in
# define SD_FILENAME_DEBUG "debug.log"