UART Setup in Raspberry Pi Bare Bones
Posted: Sun Aug 16, 2015 1:54 pm
Hi everyone. I've been reading the C bare bones tutorial for raspberry pi and am a little unclear on the setup of UART. I started reading through the Broadcom peripherals documentation to understand what was going on with the pull-up/pull-down setting, which now makes sense to me. However, while I was reading the documentation I see that the GPIO pins can be configured to different alternate functions (including UART). The tutorial does not set any of the function select registers, but the description of these functions as "alternates" makes it sound like they are not enabled by default. Does the bootloader set these in this tutorial, or are the ALT0 functions set by default? I just want to know if there is any good reason to configure these registers on initialization. Thanks.