Question: Write a mydelay() function in C, you will need to get into the low-level details to poll the SysTick peripheral. -- using HWREG macro to
Write a mydelay() function in C, you will need to get into the low-level details to poll the SysTick peripheral.
-- using HWREG macro to transfer the reload register value to the count register
-- create a loop to count a 4 second delay based 0.2 second delay created by SysTick
-- use HWREG macro to check the COUNT flag in the SysTick control register
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
