Menu

#613 nilrtos: OSAL_ST_MODE not defined

3.0.0
closed
None
Low
3.0.0p6
True
2015-07-12
2015-07-10
Franz
No

Hi!

Another compile issue with the AVR port of nilrtos:

In file included from omm_workdir/mini_wi/atmega168/package/chibi_os_nil/ChibiOS-master/os/hal/ports/AVR/st_lld.h:31:0,
from omm_workdir/mini_wi/atmega168/package/chibi_os_nil/ChibiOS-master/os/hal/include/st.h:46,
from omm_workdir/mini_wi/atmega168/package/chibi_os_nil/ChibiOS-master/os/nil/ports/AVR/nilcore_timer.h:32,
from omm_workdir/mini_wi/atmega168/package/chibi_os_nil/ChibiOS-master/os/nil/ports/AVR/nilcore.h:408,
from omm_workdir/mini_wi/atmega168/package/chibi_os_nil/ChibiOS-master/os/nil/include/nil.h:41,
from omm_workdir/mini_wi/atmega168/package/mini_wi/src/main.c:12:
omm_workdir/mini_wi/atmega168/package/chibi_os_nil/ChibiOS-master/os/hal/ports/AVR/avr_timers.h: At top level:
omm_workdir/mini_wi/atmega168/package/chibi_os_nil/ChibiOS-master/os/hal/ports/AVR/avr_timers.h:22:7: warning: "OSAL_ST_MODE" is not defined
omm_workdir/mini_wi/atmega168/package/chibi_os_nil/ChibiOS-master/os/hal/ports/AVR/avr_timers.h:22:23: warning: "OSAL_ST_MODE_FREERUNNING" is not defined

I must admit that I am not sure on this one, maybe something is wrong with my project define settings. However these defines are set in osal.h. It seems to me that there are some serious dependency issues with the headers in nilrtos.

It is working though, however I prefer projects with 0 warnings :)

Could someone have a look on this?

Thanks, regards,
Franz

Discussion

  • Giovanni Di Sirio

    • assigned_to: Fabio Utzig
     
  • Giovanni Di Sirio

    Please also post in the AVR forum, this is something tha Fabio should look into.

     
  • Fabio Utzig

    Fabio Utzig - 2015-07-11

    I can reproduce it and should fix it by the weekend.

     
  • Fabio Utzig

    Fabio Utzig - 2015-07-11

    It should be fixed now. Please try and report back!

    Cheers,
    Fabio Utzig

     
  • Franz

    Franz - 2015-07-11

    Hi Fabio!

    Great, all warnings are gone now!

    Thanks,
    Franz

     
  • Giovanni Di Sirio

    • Fixed in Repository: False --> True
     
  • Giovanni Di Sirio

    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB