multi-files project with threads [Arduino]

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
Porcinet
Posts: 1
Joined: Mon Dec 22, 2014 11:48 pm

multi-files project with threads [Arduino]

Post by Porcinet »

Hi all,

Im interrested by someone who already did project with more than 1 file (.cpp) on arduino with ChibiOS.

My problem is that i cant share data between 2 threads on different file (extern doesnt change anything).
Compiler error : dataX undeclared on fileX ...
It works well with 1 file.

(sorry for my english)
Thanks !
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: multi-files project with threads [Arduino]

Post by Giovanni »

This is not related to ChibiOS, probably your extern declarations are not placed appropriately and the compiler does not see them where the data is accessed.

Giovanni
Post Reply