Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(732)

Unified Diff: platforms/stm/disco_fletch/src/test.dart

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « platforms/stm/disco_fletch/src/syscalls.c ('k') | platforms/stm/disco_fletch/src/uart.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: platforms/stm/disco_fletch/src/test.dart
diff --git a/platforms/stm/disco_fletch/src/test.dart b/platforms/stm/disco_fletch/src/test.dart
deleted file mode 100644
index fa34e307e921cc58724e27cf78771673a72daef2..0000000000000000000000000000000000000000
--- a/platforms/stm/disco_fletch/src/test.dart
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE.md file.
-
-import 'dart:typed_data';
-
-import 'package:stm32f746g_disco/uart.dart';
-import 'package:stm32f746g_disco/stm32f746g_disco.dart';
-
-main() {
- const int CR = 13;
- const int LF = 10;
-
- STM32F746GDiscovery disco = new STM32F746GDiscovery();
- Uart uart = disco.uart;
-
- uart.writeString("\rWelcome to Dart UART echo!\r\n");
- uart.writeString("--------------------------\r\n");
- while (true) {
- var data = new Uint8List.view(uart.readNext());
- // Map CR to CR+LF for nicer console output.
- if (data.indexOf(CR) != -1) {
- for (int i = 0; i < data.length; i++) {
- var byte = data[i];
- uart.writeByte(byte);
- if (byte == CR) {
- uart.writeByte(LF);
- }
- }
- } else {
- uart.write(data.buffer);
- }
- }
-}
« no previous file with comments | « platforms/stm/disco_fletch/src/syscalls.c ('k') | platforms/stm/disco_fletch/src/uart.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698