This commit is contained in:
2024-09-27 18:22:57 +08:00
parent 0bbec6209f
commit 1cf43e0371
4 changed files with 38 additions and 53 deletions

View File

@@ -5,6 +5,8 @@
#ifndef MLX90614_H
#define MLX90614_H
#define I2C_EVENT_MASTER_MODE_SELECT ((uint32_t)(I2C_FLAG_I2CBSY | I2C_FLAG_MASTER | I2C_FLAG_RBNE))
void i2c_config(void);
int read_ir_mlx90614(void);

View File

@@ -62,23 +62,14 @@
#define US_ECHO_CH TIMER_CH_0
void led_config(void);
void usart_config(void);
void ultrasonic_config(void);
void ultrasonic_transmit_config(void);
void ultrasonic_pwm_out_cycles(const uint8_t cycles);
void ultrasonic_transmit_delay(const uint16_t micro_second);
void receive_exti_config(void);
void ultrasonic_echo_timer_config(void);
void ultrasonic_receive_config(void);
uint16_t calculate_distance(uint32_t us_value);
#endif //ULTRASONIC_DRIVER_H