[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

[maki@niconii]$ avr-gcc -Os -DF_CPU=16000000UL -mmcu=atmega328p

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 14
Thread images: 7

File: maki is cute 1007.png (582KB, 518x602px) Image search: [Google]
maki is cute 1007.png
582KB, 518x602px
[maki@niconii]$ avr-gcc -Os -DF_CPU=16000000UL -mmcu=atmega328p -c -o switch.o switch.c

switch.c: In function 'main':
switch.c:18:2: error: 'GICR' undeclared (first use in this function)
GICR = 1<<INT0;
^~~~
switch.c:18:2: note: each undeclared identifier is reported only once for each function it appears in
>>
File: maki is cute 568.jpg (164KB, 1200x1600px) Image search: [Google]
maki is cute 568.jpg
164KB, 1200x1600px
#include <avr/io.h>
#include <avr/interrupt.h>

switch.c:18:2: error: 'GICR' undeclared (first use in this function)
>>
File: maki is cute 505.png (185KB, 600x747px) Image search: [Google]
maki is cute 505.png
185KB, 600x747px
seriously what the HECK
>>
File: maki is cute 854.jpg (1MB, 2000x1750px) Image search: [Google]
maki is cute 854.jpg
1MB, 2000x1750px
>>
File: maki is cute 426.jpe.jpg (516KB, 800x454px) Image search: [Google]
maki is cute 426.jpe.jpg
516KB, 800x454px
>>
File: maki is cute 408.jpg (495KB, 618x819px) Image search: [Google]
maki is cute 408.jpg
495KB, 618x819px
>>
CC := avr-gcc
CXX := avr-g++

MCU := atmega328p

INCLUDES += -I/usr/share/arduino/hardware/arduino/cores/arduino/ -I/usr/share/arduino/hardware/arduino/variants/standard/
DEFS += -D__AVR_ATmega328P__ -D__ATTR_PROGMEM__=__attribute__\(\(__progmem__\)\) -DPROGMEM=__ATTR_PROGMEM__
CCFLAGS += $(INCLUDES) -mmcu=$(MCU) $(DEFS)


You're missing includes and some defs.
>>
well thanks for your help but i can't get it to work so im giving up forever
>>
>>59253541
grep -Rn GICR .
>>
>>59252845
unsigned int GICR;
>>
>>59252845
Is there any IRL Maki?
>>
>>59253579
don't think i want to do that, since i'm trying to read from the General Interrupt Control Register
>>59253594
I'm Maki irl and i can't figure out how to use interrupts on this avr!
>>
File: maki is cute 844.png (275KB, 700x569px) Image search: [Google]
maki is cute 844.png
275KB, 700x569px
self portrait of me getting my arduino in the mail, unaware that i wouldn't be able to figure out interrupts
>>
>>59253724
keep posting maki
Thread posts: 14
Thread images: 7


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.