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.
Dependents: Hobbyking_Cheetah_Compact Hobbyking_Cheetah_Compact_DRV8323_14bit Hobbyking_Cheetah_Compact_DRV8323_V51_201907 HKC_MiniCheetah ... more
Fork of mbed-dev by
Diff: targets/TARGET_WIZNET/TARGET_W7500x/us_ticker.c
- Revision:
- 174:b96e65c34a4d
- Parent:
- 149:156823d33999
diff -r e131a1973e81 -r b96e65c34a4d targets/TARGET_WIZNET/TARGET_W7500x/us_ticker.c
--- a/targets/TARGET_WIZNET/TARGET_W7500x/us_ticker.c Fri Sep 15 14:59:18 2017 +0100
+++ b/targets/TARGET_WIZNET/TARGET_W7500x/us_ticker.c Mon Oct 02 15:33:19 2017 +0100
@@ -96,12 +96,6 @@
dev = (int32_t)(timestamp - us_ticker_read());
dev = dev * ((GetSystemClock() / 1000000) / 16);
- if(dev <= 0)
- {
- us_ticker_irq_handler();
- return;
- }
-
DUALTIMER_ClockEnable(TIMER_0);
DUALTIMER_Stop(TIMER_0);
@@ -123,6 +117,11 @@
}
+void us_ticker_fire_interrupt(void)
+{
+ NVIC_SetPendingIRQ(TIMER_IRQn);
+}
+
void us_ticker_disable_interrupt(void)
{
NVIC_DisableIRQ(TIMER_IRQn);
