Skip to content

Commit b92a0d6

Browse files
committed
testing
1 parent 6c0afd0 commit b92a0d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+5925
-93
lines changed

cores/arduino/UART.cpp

+10-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include "UART.h"
3030

3131

32-
#include "include/StreamMock.h"
32+
#include "StreamMock.h"
3333

3434
/*
3535
void serialEventRun(void)
@@ -55,8 +55,16 @@ void serialEventRun(void)
5555
#define TX_BUFFER_ATOMIC
5656
#endif
5757

58+
59+
60+
61+
5862
// Actual interrupt handlers //////////////////////////////////////////////////////////////
5963

64+
65+
66+
67+
6068
void UartClass::_tx_data_empty_irq(void)
6169
{
6270
;
@@ -85,7 +93,7 @@ void UartClass::begin(unsigned long baud, uint16_t config)
8593
//Make sure global interrupts are disabled during initialization
8694
//uint8_t oldSREG = SREG;
8795

88-
baud_setting = (((8 * F_CPU) / baud) + 1) / 2;
96+
baud_setting = 100;
8997

9098
_written = false;
9199

cores/arduino/UART.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class UartClass : public HardwareSerial
137137
unsigned char _tx_buffer[SERIAL_TX_BUFFER_SIZE];
138138

139139
public:
140-
//UartClass(){;}
140+
141141
//inline UartClass(volatile USART_t *hwserial_module, uint8_t hwserial_rx_pin, uint8_t hwserial_tx_pin, uint8_t dre_vect_num, uint8_t uart_mux);
142142
UartClass(
143143
USART_t *hwserial_module,
@@ -156,7 +156,7 @@ class UartClass : public HardwareSerial
156156
_prev_lvl1_interrupt_vect(0)
157157
{
158158
};
159-
159+
virtual ~UartClass(){};
160160

161161
void begin(unsigned long baud) { begin(baud, SERIAL_8N1); }
162162
void begin(unsigned long, uint16_t);
File renamed without changes.

cores/arduino/api/ArduinoAPI.h

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/*
2+
Arduino API main include
3+
Copyright (c) 2016 Arduino LLC. All right reserved.
4+
5+
This library is free software; you can redistribute it and/or
6+
modify it under the terms of the GNU Lesser General Public
7+
License as published by the Free Software Foundation; either
8+
version 2.1 of the License, or (at your option) any later version.
9+
10+
This library is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13+
Lesser General Public License for more details.
14+
15+
You should have received a copy of the GNU Lesser General Public
16+
License along with this library; if not, write to the Free Software
17+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18+
*/
19+
20+
#ifndef ARDUINO_API_H
21+
#define ARDUINO_API_H
22+
23+
// version 1.5.1
24+
#define ARDUINO_API_VERSION 10501
25+
26+
#include "Binary.h"
27+
28+
#ifdef __cplusplus
29+
#include "Interrupts.h"
30+
#include "IPAddress.h"
31+
#include "Print.h"
32+
#include "Printable.h"
33+
#include "PluggableUSB.h"
34+
#include "Server.h"
35+
#include "String.h"
36+
#include "Stream.h"
37+
#include "Udp.h"
38+
#include "USBAPI.h"
39+
#include "WCharacter.h"
40+
#endif
41+
42+
/* Standard C library includes */
43+
#include <stdlib.h>
44+
#include <stdint.h>
45+
#include <stdbool.h>
46+
#include <string.h>
47+
#include <math.h>
48+
49+
// Misc Arduino core functions
50+
#include "Common.h"
51+
52+
#ifdef __cplusplus
53+
// Compatibility layer for older code
54+
#include "Compat.h"
55+
#endif
56+
57+
#endif

0 commit comments

Comments
 (0)