diff --git a/Software/VNA_embedded/.cproject b/Software/VNA_embedded/.cproject index 3cc9c10..40b1540 100644 --- a/Software/VNA_embedded/.cproject +++ b/Software/VNA_embedded/.cproject @@ -39,8 +39,8 @@ - - + + @@ -86,8 +86,8 @@ - - + + @@ -265,4 +265,12 @@ + + + + + + + + \ No newline at end of file diff --git a/Software/VNA_embedded/Application/Drivers/delay.cpp b/Software/VNA_embedded/Application/Drivers/delay.cpp index 65a9a2f..3d9915c 100644 --- a/Software/VNA_embedded/Application/Drivers/delay.cpp +++ b/Software/VNA_embedded/Application/Drivers/delay.cpp @@ -35,8 +35,8 @@ void Delay::ms(uint32_t t) { us(1000); } } -void Delay::us(uint32_t t) { - uint64_t start = TIM1->CNT; +void Delay::us(uint16_t t) { + uint16_t start = TIM1->CNT; while(TIM1->CNT - start < t); } diff --git a/Software/VNA_embedded/Application/Drivers/delay.hpp b/Software/VNA_embedded/Application/Drivers/delay.hpp index 27e8492..b6eedf1 100644 --- a/Software/VNA_embedded/Application/Drivers/delay.hpp +++ b/Software/VNA_embedded/Application/Drivers/delay.hpp @@ -9,6 +9,6 @@ void Init(); uint64_t get_us(); void ms(uint32_t t); -void us(uint32_t t); +void us(uint16_t t); }