Move some stuff around so that it compiles with gcc.
This commit is contained in:
parent
8b5aa23605
commit
abcd172c83
|
@ -210,7 +210,39 @@ struct WifiComInterface
|
|||
void (*usTrigger)();
|
||||
};
|
||||
|
||||
WifiComInterface* wifiComs[];
|
||||
bool SoftAP_Init();
|
||||
void SoftAP_DeInit();
|
||||
void SoftAP_Reset();
|
||||
void SoftAP_SendPacket(u8 *packet, u32 len);
|
||||
void SoftAP_usTrigger();
|
||||
|
||||
WifiComInterface SoftAP = {
|
||||
SoftAP_Init,
|
||||
SoftAP_DeInit,
|
||||
SoftAP_Reset,
|
||||
SoftAP_SendPacket,
|
||||
SoftAP_usTrigger
|
||||
};
|
||||
|
||||
bool Adhoc_Init();
|
||||
void Adhoc_DeInit();
|
||||
void Adhoc_Reset();
|
||||
void Adhoc_SendPacket(u8* packet, u32 len);
|
||||
void Adhoc_usTrigger();
|
||||
|
||||
WifiComInterface Adhoc = {
|
||||
Adhoc_Init,
|
||||
Adhoc_DeInit,
|
||||
Adhoc_Reset,
|
||||
Adhoc_SendPacket,
|
||||
Adhoc_usTrigger
|
||||
};
|
||||
|
||||
WifiComInterface* wifiComs[] = {
|
||||
&Adhoc,
|
||||
&SoftAP,
|
||||
NULL
|
||||
};
|
||||
WifiComInterface* wifiCom;
|
||||
|
||||
/*******************************************************************************
|
||||
|
@ -1257,14 +1289,6 @@ void Adhoc_usTrigger()
|
|||
{
|
||||
}
|
||||
|
||||
WifiComInterface Adhoc = {
|
||||
Adhoc_Init,
|
||||
Adhoc_DeInit,
|
||||
Adhoc_Reset,
|
||||
Adhoc_SendPacket,
|
||||
Adhoc_usTrigger
|
||||
};
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
SoftAP (fake wifi access point)
|
||||
|
@ -1665,19 +1689,4 @@ void SoftAP_usTrigger()
|
|||
}
|
||||
}
|
||||
|
||||
WifiComInterface SoftAP = {
|
||||
SoftAP_Init,
|
||||
SoftAP_DeInit,
|
||||
SoftAP_Reset,
|
||||
SoftAP_SendPacket,
|
||||
SoftAP_usTrigger
|
||||
};
|
||||
|
||||
|
||||
WifiComInterface* wifiComs[] = {
|
||||
&Adhoc,
|
||||
&SoftAP,
|
||||
NULL
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue