Skip to content

Commit

Permalink
Merge pull request #65 from mcci-catena/issue64
Browse files Browse the repository at this point in the history
Make USBD_LL_ConnectionState() as weak function
  • Loading branch information
chwon64 authored Jan 18, 2019
2 parents 50d827f + 8e5ac06 commit 7d12b8a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions cores/arduino/stm32/usb_serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ class USBSerial : public Stream
int availableForWrite(void);
virtual size_t write(uint8_t);
virtual size_t write(const uint8_t *buffer, size_t size);
inline size_t write(unsigned long n) { return write((uint8_t)n); }
inline size_t write(long n) { return write((uint8_t)n); }
inline size_t write(unsigned int n) { return write((uint8_t)n); }
inline size_t write(int n) { return write((uint8_t)n); }
using Print::write;

bool dtr(void);
Expand Down
2 changes: 1 addition & 1 deletion variants/CATENA_461x/usb/usbd_conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ void USBD_LL_DisableIRQ(void)
* @param None
* @retval 0 if disconnected
*/
uint32_t USBD_LL_ConnectionState(void)
USBD_LL_ConnectionState_WEAK uint32_t USBD_LL_ConnectionState(void)
{
uint32_t vBus;

Expand Down
1 change: 1 addition & 0 deletions variants/CATENA_461x/usb/usbd_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
#define USBD_DEBUG_LEVEL 0
#define USBD_CDC_INTERVAL 1000

#define USBD_LL_ConnectionState_WEAK __weak

/* Exported macro ------------------------------------------------------------*/
/****************************************/
Expand Down

0 comments on commit 7d12b8a

Please sign in to comment.