mirror of https://github.com/ARMmbed/mbed-os.git
Modifications for compatibility with GCC
parent
2f26d09606
commit
6a5d7c654d
|
@ -30,6 +30,10 @@
|
|||
|
||||
#include "IUSBHostSerialListener.h"
|
||||
|
||||
// This is needed by some versions of GCC
|
||||
#undef putc
|
||||
#undef getc
|
||||
|
||||
class IUSBHostSerial {
|
||||
public:
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#endif
|
||||
|
||||
#include "dbg.h"
|
||||
#include <cstdint>
|
||||
#include <stdint.h>
|
||||
#include "rtos.h"
|
||||
|
||||
#include "WANDongle.h"
|
||||
|
@ -168,7 +168,7 @@ void WANDongle::init()
|
|||
{
|
||||
WANDongleInitializer* initializer;
|
||||
|
||||
for(unsigned i = 0; i < m_totalInitializers; i++)
|
||||
for(int i = 0; i < m_totalInitializers; i++)
|
||||
{
|
||||
initializer = m_Initializers[i];
|
||||
USB_DBG("initializer=%p", initializer);
|
||||
|
@ -229,7 +229,7 @@ bool WANDongle::addInitializer(WANDongleInitializer* pInitializer)
|
|||
|
||||
WANDongle::~WANDongle()
|
||||
{
|
||||
for(unsigned i = 0; i < m_totalInitializers; i++)
|
||||
for(int i = 0; i < m_totalInitializers; i++)
|
||||
delete m_Initializers[i];
|
||||
}
|
||||
|
||||
|
|
|
@ -23,9 +23,7 @@
|
|||
|
||||
#ifdef USBHOST_3GMODULE
|
||||
|
||||
#include <cstdint>
|
||||
using std::uint16_t;
|
||||
using std::uint32_t;
|
||||
#include <stdint.h>
|
||||
|
||||
#include "USBHost.h"
|
||||
#include "IUSBEnumerator.h"
|
||||
|
@ -44,6 +42,7 @@ protected:
|
|||
uint8_t m_serialIntfMap[WANDONGLE_MAX_SERIAL_PORTS];
|
||||
|
||||
public:
|
||||
virtual ~WANDongleInitializer() {}
|
||||
virtual uint16_t getMSDVid() = 0;
|
||||
virtual uint16_t getMSDPid() = 0;
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#endif
|
||||
|
||||
#include "dbg.h"
|
||||
#include <cstdint>
|
||||
#include <stdint.h>
|
||||
#include "rtos.h"
|
||||
|
||||
#include "WANDongleSerialPort.h"
|
||||
|
|
Loading…
Reference in New Issue