code for cc2538

lots of changes. just saving