Re: Project: Teacup Firmware March 09, 2011 02:44PM |
Registered: 16 years ago Posts: 478 |
Re: Project: Teacup Firmware March 09, 2011 02:52PM |
Registered: 13 years ago Posts: 155 |
Re: Project: Teacup Firmware March 09, 2011 03:07PM |
Registered: 13 years ago Posts: 14 |
Re: Project: Teacup Firmware March 09, 2011 03:16PM |
Registered: 16 years ago Posts: 478 |
Re: Project: Teacup Firmware March 09, 2011 09:00PM |
Registered: 13 years ago Posts: 155 |
Re: Project: Teacup Firmware March 11, 2011 11:44AM |
Registered: 15 years ago Posts: 248 |
void serwrite_hex16(uint16_t v) { serwrite_hex8(v >> 8); serwrite_hex8(v & 0xFF); } void serwrite_hex32(uint32_t v) { serwrite_hex8(v >> 16); serwrite_hex8(v & 0xFFFF); }
void serwrite_hex16(uint16_t v) { serwrite_hex8(((uint8_t) v >> 8)); serwrite_hex8(((uint8_t) v & 0xFF)); } void serwrite_hex32(uint32_t v) { serwrite_hex16(((uint16_t) v >> 16)); serwrite_hex16(((uint16_t) v & 0xFFFF)); }
Re: Project: Teacup Firmware March 11, 2011 12:15PM |
Admin Registered: 17 years ago Posts: 7,881 |
void serwrite_hex16(uint16_t v) { serwrite_hex8((uint8_t) (v >> 8)); serwrite_hex8((uint8_t) v); } void serwrite_hex32(uint32_t v) { serwrite_hex16((uint16_t) (v >> 16)); serwrite_hex16((uint16_t) v)); }
Re: Project: Teacup Firmware March 11, 2011 04:43PM |
Registered: 14 years ago Posts: 7,616 |
serwrite_hex8((uint8_t)v);
serwrite_hex8(v);
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: Teacup Firmware March 11, 2011 04:58PM |
Registered: 17 years ago Posts: 1,094 |
Re: Project: Teacup Firmware March 11, 2011 06:22PM |
Admin Registered: 17 years ago Posts: 7,881 |
Re: Project: Teacup Firmware March 12, 2011 10:50AM |
Registered: 13 years ago Posts: 155 |
Re: Project: Teacup Firmware March 12, 2011 12:12PM |
Registered: 13 years ago Posts: 155 |
DEFINE_HEATER(extruder, PORTE, PINE4, OCR3B ) ; ( not sure if the Timer should be OCR3BL or OCR3B )
#ifdef TCCR3A TCCR3A = MASK(WGM30); TCCR3B = MASK(WGM32) | MASK(CS30); TIMSK3 = 0; OCR3A = 0; OCR3B = 0;
Re: Project: Teacup Firmware March 12, 2011 07:49PM |
Registered: 17 years ago Posts: 1,094 |
Re: Project: Teacup Firmware March 12, 2011 08:00PM |
Registered: 13 years ago Posts: 155 |
Re: Project: Teacup Firmware March 14, 2011 10:15AM |
Registered: 13 years ago Posts: 155 |
Re: Project: Teacup Firmware March 14, 2011 11:00AM |
Registered: 17 years ago Posts: 900 |
Re: Project: Teacup Firmware March 14, 2011 11:05AM |
Registered: 13 years ago Posts: 155 |
Re: Project: Teacup Firmware March 14, 2011 11:54AM |
Registered: 17 years ago Posts: 900 |
Re: Project: Teacup Firmware March 14, 2011 12:03PM |
Registered: 13 years ago Posts: 155 |
Re: Project: Teacup Firmware March 14, 2011 12:12PM |
Registered: 17 years ago Posts: 900 |
Re: Project: Teacup Firmware March 14, 2011 02:43PM |
Registered: 17 years ago Posts: 900 |
Re: Project: Teacup Firmware March 14, 2011 02:50PM |
Registered: 17 years ago Posts: 900 |
Re: Project: Teacup Firmware March 14, 2011 02:53PM |
Registered: 14 years ago Posts: 7,616 |
Quote
I am not convinced about RepG24
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: Teacup Firmware March 14, 2011 03:49PM |
Registered: 13 years ago Posts: 155 |
Re: Project: Teacup Firmware March 14, 2011 07:02PM |
Registered: 17 years ago Posts: 900 |
Re: Project: Teacup Firmware March 15, 2011 04:38AM |
Registered: 17 years ago Posts: 74 |
Re: Project: Teacup Firmware March 15, 2011 04:50AM |
Re: Project: Teacup Firmware March 15, 2011 07:16AM |
Registered: 13 years ago Posts: 155 |
Re: Project: Teacup Firmware March 15, 2011 10:17AM |
Registered: 15 years ago Posts: 248 |
> void serwrite_hex16(uint16_t v) > { > serwrite_hex8((uint8_t) (v >> 8)); > serwrite_hex8((uint8_t) v); > } > > void serwrite_hex32(uint32_t v) > { > serwrite_hex16((uint16_t) (v >> 16)); > serwrite_hex16((uint16_t) v)); > } >
void serwrite_hex16(uint16_t v) { serwrite_hex8((uint8_t) ((v >> 8) & 0xFF)); serwrite_hex8(((uint8_t) (v & 0xFF)); } void serwrite_hex32(uint32_t v) { serwrite_hex16((uint16_t) ((v >> 16) & 0xFFFF)); serwrite_hex16((uint16_t) (v & 0xFFFF)); }
Re: Project: Teacup Firmware March 15, 2011 11:26AM |
Registered: 14 years ago Posts: 7,616 |
Quote
The parameter name length will have no impact on the size of the binary, and a few bytes of text added to the code file size isn't really significant.
Generation 7 Electronics | Teacup Firmware | RepRap DIY |