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 |
Hi, 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. |
---|
Please log in to post a reply.
Did you know that LEDs (light emitting diodes) only conduct current in one direction, like normal diodes? Learn more...
|