void init(void) { DDRD = 0xFF; PORTD = 0x00; tctr0_init(); pwm2_init(); return; }
void init() { #if 0 tft::init(); tftout = tft::devout(); #endif #if 1 uart0_init(); stdout = uart0_fd(); stdin = uart0_fd(); #endif _delay_ms(1000); rfm12_init(); _delay_ms(1000); sei(); sampler_init(); pwm2_init(); sampler_enable(1); pwm2_enable(1); }