#avr | Logs for 2014-04-21

Back
[13:50:39] <volbus> hi everybody! Has anyone experience with avr-gcc?
[13:50:57] <LoRez> yes, many people
[13:52:51] <volbus> good, thing is, I'm trying to write the uC programming in assembler, and the computer-progr. in C for a project, and I would need to have only one file with the definitions
[13:53:44] <volbus> but the problem is, in C the directive is #define, and in ass is .equ
[13:54:14] <LoRez> that doesn't sound like an avr-gcc problem.
[13:55:05] <volbus> yeah, but I thought there is a way to assambe the project with this file, with "#define"-s
[13:55:38] <volbus> are there any options to pass, so that it would work?
[13:55:44] <LoRez> sure, you create a third file that has your definitions and create the other two files from that
[13:56:38] <volbus> I'm just starting the project, and there will be much changing, so it would be good to do it only in one place
[13:58:03] <volbus> there are really many constants, and they need to match on both sides: uC and PC; it's about communication
[14:04:15] <LoRez> when I say "create the other two files from that", I mean progmatically
[14:04:49] <volbus> aha, so I already have the 3rd file with the def-s
[14:06:37] <volbus> ok, so no easy dirty way, huh? Like assembler-linker options to just recognize that?
[14:09:54] <LoRez> that's what gnu make is for.
[14:10:09] <LoRez> there's probably some weird autotools way to handle that too
[14:11:46] <volbus> uff, ok LoRez, thanks anyway!
[19:03:32] <anton02_> do you think toothpicks would make for some good IR encoder teeth if i stick them out the side of a wheel in a circular pattern and paint them with black acrylic? Im thinking either that or some shaving blades. Wheel is made of balsa wood.
[19:14:44] <Tom_itx> no
[19:15:11] <Tom_itx> unless you make sure the paint is "IR" sensitive
[19:16:42] <anton02_> apparently black acylic absorbs it
[19:17:29] <anton02_> also, im pretty sure metal blades wouldnt allow IR to pass either
[19:25:15] <Lambda_Aurigae> they would work for IR interrupter, yes.
[19:27:46] <anton02_> s
[19:58:09] <Tom_itx> i used aluminum tape once and it worked fine
[22:13:22] <anton02_> can IR interrupters detect pins
[22:16:00] <learath> "pins"?
[22:16:38] <anton02_> the width of something as small as that
[22:17:18] <anton02_> or something a bit larger like an unfolded paperclip
[22:43:52] <Casper> depend on the appearture size of the detector