constants replaced with macro definition

This commit is contained in:
2024-09-25 17:22:55 +08:00
parent 7cb354967c
commit b6b6932c08
3 changed files with 55 additions and 40 deletions

View File

@@ -12,9 +12,6 @@
#include "ultrasonic_driver.h"
#define ULTRASONIC_CYCLES 0x05U
#define ULTRASONIC_TRAN_US 50 // (ms)
extern uint32_t capture_value;
/*!
@@ -30,13 +27,13 @@ int main(void)
/* configure ultrasonic board hardware */
ultrasonic_transmit_config();
/* ---------- debug start ---------- */
ultrasonic_transmit_delay(250);
ultrasonic_transmit_delay(TIME_CORRECTION_US);
recevice_exti_config();
ultrasonic_echo_timer_config();
/* ---------- debug start ---------- */
/* ---------- debug end ---------- */