25
25
26
26
#define MAX_MODULES 6
27
27
28
- static u8 lastIf = CDC_ACM_INTERFACE + CDC_INTERFACE_COUNT;
29
- static u8 lastEp = CDC_FIRST_ENDPOINT + CDC_ENPOINT_COUNT;
28
+ static uint8_t lastIf = CDC_ACM_INTERFACE + CDC_INTERFACE_COUNT;
29
+ static uint8_t lastEp = CDC_FIRST_ENDPOINT + CDC_ENPOINT_COUNT;
30
30
31
- extern u8 _initEndpoints[];
31
+ extern uint8_t _initEndpoints[];
32
32
33
33
// PUSBCallbacks cbs[MAX_MODULES];
34
- static u8 modules_count = 0 ;
34
+ static uint8_t modules_count = 0 ;
35
35
36
36
static PUSBListNode* rootNode = NULL ;
37
37
38
- int PluggableUSB_::getInterface (u8 * interfaceNum)
38
+ int PluggableUSB_::getInterface (uint8_t * interfaceNum)
39
39
{
40
40
int ret = 0 ;
41
41
PUSBListNode* node = rootNode;
42
- for (u8 i=0 ; i<modules_count; i++) {
42
+ for (uint8_t i=0 ; i<modules_count; i++) {
43
43
ret = node->getInterface (interfaceNum);
44
44
node = node->next ;
45
45
}
@@ -50,18 +50,18 @@ int PluggableUSB_::getDescriptor(int8_t t)
50
50
{
51
51
int ret = 0 ;
52
52
PUSBListNode* node = rootNode;
53
- for (u8 i=0 ; i<modules_count && ret == 0 ; i++) {
53
+ for (uint8_t i=0 ; i<modules_count && ret == 0 ; i++) {
54
54
ret = node->getDescriptor (t);
55
55
node = node->next ;
56
56
}
57
57
return ret;
58
58
}
59
59
60
- bool PluggableUSB_::setup (USBSetup& setup, u8 j)
60
+ bool PluggableUSB_::setup (USBSetup& setup, uint8_t j)
61
61
{
62
62
bool ret = false ;
63
63
PUSBListNode* node = rootNode;
64
- for (u8 i=0 ; i<modules_count && ret == false ; i++) {
64
+ for (uint8_t i=0 ; i<modules_count && ret == false ; i++) {
65
65
ret = node->setup (setup, j);
66
66
node = node->next ;
67
67
}
0 commit comments