Hi Matt,

On May 8, 2:05 pm, mattschinkel <[email protected]> wrote:
> I did this testing yesterday, with the most recent exe file.
>

That is odd.  Here's an example output from the avrdemo directory,
that I ran today:


=================

//JAT V0.1 - Just Another Translator (Jal -> C code converter)


//----- JAT code start
--------------------------------------------------------
#include <stdio.h>
#include <stdint.h>

#include "jaltarget.h"


#include <avr/io.h>

#define F_CPU 16000000

// Some macros that make the code more readable
#define output_low(port,pin) port &= ~(1<<pin)
#define output_high(port,pin) port |= (1<<pin)
#define set_input(portdir,pin) portdir &= ~(1<<pin)
#define set_output(portdir,pin) portdir |= (1<<pin)

void delay_ms( uint8_t ms) {
   static void *this_function = delay_ms;

   uint16_t delay_count = F_CPU / 17500;
   volatile uint16_t i;

   while (ms != 0) {
   for (i=0; i != delay_count; i++);
   ms--;
   }
}

uint8_t LED = 5;

int main(int argc, char **argv) {

   set_output(DDRB,LED);
   for (;;) {
      output_high(PORTB,LED);
      delay_ms(200);
      output_low(PORTB,LED);
      delay_ms(200);
   }

}
//----- JAT code end
----------------------------------------------------------

William

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to