Traumflug / Teacup_Firmware

Firmware for RepRap and other 3D printers
http://forums.reprap.org/read.php?147
GNU General Public License v2.0
312 stars 199 forks source link

ARM port to Arduino Due #182

Open Wurstnase opened 9 years ago

Wurstnase commented 9 years ago

Hi @Traumflug

first commit works and upload also. Just tried to upload it as a new branch, but I don't have write access.

Wurstnase commented 9 years ago

hex32 is for uint32s and pointers, not uint8s

Right. My first idea was to bitshift and mask the uint_32 (32bit registers) to 2 uint_8 and send them with writechar().

sersendf() works similar to printf(), with formatting string and such stuff. uint8_t would be "%su", then. Formatting is described in the source code file.

Ok, I will test this also. With "%su" i will see an unsigned integer (base 10)?

Traumflug commented 9 years ago

With "%su" i will see an unsigned integer (base 10)?

Yes. There's also "%sx" for hex values.

Wurstnase commented 9 years ago

Works geat :+1: