![]() |
#include "app.h"
#include "ch.h"
#include "hal.h"
#include "stm32f4xx_conf.h"
#include "mcpwm.h"
#include "timeout.h"
#include "utils.h"
#include "comm_can.h"
#include "hw.h"
#include <math.h>
Macros | |
#define | MAX_CAN_AGE 0.1 |
#define | MIN_MS_WITHOUT_POWER 500 |
#define | FILTER_SAMPLES 5 |
#define | RPM_FILTER_SAMPLES 8 |
Functions | |
void | app_adc_configure (adc_config *conf) |
void | app_adc_start (bool use_rx_tx) |
float | app_adc_get_decoded_level (void) |
float | app_adc_get_voltage (void) |
#define FILTER_SAMPLES 5 |
#define MAX_CAN_AGE 0.1 |
#define MIN_MS_WITHOUT_POWER 500 |
#define RPM_FILTER_SAMPLES 8 |
void app_adc_configure | ( | adc_config * | conf | ) |
float app_adc_get_decoded_level | ( | void | ) |
float app_adc_get_voltage | ( | void | ) |
void app_adc_start | ( | bool | use_rx_tx | ) |