Skip to content

v2 release #258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 1 addition & 25 deletions libraries/Apollo3/examples/Serial/Serial.ino
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,11 @@
| | 47
*/

// uncomment to define SERIAL1_TX and SERIAL1_RX as custom pin numbers in case they
// are not defined by default (look up the correct pad <--> pin mapping for your board
#define SERIAL1_TX 35
#define SERIAL1_RX 13

// uncomment to use these names if defined for your board
// (these are also the pins used for Serial1, which is
// available on applicable boards)
#define HAS_SERIAL1
UART mySerial(SERIAL1_TX, SERIAL1_RX);

#define BAUD 115200 // any number, common choices: 9600, 115200, 230400, 921600
#define CONFIG SERIAL_8N1 // a config value from HardwareSerial.h (defaults to SERIAL_8N1)

void setup() {
Serial.begin(BAUD); // set the baud rate with the begin() method
Serial.begin(BAUD); // set the baud rate with the begin() method
Serial.println("\n\nApollo3 - Serial");

// the Apollo3 core supports printf on Serial
Expand All @@ -74,23 +63,10 @@ void setup() {
}

Serial.println("\nEcho... (type characters into the Serial Monitor to see them echo back)\n");


#ifdef HAS_SERIAL1
mySerial.begin(BAUD, CONFIG); // specify the config setting as the secnd argument
mySerial.println("\n\nApollo3 - mySerial");
mySerial.println("\nEcho... (type characters into the Serial Monitor to see them echo back)\n");
#endif
}

void loop() {
while(Serial.available()){
Serial.write(Serial.read());
}

#ifdef HAS_SERIAL1
while(mySerial.available()){
mySerial.write(mySerial.read());
}
#endif
}
2 changes: 1 addition & 1 deletion variants/SFE_ARTEMIS/mbed/.asm-symbols
Original file line number Diff line number Diff line change
@@ -1 +1 @@
-DAM_PACKAGE_BGA -DARM_MATH_CM4 -D__CMSIS_RTOS -D__CORTEX_M4 -D__FPU_PRESENT=1 -D__MBED_CMSIS_RTOS_CM
-DAM_PACKAGE_BGA -DARM_MATH_CM4 -DCORDIO_ZERO_COPY_HCI -D__CMSIS_RTOS -D__CORTEX_M4 -D__FPU_PRESENT=1 -D__MBED_CMSIS_RTOS_CM
Loading