hi
i try to write to avr serial port using writeln, but it dont work.
in fpc documentation say about write funciton, if it used without specify output file, then stdout will be used.
I think stdout, in avr embedded, must be....serial port!, but dont work.
i can compile, have no errors!
¿whats wrong?
s:= 'Hello World';
Write(s);
and assembles was:
# CPU AVR5
# [260] s:= 'Hello World';
ldi r24,lo8(U_sPsENCODER_ss_S)
ldi r25,hi8(U_sPsENCODER_ss_S)
ldi r20,lo8(_sENCODERs_Ld2)
ldi r21,hi8(_sENCODERs_Ld2)
ldi r22,-1
mov r23,r1
call fpc_shortstr_to_shortstr
# [261] Write( s);
call fpc_get_output
movw r2,r24
ldi r18,lo8(U_sPsENCODER_ss_S)
ldi r19,hi8(U_sPsENCODER_ss_S)
movw r20,r2
mov r22,r1
mov r23,r1
mov r24,r1
mov r25,r1
call fpc_write_text_shortstr
call fpc_iocheck
movw r24,r2
call fpc_write_end
call fpc_iocheck
who konws !!!
where can i found documentation specific about avr embedded?
thanks