Tue Jul 16, 2013 11:10 am
As someone who has been awarded and successfully defended intellectual property under both copyright and patent law, here's what you may find useful (I'm being more pedestrian than the OP probably needs, but that's for others who may need more info).
Copyright can apply to the actual source code and any directly-derived executable code (assembly, binary object, interpreted or pre-compiled bytecode, etc.), but only for that portion that you have developed independent of other code protected by license. Patent protection can be available if the software is novel, non-obvious (U.S.) or involve an inventive step (Europe), and be useful (U.S.) or have potential for industrial application (Europe). Some argue that software can't be patented because it isn't a mechanism, but patent law specifically calls out both mechanisms and processes as being patentable. Obviously, obtaining both copyright and patent protection maximizes the ability to keep others from using your source code or assembly, object, byte code, etc., that results directly from processing the source code (via copyright) or even the algorithm, user experience behavior, data structures, etc., that form the processes that underlie the software (via patent).
If your software is a modification of open-source code, then you will have to make the modified source available. If your software only calls open-source software, then you don't need to disclose your source code, but will have to make the open-source software available. If a patent is granted, then your description of how the software works submitted with the patent application will be made public, including any source code if it's included in the patent application.
You won't be able to claim any copyrighted or patented technology contained in the Pi's hardware in your patent application, but you can use generic descriptions of features and components such as memory, processor registers, input-output interfaces, etc., in your diagrams and delineations of the process(es) being claimed. You want to avoid claiming anything specific to the Pi that's protected, and you would have to consult Broadcom's and component manufacturers' copyrights and patents to ensure non-infringement, a non-trivial pursuit.
The best things in life aren't things ... but, a Pi comes pretty darned close!

"Education is not the filling of a pail, but the lighting of a fire." -- W.B. Yeats
In theory, theory & practice are the same - in practice, they aren't!!!