Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit 641e5d0

Browse files
stm32f4 platform, initial commit
0 parents  commit 641e5d0

File tree

213 files changed

+120831
-0
lines changed

Some content is hidden

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

213 files changed

+120831
-0
lines changed

boards.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# edited 01 jun 2016 - Arduino Srl (http://www.arduino.org/) - Francesco Alessi (alfran) - [email protected]
2+
3+
##############################################################
4+
star_otto.name=Arduino Star OTTO
5+
6+
star_otto.upload.tool=dfuse
7+
star_otto.upload.protocol=dfuse
8+
9+
star_otto.upload.use_1200bps_touch=true
10+
star_otto.upload.file_type=bin
11+
star_otto.upload.ram.maximum_size=323584
12+
star_otto.upload.flash.maximum_size=2097152
13+
star_otto.upload.maximum_size=2097152
14+
star_otto.upload.mem_start=0x08000000
15+
16+
star_otto.upload.usbID=0483:DF11
17+
star_otto.upload.altID=0
18+
19+
star_otto.build.mcu=cortex-m4
20+
star_otto.build.f_cpu=180000000L
21+
star_otto.build.core=arduino
22+
star_otto.build.extra_flags=-DMCU_STM32F469NI -mthumb -DSTM32_HIGH_DENSITY -DSTM32F2 -DSTM32F4 -DBOARD_discovery_f4
23+
star_otto.build.ldscript=link-tools/jtag.ld
24+
star_otto.build.variant=otto
25+
star_otto.build.variant_system_lib=lib_f469.a
26+
star_otto.build.vect=VECT_TAB_BASE
27+
star_otto.build.density=STM32_HIGH_DENSITY
28+
##############################################################

cores/arduino/Arduino.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// to add license
2+
3+
4+
/*
5+
* Arduino srl
6+
* Firmware and Library Development Team
7+
*
8+
* Francesco Alessi (alfran) - [email protected]
9+
* 2016 Jun 9: Edited for Arduino STAR OTTO first release
10+
*/
11+
12+
13+
#ifndef Arduino_h
14+
#define Arduino_h
15+
#include "WProgram.h"
16+
#endif
17+
18+
#include "variant.h"
19+
#include "Tone.h"

cores/arduino/Client.h

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
Client.h - Base class that provides Client
3+
Copyright (c) 2011 Adrian McEwen. 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 client_h
21+
#define client_h
22+
#include "Print.h"
23+
#include "Stream.h"
24+
#include "IPAddress.h"
25+
26+
class Client : public Stream {
27+
28+
public:
29+
virtual int connect(IPAddress ip, uint16_t port) =0;
30+
virtual int connect(const char *host, uint16_t port) =0;
31+
virtual size_t write(uint8_t) =0;
32+
virtual size_t write(const uint8_t *buf, size_t size) =0;
33+
virtual int available() = 0;
34+
virtual int read() = 0;
35+
virtual int read(uint8_t *buf, size_t size) = 0;
36+
virtual int peek() = 0;
37+
virtual void flush() = 0;
38+
virtual void stop() = 0;
39+
virtual uint8_t connected() = 0;
40+
virtual operator bool() = 0;
41+
protected:
42+
uint8_t* rawIPAddress(IPAddress& addr) { return addr.raw_address(); };
43+
};
44+
45+
#endif

0 commit comments

Comments
 (0)