diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2011-09-02 04:38:56 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2011-09-02 04:38:56 +0000 |
| commit | 4ee2f3e0e9c57a2e0f78484328fdcf6072e9cd1d (patch) | |
| tree | 05f869f3772a849ee4c1326164a46bfa08750382 /LUFA/Common/Common.h | |
| parent | 0834ca09464491a2b831e7801aea45d3a2b0227f (diff) | |
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.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1918 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'LUFA/Common/Common.h')
| -rw-r--r-- | LUFA/Common/Common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LUFA/Common/Common.h b/LUFA/Common/Common.h index 43df9fbe..e9faf7af 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)) |
