You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.3 KiB
Groff
57 lines
1.3 KiB
Groff
.TH "power.h" 3 "4 Dec 2008" "Version 1.6.4" "avr-libc" \" -*- nroff -*-
|
|
.ad l
|
|
.nh
|
|
.SH NAME
|
|
power.h \-
|
|
.SH "Detailed Description"
|
|
.PP
|
|
|
|
.SH SYNOPSIS
|
|
.br
|
|
.PP
|
|
.SS "Defines"
|
|
|
|
.in +1c
|
|
.ti -1c
|
|
.RI "#define \fB_AVR_POWER_H_\fP 1"
|
|
.br
|
|
.ti -1c
|
|
.RI "#define \fBclock_prescale_set\fP(x)"
|
|
.br
|
|
.ti -1c
|
|
.RI "#define \fBclock_prescale_get\fP() (clock_div_t)(CLKPR & (\fBuint8_t\fP)((1<<CLKPS0)|(1<<CLKPS1)|(1<<CLKPS2)|(1<<CLKPS3)))"
|
|
.br
|
|
.in -1c
|
|
.SS "Enumerations"
|
|
|
|
.in +1c
|
|
.ti -1c
|
|
.RI "enum \fBclock_div_t\fP { \fBclock_div_1\fP = 0, \fBclock_div_2\fP = 1, \fBclock_div_4\fP = 2, \fBclock_div_8\fP = 3, \fBclock_div_16\fP = 4, \fBclock_div_32\fP = 5, \fBclock_div_64\fP = 6, \fBclock_div_128\fP = 7, \fBclock_div_256\fP = 8 }"
|
|
.br
|
|
.in -1c
|
|
.SH "Define Documentation"
|
|
.PP
|
|
.SS "#define clock_prescale_set(x)"
|
|
.PP
|
|
\fBValue:\fP
|
|
.PP
|
|
.nf
|
|
{ \
|
|
uint8_t tmp = _BV(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' (x) \
|
|
: 'r0'); \
|
|
}
|
|
.fi
|
|
.SH "Author"
|
|
.PP
|
|
Generated automatically by Doxygen for avr-libc from the source code.
|