There is a config file called led.c in the atmel softpack source code which provides routines for configuring, setting and clearing the LEDs.