From de9bd767dc8578a45a195fb1e37dd4ff26ae9567 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Fri, 8 Apr 2011 05:05:05 +0000 Subject: Correct UC3 global interrupt functions. Replace all calls and references to _delay_ms() in the code with the architecture-agnostic Delay_MS() function. Improve code generation for the Delay_MS() function on the AVR8 architecture when called with a constant input. --- Projects/AVRISP-MKII/Lib/ISP/ISPProtocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Projects/AVRISP-MKII') diff --git a/Projects/AVRISP-MKII/Lib/ISP/ISPProtocol.c b/Projects/AVRISP-MKII/Lib/ISP/ISPProtocol.c index 421046b5a..ccd31f3d2 100644 --- a/Projects/AVRISP-MKII/Lib/ISP/ISPProtocol.c +++ b/Projects/AVRISP-MKII/Lib/ISP/ISPProtocol.c @@ -519,7 +519,7 @@ void ISPProtocol_SPIMulti(void) void ISPProtocol_DelayMS(uint8_t DelayMS) { while (DelayMS-- && !(TimeoutExpired)) - _delay_ms(1); + Delay_MS(1); } #endif -- cgit v1.2.3