diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-01-19 20:38:21 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-01-19 20:38:21 +0300 |
commit | 119406f72c2be600a1462705c8f5d1406208a615 (patch) | |
tree | a91847b7572c2c5b1308f9874c88f7147a229dd2 /src/Hardware/SAME70/Devices.cpp | |
parent | be7f083b7a979f9853562bf29fff739bfc9520fa (diff) |
Fixed SAME70 USB interface
Diffstat (limited to 'src/Hardware/SAME70/Devices.cpp')
-rw-r--r-- | src/Hardware/SAME70/Devices.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/Hardware/SAME70/Devices.cpp b/src/Hardware/SAME70/Devices.cpp index 49316c6a..f9b85260 100644 --- a/src/Hardware/SAME70/Devices.cpp +++ b/src/Hardware/SAME70/Devices.cpp @@ -28,45 +28,11 @@ void UART2_Handler(void) noexcept Serial.IrqHandler(); } - void USART2_Handler(void) noexcept { Serial1.IrqHandler(); } -// Callback glue functions, all called from the USB ISR - -// This is called when we are plugged in and connect to a host -extern "C" bool core_cdc_enable(uint8_t port) noexcept -{ - SerialUSB.cdcSetConnected(true); - return true; -} - -// This is called when we get disconnected from the host -extern "C" void core_cdc_disable(uint8_t port) noexcept -{ - SerialUSB.cdcSetConnected(false); -} - -// This is called when data has been received -extern "C" void core_cdc_rx_notify(uint8_t port) noexcept -{ - SerialUSB.cdcRxNotify(); -} - -// This is called when the transmit buffer has been emptied -extern "C" void core_cdc_tx_empty_notify(uint8_t port) noexcept -{ - SerialUSB.cdcTxEmptyNotify(); -} - -// On the SAM4E and SAM4S we use a GPIO pin available to monitor the VBUS state -void core_vbus_off(CallbackParameter) noexcept -{ - SerialUSB.cdcSetConnected(false); -} - void SerialInit() noexcept { SetPinFunction(APIN_Serial0_RXD, Serial0PinFunction); @@ -87,7 +53,6 @@ void SdhcInit() noexcept } } - // Device initialisation void DeviceInit() noexcept { |