added driver for one inverting charge pump
This commit is contained in:
parent
d8bdcc3eed
commit
8506b6ad39
13
analogout.c
Normal file
13
analogout.c
Normal file
|
@ -0,0 +1,13 @@
|
|||
#include "analogout.h"
|
||||
#include <avr/io.h>
|
||||
|
||||
void
|
||||
analogout_init(void)
|
||||
{
|
||||
DDRD |= _BV(PD5);
|
||||
TCCR0A = _BV(COM0B1) | _BV(WGM01) | _BV(WGM00);
|
||||
TCCR0B = _BV(CS00);
|
||||
OCR0B = 0xff / 2;
|
||||
}
|
||||
|
||||
|
7
analogout.h
Normal file
7
analogout.h
Normal file
|
@ -0,0 +1,7 @@
|
|||
#ifndef _ANALOGOUT_H_
|
||||
#define _ANALOGOUT_H_
|
||||
|
||||
void
|
||||
analogout_init(void);
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user