NerdKits - electronics education for a digital generation

You are not logged in. [log in]

NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.

Microcontroller Programming » fdevopen vs. FDEV_SETUP_STREAM

April 17, 2011
by caballeroroberto
caballeroroberto's Avatar


I noticed you use two different functions to do the same thing. fdevopen is used in the uart.c file under the uart_init() function and FDEV_SETUP_STREAM is used in the tempsensor.c file under main(). I think one requires malloc() and the other doesn't. Could you explain why you are using 2 methods?

I appreciate your help.

Post a Reply

Please log in to post a reply.

Did you know that a flyback diode is important when driving a motor or any inductive load? Learn more...