The Microsoft CE Base Team has posted a Board Support Package (BSP) template on their blog here. While it’s clearly a work in progress, its great documentation on what entry points are both required and optional in a Windows CE BSP. Check it out, if only to browse the code.