consolidated build
This commit is contained in:
parent
fae72d2497
commit
08ff317b14
|
@ -1,4 +1,5 @@
|
|||
#include <inttypes.h>
|
||||
#include <avr/io.h>
|
||||
#include "bughal.h"
|
||||
|
||||
/* Hardware abstraction layer for Pentabug hardware */
|
||||
|
@ -21,15 +22,19 @@ void init_leds(void){
|
|||
// TIMSK2 |= (1<<OCIE2A);
|
||||
|
||||
|
||||
return;
|
||||
return;
|
||||
};
|
||||
|
||||
void init_buzzr(int mode);
|
||||
void init_buzzr(int mode){
|
||||
return;
|
||||
};
|
||||
|
||||
|
||||
void init_switch();
|
||||
void init_switch(){
|
||||
return;
|
||||
};
|
||||
|
||||
static void init_motor(void)
|
||||
void init_motor(void)
|
||||
{
|
||||
/* vibration motor on B1, initially off: */
|
||||
DDRB |= (1 << PORTB1);
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include "main.h"
|
||||
#include "lib/synth.h"
|
||||
#include "lib/usart.h"
|
||||
#include "lib/bughal.h"
|
||||
|
||||
|
||||
uint16_t sw_v = 0;
|
||||
|
@ -65,30 +66,21 @@ void __attribute__((noreturn))
|
|||
main(void)
|
||||
{
|
||||
/* hardware initialisation: */
|
||||
//init_leds();
|
||||
USART0_Init();
|
||||
init_leds();
|
||||
//USART0_Init();
|
||||
// init_motor();
|
||||
init_pwm();
|
||||
init_sampletimer();
|
||||
//init_pwm();
|
||||
//init_sampletimer();
|
||||
|
||||
/* syntesizer initialisation */
|
||||
synth_init();
|
||||
//synth_init();
|
||||
|
||||
/* here the show begins:*/
|
||||
sei();
|
||||
DDRC = 0b00000011;
|
||||
PORTC = 0b00000001;
|
||||
PORTC = 0b00000000;
|
||||
//sei();
|
||||
for(;;) /* ever */ {
|
||||
|
||||
//do something
|
||||
synth_poll();
|
||||
if (10 == 1){
|
||||
uint16_t out = darkval;
|
||||
USART0_put_uint16(out);
|
||||
USART0_crlf();
|
||||
//last_darkval=darkval;
|
||||
};
|
||||
//synth_poll();
|
||||
//USART0_put_uint16(0xA09F);
|
||||
//USART0_crlf();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user