Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: max32625pico SerialInterface USBDevice
Revision 15:e8b28cadf100, committed 2018-05-02
- Comitter:
- switches
- Date:
- Wed May 02 22:11:34 2018 +0000
- Parent:
- 14:dd5a96c353ed
- Child:
- 16:564f88ac41ed
- Commit message:
- Updated mbed library
Changed in this revision
--- a/SerialInterface.lib Thu Jan 25 18:46:58 2018 +0000 +++ b/SerialInterface.lib Wed May 02 22:11:34 2018 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/switches/code/SerialInterface/#a0937dc92631 +https://developer.mbed.org/users/switches/code/SerialInterface/#bc8d6816839f
--- a/USBDevice.lib Thu Jan 25 18:46:58 2018 +0000 +++ b/USBDevice.lib Wed May 02 22:11:34 2018 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/MaximIntegrated/code/USBDevice/#c5e178adb138 +https://developer.mbed.org/teams/MaximIntegrated/code/USBDevice/#17ac7abb27a7
--- a/main.cpp Thu Jan 25 18:46:58 2018 +0000
+++ b/main.cpp Wed May 02 22:11:34 2018 +0000
@@ -4,10 +4,8 @@
#include "max32625pico.h"
#include "SerialInterface.h"
-#define UART_MAX_RESP_LENGTH 255
-#define UART_MAX_CMD_LENGTH 255
-#define USB_MAX_RESP_LENGTH 255
-#define USB_MAX_CMD_LENGTH 255
+#define USB_MAX_RESP_LENGTH 511
+#define USB_MAX_CMD_LENGTH 511
// configure VDDIOH to local 3.3V supply, set dipVio and swdVio to 1.8V supply
MAX32625PICO pico(MAX32625PICO::IOH_3V3, MAX32625PICO::VIO_1V8, MAX32625PICO::VIO_1V8);
@@ -22,7 +20,7 @@
AnalogIn ain[] = {AIN_0, AIN_1, AIN_2, AIN_3, AIN_4, AIN_5, AIN_6, AIN_7};
// Serial Interface Adapter
-SerialInterface serInt(i2c, spi, gpio, ain);
+SerialInterface serInt(&i2c, &spi, gpio, ain);
// Threads
Thread threadUSB;
@@ -33,8 +31,8 @@
void usb_thread()
{
- char obuf[USB_MAX_RESP_LENGTH+1];
- char ibuf[USB_MAX_CMD_LENGTH+1];
+ char obuf[USB_MAX_RESP_LENGTH +1];
+ char ibuf[USB_MAX_CMD_LENGTH +1];
int i = 0;
microUSB.printf("micro USB serial port\r\n");
@@ -47,7 +45,7 @@
i += 1;
}
} else {
- rLED = LED_ON;
+ bLED = LED_ON;
if (i < USB_MAX_CMD_LENGTH) {
ibuf[i]=0;
// microUSB.printf("UART CMD: %s=", ibuf);
@@ -57,7 +55,7 @@
microUSB.printf("[-1]\r\n");
}
i=0;
- rLED = LED_OFF;
+ bLED = LED_OFF;
}
}
}
--- a/maxim-dev.lib Thu Jan 25 18:46:58 2018 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -https://developer.mbed.org/users/switches/code/maxim-dev/#2e7515f8c45d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Wed May 02 22:11:34 2018 +0000 @@ -0,0 +1,1 @@ +https://github.com/gsmaxim/mbed-os/#8bcf1e22f663f9c6920c97f47ee70cb889e5b9f1
--- a/mbed-rtos.lib Thu Jan 25 18:46:58 2018 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/mbed_official/code/mbed-rtos/#58563e6cba1e