In the summer semester 2004 I developed at the institute for pervasive computing of the ETH a bluetooth stack for the BTnode infrastructure. Without the help of Matthias Ringwald I could not have done it.
The target of this semester thesis was to develop a modular Bluetooth stack for BTnodes. BTnodes are microcontrollers with very low computing power and memory and have a Bluetooth controller attached.
The main target of the stack is to ensure communication between different BTnodes. This leads to the implementation of some specific layers of the Bluetooth specification.
So the stack was implemented with BTnode constraints in mind, like speed and memory usage. The main differences to the old implementation are that this new stack uses threads, has a modular design and uses a sequential programming schema.
You can find more information about the BTnodes on their homepage (http://www.btnode.ethz.ch). My thesis is available here.