aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Platform
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2013-04-11 17:39:00 +0000
committerDean Camera <dean@fourwalledcubicle.com>2013-04-11 17:39:00 +0000
commit334f70aa80ecfa05a42c6006cb49d14f05555fa8 (patch)
tree7d5202f43f4613dd9cc15b72434a3881ae65e5e9 /LUFA/Platform
parentd5e84db5ab84d05d135d2522a419db65a4491628 (diff)
downloadlufa-334f70aa80ecfa05a42c6006cb49d14f05555fa8.tar.gz
lufa-334f70aa80ecfa05a42c6006cb49d14f05555fa8.tar.bz2
lufa-334f70aa80ecfa05a42c6006cb49d14f05555fa8.zip
Add some missing function attributes.
Diffstat (limited to 'LUFA/Platform')
-rw-r--r--LUFA/Platform/XMEGA/ClockManagement.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/LUFA/Platform/XMEGA/ClockManagement.h b/LUFA/Platform/XMEGA/ClockManagement.h
index 2a2e50f72..ec341a2c8 100644
--- a/LUFA/Platform/XMEGA/ClockManagement.h
+++ b/LUFA/Platform/XMEGA/ClockManagement.h
@@ -50,13 +50,13 @@
* Usage Example:
* \code
* #include <LUFA/Platform/XMEGA/ClockManagement.h>
- *
+ *
* void main(void)
* {
* // Start the PLL to multiply the 2MHz RC oscillator to F_CPU and switch the CPU core to run from it
* XMEGACLK_StartPLL(CLOCK_SRC_INT_RC2MHZ, 2000000, F_CPU);
* XMEGACLK_SetCPUClockSource(CLOCK_SRC_PLL);
- *
+ *
* // Start the 32MHz internal RC oscillator and start the DFLL to increase it to F_USB using the USB SOF as a reference
* XMEGACLK_StartInternalOscillator(CLOCK_SRC_INT_RC32MHZ);
* XMEGACLK_StartDFLL(CLOCK_SRC_INT_RC32MHZ, DFLL_REF_INT_USBSOF, F_USB);
@@ -123,7 +123,7 @@
* \param[in] Address Address to write to, a memory address protected by the CCP mechanism
* \param[in] Value Value to write to the protected location
*/
- static inline void XMEGACLK_CCP_Write(volatile void* Address, const uint8_t Value) ATTR_ALWAYS_INLINE;
+ static inline void XMEGACLK_CCP_Write(volatile void* Address, const uint8_t Value) ATTR_NON_NULL_PTR_ARG(1) ATTR_ALWAYS_INLINE;
static inline void XMEGACLK_CCP_Write(volatile void* Address, const uint8_t Value)
{
__asm__ __volatile__ (
@@ -134,7 +134,7 @@
: /* No output operands */
: /* Input operands: */ "m" (RAMPZ), "e" (Address), "m" (CCP), "r" (CCP_IOREG_gc), "r" (Value)
: /* Clobbered registers: */ "r30", "r31"
- );
+ );
}
/** Starts the external oscillator of the XMEGA microcontroller, with the given options. This routine blocks until
@@ -239,7 +239,7 @@
if (SourceFreq > Frequency)
return false;
-
+
if (MulFactor > 31)
return false;