modified the CC2540 Driver