FemtoOS port question ?

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Guys,

 

I'm learning about FemtoOS, and wondering where is the Port for LED located ? Is it PORTD ? which file is defining it ?

 

I read :

.....

void appBoot(void)
{ devLedDRR  |= 0xFF;

}

 

I can see it in PORTB....but I don't know yet where to altrenate it ??

 

void appBoot(void)
{ devLedDRR  |= 0xFF;
 3b6:    84 b1           in    r24, 0x04    ; 4
 3b8:    8f ef           ldi    r24, 0xFF    ; 255
 3ba:    84 b9           out    0x04, r24    ; 4
  DDRD = 0xFF;
 3bc:    8a b9           out    0x0a, r24    ; 10
  DDRB = 0xFF;
 3be:    84 b9           out    0x04, r24    ; 4
 3c0:    08 95           ret

I got it at femtos_atmega88.asm....on atmel studio 6.1 how can I change that file into femtos_atmega128.asm ?

#define devLedPORT        PORTB

 

thanks

Last Edited: Sun. Apr 24, 2016 - 01:32 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
FemtoOS$ grep -C3 "define devLedPORT" MainCode/femtoos_devices/femtoos_ATmega128.asm 
#define devTraceComDRR    DDRC
#define devErrorComPORT   PORTB
#define devErrorComDDR    DDRB
#define devLedPORT        PORTB
#define devLedPIN         PINB
#define devLedDRR         DDRB
#define devSwitchPORT     PORTD

 

ɴᴇᴛɪᴢᴇᴎ

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

@netizen...thanks for the reply, you're using linux, aren't you ?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You're welcome. Yes I am. :-)

ɴᴇᴛɪᴢᴇᴎ