starting the driver for the charge pump
This commit is contained in:
parent
8506b6ad39
commit
b47b3e5915
8
main.c
8
main.c
|
@ -2,6 +2,7 @@
|
|||
#include "usart.h"
|
||||
#include "analogin.h"
|
||||
#include "configuration.h"
|
||||
#include "analogout.h"
|
||||
#include <util/delay.h>
|
||||
#include <stdlib.h>
|
||||
#include <avr/io.h>
|
||||
|
@ -17,7 +18,6 @@ on_channel_measured(unsigned char channel
|
|||
measurement_complete = 1;
|
||||
channel_measured = channel;
|
||||
value_measured = value;
|
||||
PORTB ^= _BV(PB2);
|
||||
}
|
||||
|
||||
|
||||
|
@ -30,9 +30,7 @@ int main(void)
|
|||
time_init();
|
||||
usart_init();
|
||||
analogin_init();
|
||||
|
||||
DDRB |= _BV(PB1);
|
||||
DDRB |= _BV(PB2);
|
||||
analogout_init();
|
||||
|
||||
while(1)
|
||||
{
|
||||
|
@ -75,8 +73,6 @@ int main(void)
|
|||
{
|
||||
usart_putc('\n');
|
||||
}
|
||||
PORTB ^= _BV(PB1);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user