overriding serial port default
The cpu/mcf52x2/serial.c code seems to hard code the serial port that the device uses.
What's the cleanest way to override this in a board specific file?
thx,
NZG.
Quoted 3 lines · In message <[email protected]> you wrote:
The
cpu/mcf52x2/serial.ccode seems to hard code the serial port that the device uses.
What's the cleanest way to override this in a board specific file?
Use a #define in the board config file, and a #indef in the original driver to select a default if no specific define was present in the board config file.
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de You have the capacity to learn from mistakes. You'll learn a lot today.