Post Created date
Declare Static Variables of type PORT_t and TWI_t
I am happy to report that I have gotten the code working with defines by using volatile when passing the port.   I don't want to post 200+ lines of code here so I'll just...
Tuesday, 3 December 2019 - 09:56
Defined Value Changing
I am happy to report that I have gotten the code working with defines by using volatile when passing the port.   I don't want to post 200+ lines of code here so I'll just...
Tuesday, 3 December 2019 - 09:56
Declare Static Variables of type PORT_t and TWI_t
The buffer overrun that was pointed out in that thread didn't do anything. I removed it from the code entirely and also fixed the cause of that particular overrun and I was still...
Tuesday, 3 December 2019 - 03:58
Declare Static Variables of type PORT_t and TWI_t
#define MPU_PORT &PORTC #define MPU_TWI &TWIC   These were the defines I was using but the code would get stuck at the while loop of the code of post #5: while( !(...
Monday, 2 December 2019 - 20:25
Declare Static Variables of type PORT_t and TWI_t
awneil wrote: Astray wrote:see topic about define values changing It's a lot easier if you just give a link!   You mean this:  https://www.avrfreaks.net/forum/defined-...
Monday, 2 December 2019 - 13:19
Defined Value Changing
Because the function it's from isn't called at all in that current version of the code before it breaks.
Thursday, 21 November 2019 - 23:08
Defined Value Changing
Definitely unrelated but thanks for the catch!
Thursday, 21 November 2019 - 19:59
Defined Value Changing
Why would the address of TWIE change when it's a hardware constant? It's the address of the TWI on Port E as defined by device type (128A1U).
Thursday, 21 November 2019 - 17:46
snprintf() and double
I was always taught that globals were to be frowned upon in programming, but I guess that might not be the case with embedded solutions like an xmega. Is there a rule of thumb...
Thursday, 21 November 2019 - 12:59
snprintf() and double
So after reading through I decided to change my approach and used VLA. In order to do so it didn't make any sense to keep the Convert functions so I inlined them. Here is the...
Wednesday, 20 November 2019 - 13:03
snprintf() and double
MrKendo wrote: Astray wrote: void XBeeSendInt(int16_t number) { char* str = ConvertIntToStr(number); while(*str) { XBeeSendChar(*str++); } free(str); } I just spotted. str...
Thursday, 14 November 2019 - 09:39
snprintf() and double
MrKendo wrote: Astray wrote: void XBeeSendInt(int16_t number) { char* str = ConvertIntToStr(number); while(*str) { XBeeSendChar(*str++); } free(str); } I just spotted....
Wednesday, 13 November 2019 - 19:16

Pages