0d28903b2c
Both the robot and the base station had a lot of code that was identical, like data structs, constants, radio library etc. The chosen solution was to extract all shared code into a static library and link the station and robot against it.
13 lines
252 B
C
13 lines
252 B
C
#ifndef MAIN_H
|
|
#define MAIN_H
|
|
|
|
#include <stdint.h>
|
|
#include "common.h"
|
|
|
|
uint8_t tx_address[5] = {0xD7, 0xD7, 0xD7, 0xD7, 0xD7};
|
|
uint8_t rx_address[5] = {0xE7, 0xE7, 0xE7, 0xE7, 0xE7};
|
|
|
|
void convert_raw_to_data(uint8_t *in, data_packet_t *out);
|
|
|
|
#endif
|