Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed by
Diff: targets/hal/TARGET_ARM_SSG/TARGET_MPS2/SDK/fpga.c
- Revision:
- 80:bdf1132a57cf
- Parent:
- 0:9b334a45a8ff
- Child:
- 144:ef7eb2e8f9f7
--- a/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/SDK/fpga.c Wed Mar 02 10:15:13 2016 +0000 +++ b/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/SDK/fpga.c Wed Mar 02 14:30:11 2016 +0000 @@ -28,8 +28,8 @@ // Used for I2C drivers void i2c_delay(unsigned int tick) { - unsigned int end; - unsigned int start; + unsigned int end; + unsigned int start; start = MPS2_FPGAIO->COUNTER; end = start + (tick); @@ -50,8 +50,8 @@ */ void Sleepms(unsigned int msec) { - unsigned int end; - unsigned int start; + unsigned int end; + unsigned int start; start = MPS2_FPGAIO->COUNTER; end = start + (25 * msec * 1000); @@ -71,8 +71,8 @@ */ void Sleepus(unsigned int usec) { - unsigned int end; - unsigned int start; + unsigned int end; + unsigned int start; start = MPS2_FPGAIO->COUNTER; end = start + (25 * usec);