Post Created date
sending twos complement to a unsigned char.
Stuff the data in an int8_t, shift it left by one bit, and then divide by two. Or just copy the seventh bit to the eighth bit. Either method will give you a signed 8-bit value in...
Saturday, 20 June 2015 - 03:45
Have the progmem and 64kb ptr problems been fixed or shall I stay with BASCOM?
Foxcat385 wrote: Name one Linux phone that's not Android, but that's open source for GPL-less forking. Linux running underneath Android is still subject to the GPL. Android is...
Tuesday, 19 May 2015 - 23:50
avr-gcc never exits any functions
From your Makefile: CFLAGS += -mmcu=$(MCUARCH) -mmcu=$(MCU) -Os -Wall -std=gnu99Why do you specify -mmcu= twice with different values? I suspect that might cause gcc to build for...
Sunday, 10 May 2015 - 18:37
Have the progmem and 64kb ptr problems been fixed or shall I stay with BASCOM?
Foxcat385 wrote: I downloaded LunaAVR. I don't know will it count as commercial use if my software is free and open source, but running on my hardware and PCB which I will make...
Friday, 8 May 2015 - 03:12
uint8_t indexing in 256b ring buffer. What are disadvantages to using int overflow?
clawson wrote: idx = ++idx & 0x0F; This statement has undefined behavior.
Thursday, 7 May 2015 - 14:05
Suppress warning : Warning 5 initialization discards 'const' qualifier from pointer target type [enabled by default] ct3A
Wouldn't it be better to fix the code so that it doesn't discard the const qualifier in the first place? If the code actually does legitimately discard the const qualifier (I can...
Wednesday, 29 April 2015 - 20:16
Error 1, please explane
  Is that the AVR Plugin for Eclipse? It looks like a known issue: #65 Build fails if project name include a space.
Sunday, 26 April 2015 - 23:33
Trouble detecting End of Line using SoftwareSerial on ATTiny85
ThomasTesla wrote: From http://www.arduino.cc/en/Reference/SoftwareSerial "This hardware allows the Atmega chip to receive serial communication even while working on other tasks,...
Wednesday, 22 April 2015 - 16:40
porting from AVR Gcc compiler to IAR compiler
inigo77 wrote: myprintf_P(str,...) {static const __farflash char string[] = str; printf_P(string,##__VA_ARGS__:)} The ## preprocessor operator is used to join two tokens into...
Wednesday, 22 April 2015 - 15:03
Compiler bug!
I suppose a system with UCHAR_MAX == 666 would give a result of 112: 3447 % 667 == 112  
Thursday, 16 April 2015 - 20:27
GCC vs ASM code size - Help me close the gap
I copied your latest code to a standalone C source file (with a few missing definitions added to make it compile). That code is at http://pastebin.com/DKin9rVS.   Try as I...
Thursday, 16 April 2015 - 16:40
Multi threading and timers in ATmega128
I see a few issues with your new code: TASK_NUM can go up to 3, but the TASK_DURATION array goes up to index 2. Index 3 doesn't exist in that array. I would renumber TASK_NUM so...
Thursday, 16 April 2015 - 15:12

Pages