Formula Student Electronics & Software
The code for the embedded software
Loading...
Searching...
No Matches
write_data.h
Go to the documentation of this file.
1#ifndef _WRITE_DATA_H_
2#define _WRITE_DATA_H_
3
4// =*= CONFIG =*=
5// SPI pinout
6#define PIN_SPI_CLK 45
7#define PIN_SPI_MOSI 43
8#define PIN_SPI_MISO 42
9#define PIN_SD_CS 44
10// If you have connected other SPI device then
11// put here number of pin for disable its.
12// Provide -1 if you don't have other devices.
13#define PIN_OTHER_DEVICE_CS -1
14// Change this value if you have problems with SD card
15// Available values: SPI_QUARTER_SPEED //SPI_HALF_SPEED
16// It is enum from SdFat
17#define SD_CARD_SPEED SPI_FULL_SPEED
18
19void setup_csv();
20void write();
21
22#endif // WRITE_DATA_H
void setup_csv()
void write()