28 #include "subsystems/actuators/actuators_pwm_arch.h"
33 #define ESCS_PORT (&((ESCS_UART).device))
56 for (i = 0; i < 256; i++) {
58 for (j = 0; j < 8; j++) {
59 crc = (crc << 1) ^ ((crc & 0x80) ?
DI : 0);
69 void crc8(
unsigned char *
crc,
unsigned char m)
106 static bool bitflipper =
true;
113 bitflipper = !bitflipper;
115 unsigned char crc = 0;
116 unsigned char *data = (
unsigned char *)&package;
117 for (
unsigned char i = 1 ; i <
sizeof(
struct EscData) - 1; i++) {
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
int32_t actuators_xvert_values[ACTUATORS_PWM_NB]
void actuators_pwm_arch_init(void)
Arch dependent init file.
static unsigned char crc8_table[256]
#define ESCS_DATA_FLIPBIT
#define ESCS_DATA_MYSTERYBIT
void actuators_xvert_commit(void)
void actuators_pwm_commit(void)
static void init_crc8(void)
void crc8(unsigned char *crc, unsigned char m)
void actuators_xvert_init(void)
int32_t actuators_pwm_values[ACTUATORS_PWM_NB]