Initial version of CCTL, 1KB serial bootloader for CC1110/CC1111

This commit is contained in:
Joby Taffey committed 2012-03-07 17:08:43 +00:00
commit 11cfdfdcdc
13 files changed
+2950

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
#include "cc1110.h"
#define nop() __asm nop __endasm;
void delay (unsigned char n)
{
unsigned char i = 0;
unsigned char j = 0;
n <<= 1;
while (--n != 0)
while (--i != 0)
while (--j != 0)
nop();
}
void main(void)
{
// toggle P2_3
P2DIR |= (1<<3);
P2_3 = 0;
while (1)
{
P2_3 ^= 1;
delay(3);
}
}