-
Notifications
You must be signed in to change notification settings - Fork 0
/
MassStorage.c
37 lines (29 loc) · 1.23 KB
/
MassStorage.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*------------------------------------------------------------------------------
* MDK Middleware - Component ::USB:Device
* Copyright (c) 2004-2018 ARM Germany GmbH. All rights reserved.
*------------------------------------------------------------------------------
* Name: MassStorage.c
* Purpose: USB Device - Mass Storage example
*----------------------------------------------------------------------------*/
#include "main.h"
#include "rl_usb.h" /* RL-USB function prototypes */
#include "Driver_CAN.h"
#include "RTE_Components.h"
#include "queue.h"
#include <stdio.h>
#include <stdlib.h>
#ifdef RTE_Compiler_EventRecorder
#include "EventRecorder.h"
#endif
/*------------------------------------------------------------------------------
* Application
*----------------------------------------------------------------------------*/
__NO_RETURN void app_main (void *arg) {
(void)arg;
#ifdef RTE_Compiler_EventRecorder
EventRecorderInitialize(0, 1);
EventRecorderEnable (EventRecordError, 0xA0U, 0xA6U); /* USBD Error Events */
EventRecorderEnable (EventRecordAll , 0xA0U, 0xA0U); /* Core Events */
EventRecorderEnable (EventRecordAll , 0xA6U, 0xA6U); /* MasStorage Events */
#endif
}