From 413438eb2330e8b2d9606a2936a169c9dd7916de Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Fri, 2 Sep 2011 04:38:56 +0000 Subject: Add new TWI_BITLENGTH_FROM_FREQ() macro to the AVR8 TWI peripheral driver. Change Delay_MS() to accept a 16-bit parameter rather than an 8-bit parameter for longer possible delays. Minor documentation improvements. --- LUFA/Common/Common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'LUFA/Common') diff --git a/LUFA/Common/Common.h b/LUFA/Common/Common.h index 43df9fbe9..e9faf7af4 100644 --- a/LUFA/Common/Common.h +++ b/LUFA/Common/Common.h @@ -237,8 +237,8 @@ * * \param[in] Milliseconds Number of milliseconds to delay */ - static inline void Delay_MS(uint8_t Milliseconds) ATTR_ALWAYS_INLINE; - static inline void Delay_MS(uint8_t Milliseconds) + static inline void Delay_MS(uint16_t Milliseconds) ATTR_ALWAYS_INLINE; + static inline void Delay_MS(uint16_t Milliseconds) { #if (ARCH == ARCH_AVR8) if (GCC_IS_COMPILE_CONST(Milliseconds)) -- cgit v1.2.3