unsigned int mthread::run() { if (!initinstance()) { exitinstance(); return 1; } mainfunction(); exitinstance(); return 0; }
void SigSlotBase::next() { int oldcur = _cur; _cur++; while(!_called && _cur < _items - 1) { Marshall::HandlerFn fn = getMarshallFn(type()); (*fn)(this); _cur++; } mainfunction(); _cur = oldcur; }
int main (void) { board_init(); DDRB = 0xFF; // Err DDRA = 0xFF; // Data PORTA = 0; PORTB = 0; USART_init(14400); TWI_master_initialize(TWI_COMMUNICATION_MODULE_ADDRESS); mainfunction(); /*while(1){ TWI_master_send_message(TWI_CONTROL_MODULE_ADDRESS , 0 , 0); _delay_ms(250); TWI_master_send_message(TWI_CONTROL_MODULE_ADDRESS , 0 , 6); _delay_ms(250); USART_transmit(0x01, 0x02); }*/ }