aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Common
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-03-09 12:28:50 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-03-09 12:28:50 +0000
commit4a09da20989dfe0c41dc1272fa6dce1e11539c15 (patch)
tree9bff8cf677ebfda3ac8d2c691dcb55543f765b6f /LUFA/Common
parentddd223fa35720e360daa08e6964f20c2fb625c27 (diff)
parentb0d9f961acfff498b7c4f2dc4a54ad9513d09a3b (diff)
downloadlufa-4a09da20989dfe0c41dc1272fa6dce1e11539c15.tar.gz
lufa-4a09da20989dfe0c41dc1272fa6dce1e11539c15.tar.bz2
lufa-4a09da20989dfe0c41dc1272fa6dce1e11539c15.zip
Removed SetSystemClockPrescaler() macro, the clock_prescale_set() avr-libc macro has been corrected in recent avr-libc versions
Diffstat (limited to 'LUFA/Common')
-rw-r--r--LUFA/Common/Common.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/LUFA/Common/Common.h b/LUFA/Common/Common.h
index 97e9ce931..ed2d1bc90 100644
--- a/LUFA/Common/Common.h
+++ b/LUFA/Common/Common.h
@@ -88,27 +88,6 @@
} }MACROE
/* Inline Functions: */
- /** Function for reliably setting the AVR's system clock prescaler, using inline assembly. This function
- * is guaranteed to operate reliably regardless of optimization setting or other compile time options.
- *
- * \param PrescalerMask The mask of the new prescaler setting for CLKPR
- */
- static inline void SetSystemClockPrescaler(uint8_t PrescalerMask)
- {
- uint8_t tmp = (1 << CLKPCE);
- __asm__ __volatile__ (
- "in __tmp_reg__,__SREG__" "\n\t"
- "cli" "\n\t"
- "sts %1, %0" "\n\t"
- "sts %1, %2" "\n\t"
- "out __SREG__, __tmp_reg__"
- : /* no outputs */
- : "d" (tmp),
- "M" (_SFR_MEM_ADDR(CLKPR)),
- "d" (PrescalerMask)
- : "r0");
- }
-
/** Function to reverse the individual bits in a byte - i.e. bit 7 is moved to bit 0, bit 6 to bit 1,
* etc.
*