change at86rf to 1ghznode

rom device runs ok with lpc11uxx
This commit is contained in:
hathach
2013-05-31 13:57:57 +07:00
parent 04a641f067
commit 3b9a616ca9
14 changed files with 654 additions and 1777 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -23,7 +23,7 @@ int main(void)
board_init();
tusb_init();
print_greeting();
//print_greeting();
while (1)
{
if (current_tick + 1000 < system_ticks)
@@ -38,8 +38,13 @@ int main(void)
if (usb_isConfigured())
{
#if TUSB_CFG_DEVICE_HID_KEYBOARD
static uint32_t count =0;
if (count < 4)
{
uint8_t keys[6] = {0x04}; // A character
tusbd_hid_keyboard_send_report(0x00, keys, 1);
count++;
}
#endif
#if TUSB_CFG_DEVICE_HID_MOUSE

View File

@@ -102,7 +102,7 @@
#ifdef __CODE_RED // make use of code red's support for ram region macros
#if (MCU == MCU_LPC11UXX) || (MCU == MCU_LPC13UXX)
#define TUSB_RAM_SECTION ".data.$RAM1"
#define TUSB_RAM_SECTION ".data.$RAM1" // TODO overflow usb ram
#elif (MCU == MCU_LPC43XX)
#define TUSB_RAM_SECTION ".data.$RAM3"
#endif

View File

@@ -297,7 +297,7 @@ const app_descriptor_configuration_t app_desc_configuration =
{
.bLength = sizeof(tusb_descriptor_endpoint_t),
.bDescriptorType = TUSB_DESC_TYPE_ENDPOINT,
.bEndpointAddress = 0x81,
.bEndpointAddress = 0x81, //HID_KEYBOARD_EP_IN,
.bmAttributes = { .xfer = TUSB_XFER_INTERRUPT },
.wMaxPacketSize = { .size = 0x08 },
.bInterval = 0x0A
@@ -376,8 +376,6 @@ const app_descriptor_configuration_t app_desc_configuration =
.bInterval = 1
},
#endif
.null_termination = 0,
};
TUSB_CFG_ATTR_USBRAM ATTR_ALIGNED(4)