moved USB directory

This commit is contained in:
true 2024-11-06 20:12:48 -08:00
parent 74961268f5
commit 2bee391469
6 changed files with 29 additions and 17 deletions

View File

@ -18,7 +18,7 @@
#include "usb_prop.h"
#include "usb_pwr.h"
#include "../../user/usb/cdc.h"
#include "periph/usb/cdc.h"

View File

@ -16,7 +16,7 @@
#include "usb_desc.h"
#include "usb_pwr.h"
#include "../../user/usb/cdc.h"
#include "periph/usb/cdc.h"

View File

@ -26,24 +26,24 @@
typedef enum _RESUME_STATE
{
RESUME_EXTERNAL,
RESUME_INTERNAL,
RESUME_LATER,
RESUME_WAIT,
RESUME_START,
RESUME_ON,
RESUME_OFF,
RESUME_ESOF
RESUME_EXTERNAL,
RESUME_INTERNAL,
RESUME_LATER,
RESUME_WAIT,
RESUME_START,
RESUME_ON,
RESUME_OFF,
RESUME_ESOF
} RESUME_STATE;
typedef enum _DEVICE_STATE
{
UNCONNECTED,
ATTACHED,
POWERED,
SUSPENDED,
ADDRESSED,
CONFIGURED
UNCONNECTED,
ATTACHED,
POWERED,
SUSPENDED,
ADDRESSED,
CONFIGURED
} DEVICE_STATE;

View File

@ -5,9 +5,21 @@
*
* version 0.0.1
*
*
* notes:
*
* - last 2K of flash memory is reserved for configuration storage
*
*
* project todo:
*
* - implement config storage
*
* - implement USB CDC commmand shell
*
* - when USB is not active, go into super low power state
* - light sensor is only checked once every two seconds or so
* - buttons are on wakeup
*/
#include <ch32v20x.h>
@ -19,7 +31,7 @@
#include "periph/rgbled.h"
#include "periph/rtc.h"
#include "usb/cdc.h"
#include "periph/usb/cdc.h"
#include "usb_lib.h"