projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add const qualifier to all PROGMEM data to prevent warnings in newer AVR-GCC compiler...
[pub/USBasp.git]
/
LUFA
/
Common
/
Common.h
diff --git
a/LUFA/Common/Common.h
b/LUFA/Common/Common.h
index
e38d63e
..
e9faf7a
100644
(file)
--- a/
LUFA/Common/Common.h
+++ b/
LUFA/Common/Common.h
@@
-160,7
+160,7
@@
* \return The larger of the two input parameters
*/
#if !defined(MAX) || defined(__DOXYGEN__)
* \return The larger of the two input parameters
*/
#if !defined(MAX) || defined(__DOXYGEN__)
- #define MAX(x, y) ((
x > y) ? x : y
)
+ #define MAX(x, y) ((
(x) > (y)) ? (x) : (y)
)
#endif
/** Convenience macro to determine the smaller of two values.
#endif
/** Convenience macro to determine the smaller of two values.
@@
-174,7
+174,7
@@
* \return The smaller of the two input parameters
*/
#if !defined(MIN) || defined(__DOXYGEN__)
* \return The smaller of the two input parameters
*/
#if !defined(MIN) || defined(__DOXYGEN__)
- #define MIN(x, y) ((
x < y) ? x : y
)
+ #define MIN(x, y) ((
(x) < (y)) ? (x) : (y)
)
#endif
#if !defined(STRINGIFY) || defined(__DOXYGEN__)
#endif
#if !defined(STRINGIFY) || defined(__DOXYGEN__)
@@
-237,8
+237,8
@@
*
* \param[in] Milliseconds Number of milliseconds to delay
*/
*
* \param[in] Milliseconds Number of milliseconds to delay
*/
- static inline void Delay_MS(uint
8
_t Milliseconds) ATTR_ALWAYS_INLINE;
- static inline void Delay_MS(uint
8
_t Milliseconds)
+ static inline void Delay_MS(uint
16
_t Milliseconds) ATTR_ALWAYS_INLINE;
+ static inline void Delay_MS(uint
16
_t Milliseconds)
{
#if (ARCH == ARCH_AVR8)
if (GCC_IS_COMPILE_CONST(Milliseconds))
{
#if (ARCH == ARCH_AVR8)
if (GCC_IS_COMPILE_CONST(Milliseconds))