house keeping
This commit is contained in:
@@ -66,4 +66,5 @@
|
||||
|
||||
#endif /* _TUSB_ARCH_H_ */
|
||||
|
||||
/** @{ */
|
||||
/** @} */
|
||||
|
||||
|
@@ -57,3 +57,6 @@
|
||||
#define DEVICE_ROMDRIVER
|
||||
|
||||
#endif /* _TUSB_ARCH_LPC134_X_H_ */
|
||||
|
||||
/** @} */
|
||||
|
||||
|
@@ -53,4 +53,4 @@
|
||||
#define ALIGNMENT (4)
|
||||
|
||||
#endif /* _TUSB_ARM_MX_H_ */
|
||||
/// @}
|
||||
/** @} */
|
||||
|
@@ -91,4 +91,4 @@
|
||||
|
||||
#endif /* _TUSB_COMMON_H_ */
|
||||
|
||||
/** @{ */
|
||||
/** @} */
|
||||
|
@@ -49,7 +49,7 @@
|
||||
#ifndef _TUSB_ERRORS_H_
|
||||
#define _TUSB_ERRORS_H_
|
||||
|
||||
/** \enum TUSB_Error
|
||||
/** \enum TUSB_Error_t
|
||||
* \brief Error Code returned
|
||||
*/
|
||||
|
||||
@@ -73,4 +73,4 @@ extern char const* const TUSB_ErrorStr[];
|
||||
|
||||
#endif /* _TUSB_ERRORS_H_ */
|
||||
|
||||
/** @{ */
|
||||
/** @} */
|
||||
|
@@ -41,8 +41,9 @@
|
||||
#include "descriptors.h"
|
||||
#include <cr_section_macros.h>
|
||||
|
||||
// TODO dcd abstract later
|
||||
#define USB_ROM_SIZE (1024*2)
|
||||
uint8_t usb_RomDriver_buffer[USB_ROM_SIZE] ATTR_ALIGNED(2048) __BSS(RAM2);
|
||||
uint8_t usb_RomDriver_buffer[USB_ROM_SIZE] ATTR_ALIGNED(2048) __DATA(RAM2);
|
||||
USBD_HANDLE_T g_hUsb;
|
||||
volatile static bool isConfigured = false;
|
||||
|
||||
|
@@ -41,6 +41,7 @@ TUSB_Error_t tusb_init(void)
|
||||
{
|
||||
/* HARDWARE INIT */
|
||||
|
||||
// TODO usb abstract later
|
||||
/* Enable AHB clock to the USB block and USB RAM. */
|
||||
LPC_SYSCON->SYSAHBCLKCTRL |= ((0x1<<14) | (0x1<<27));
|
||||
|
||||
|
Reference in New Issue
Block a user