11 |
12 |
13 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc/sam4s_ek_sram.gdb:
--------------------------------------------------------------------------------
1 | #*************************************************
2 | #
3 | # Connect to J-Link and debug application in sram.
4 | #
5 |
6 | # define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Load the program
16 | load
17 |
18 | # Reset peripheral (RSTC_CR)
19 | set *0x400e1400 = 0xA5000004
20 |
21 | # Initializing PC and stack pointer
22 | mon reg sp=(0x20000000)
23 | mon reg pc=(0x20000004)
24 | info reg
25 |
26 | # end of 'reset' command
27 | end
28 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_arm/sam4s_ek_sram.gdb:
--------------------------------------------------------------------------------
1 | #*************************************************
2 | #
3 | # Connect to J-Link and debug application in sram.
4 | #
5 |
6 | # define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Load the program
16 | load
17 |
18 | # Reset peripheral (RSTC_CR)
19 | set *0x400e1400 = 0xA5000004
20 |
21 | # Initializing PC and stack pointer
22 | mon reg sp=(0x20000000)
23 | mon reg pc=(0x20000004)
24 | info reg
25 |
26 | # end of 'reset' command
27 | end
28 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_atmel/sam4s_ek_sram.gdb:
--------------------------------------------------------------------------------
1 | #*************************************************
2 | #
3 | # Connect to J-Link and debug application in sram.
4 | #
5 |
6 | # define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Load the program
16 | load
17 |
18 | # Reset peripheral (RSTC_CR)
19 | set *0x400e1400 = 0xA5000004
20 |
21 | # Initializing PC and stack pointer
22 | mon reg sp=(0x20000000)
23 | mon reg pc=(0x20000004)
24 | info reg
25 |
26 | # end of 'reset' command
27 | end
28 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc/sam3u_ek_sram.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in sram on SAM3U.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Load the program
16 | load
17 |
18 | # Reset peripheral (RSTC_CR)
19 | set *0x400e1200 = 0xA5000004
20 |
21 | # Initialize PC and stack pointer
22 | mon reg sp=(0x20000000)
23 | #set *0x20000004 = *0x20000004 & 0xFFFFFFFE
24 | mon reg pc=(0x20000004)
25 |
26 | info reg
27 |
28 | # End of 'reset' command
29 | end
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc/sam3n_ek_sram.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in sram on SAM3N.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Load the program
16 | load
17 |
18 | # Reset peripheral (RSTC_CR)
19 | set *0x400e1400 = 0xA5000004
20 |
21 | # Initialize PC and stack pointer
22 | mon reg sp=(0x20000000)
23 | #set *0x20000004 = *0x20000004 & 0xFFFFFFFE
24 | mon reg pc=(0x20000004)
25 |
26 | info reg
27 |
28 | # End of 'reset' command
29 | end
30 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc/sam3s_ek2_sram.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in sram on SAM3S.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Load the program
16 | load
17 |
18 | # Reset peripheral (RSTC_CR)
19 | set *0x400e1400 = 0xA5000004
20 |
21 | # Initialize PC and stack pointer
22 | mon reg sp=(0x20000000)
23 | #set *0x20000004 = *0x20000004 & 0xFFFFFFFE
24 | mon reg pc=(0x20000004)
25 |
26 | info reg
27 |
28 | # End of 'reset' command
29 | end
30 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc/sam3s_ek_sram.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in sram on SAM3S.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Load the program
16 | load
17 |
18 | # Reset peripheral (RSTC_CR)
19 | set *0x400e1400 = 0xA5000004
20 |
21 | # Initialize PC and stack pointer
22 | mon reg sp=(0x20000000)
23 | #set *0x20000004 = *0x20000004 & 0xFFFFFFFE
24 | mon reg pc=(0x20000004)
25 |
26 | info reg
27 |
28 | # End of 'reset' command
29 | end
30 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc/sam3x_ek_sram.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in sram on SAM3X.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Load the program
16 | load
17 |
18 | # Reset peripheral (RSTC_CR)
19 | set *0x400e1a00 = 0xA5000004
20 |
21 | # Initialize PC and stack pointer
22 | mon reg sp=(0x20000000)
23 | #set *0x20000004 = *0x20000004 & 0xFFFFFFFE
24 | mon reg pc=(0x20000004)
25 |
26 | info reg
27 |
28 | # End of 'reset' command
29 | end
30 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_arm/sam3u_ek_sram.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in sram on SAM3U.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Load the program
16 | load
17 |
18 | # Reset peripheral (RSTC_CR)
19 | set *0x400e1200 = 0xA5000004
20 |
21 | # Initialize PC and stack pointer
22 | mon reg sp=(0x20000000)
23 | #set *0x20000004 = *0x20000004 & 0xFFFFFFFE
24 | mon reg pc=(0x20000004)
25 |
26 | info reg
27 |
28 | # End of 'reset' command
29 | end
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_atmel/sam3u_ek_sram.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in sram on SAM3U.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Load the program
16 | load
17 |
18 | # Reset peripheral (RSTC_CR)
19 | set *0x400e1200 = 0xA5000004
20 |
21 | # Initialize PC and stack pointer
22 | mon reg sp=(0x20000000)
23 | #set *0x20000004 = *0x20000004 & 0xFFFFFFFE
24 | mon reg pc=(0x20000004)
25 |
26 | info reg
27 |
28 | # End of 'reset' command
29 | end
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_arm/sam3n_ek_sram.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in sram on SAM3N.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Load the program
16 | load
17 |
18 | # Reset peripheral (RSTC_CR)
19 | set *0x400e1400 = 0xA5000004
20 |
21 | # Initialize PC and stack pointer
22 | mon reg sp=(0x20000000)
23 | #set *0x20000004 = *0x20000004 & 0xFFFFFFFE
24 | mon reg pc=(0x20000004)
25 |
26 | info reg
27 |
28 | # End of 'reset' command
29 | end
30 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_arm/sam3s_ek2_sram.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in sram on SAM3S.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Load the program
16 | load
17 |
18 | # Reset peripheral (RSTC_CR)
19 | set *0x400e1400 = 0xA5000004
20 |
21 | # Initialize PC and stack pointer
22 | mon reg sp=(0x20000000)
23 | #set *0x20000004 = *0x20000004 & 0xFFFFFFFE
24 | mon reg pc=(0x20000004)
25 |
26 | info reg
27 |
28 | # End of 'reset' command
29 | end
30 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_arm/sam3s_ek_sram.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in sram on SAM3S.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Load the program
16 | load
17 |
18 | # Reset peripheral (RSTC_CR)
19 | set *0x400e1400 = 0xA5000004
20 |
21 | # Initialize PC and stack pointer
22 | mon reg sp=(0x20000000)
23 | #set *0x20000004 = *0x20000004 & 0xFFFFFFFE
24 | mon reg pc=(0x20000004)
25 |
26 | info reg
27 |
28 | # End of 'reset' command
29 | end
30 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_arm/sam3x_ek_sram.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in sram on SAM3X.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Load the program
16 | load
17 |
18 | # Reset peripheral (RSTC_CR)
19 | set *0x400e1a00 = 0xA5000004
20 |
21 | # Initialize PC and stack pointer
22 | mon reg sp=(0x20000000)
23 | #set *0x20000004 = *0x20000004 & 0xFFFFFFFE
24 | mon reg pc=(0x20000004)
25 |
26 | info reg
27 |
28 | # End of 'reset' command
29 | end
30 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_atmel/sam3n_ek_sram.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in sram on SAM3N.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Load the program
16 | load
17 |
18 | # Reset peripheral (RSTC_CR)
19 | set *0x400e1400 = 0xA5000004
20 |
21 | # Initialize PC and stack pointer
22 | mon reg sp=(0x20000000)
23 | #set *0x20000004 = *0x20000004 & 0xFFFFFFFE
24 | mon reg pc=(0x20000004)
25 |
26 | info reg
27 |
28 | # End of 'reset' command
29 | end
30 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_atmel/sam3s_ek2_sram.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in sram on SAM3S.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Load the program
16 | load
17 |
18 | # Reset peripheral (RSTC_CR)
19 | set *0x400e1400 = 0xA5000004
20 |
21 | # Initialize PC and stack pointer
22 | mon reg sp=(0x20000000)
23 | #set *0x20000004 = *0x20000004 & 0xFFFFFFFE
24 | mon reg pc=(0x20000004)
25 |
26 | info reg
27 |
28 | # End of 'reset' command
29 | end
30 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_atmel/sam3s_ek_sram.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in sram on SAM3S.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Load the program
16 | load
17 |
18 | # Reset peripheral (RSTC_CR)
19 | set *0x400e1400 = 0xA5000004
20 |
21 | # Initialize PC and stack pointer
22 | mon reg sp=(0x20000000)
23 | #set *0x20000004 = *0x20000004 & 0xFFFFFFFE
24 | mon reg pc=(0x20000004)
25 |
26 | info reg
27 |
28 | # End of 'reset' command
29 | end
30 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_atmel/sam3x_ek_sram.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in sram on SAM3X.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Load the program
16 | load
17 |
18 | # Reset peripheral (RSTC_CR)
19 | set *0x400e1a00 = 0xA5000004
20 |
21 | # Initialize PC and stack pointer
22 | mon reg sp=(0x20000000)
23 | #set *0x20000004 = *0x20000004 & 0xFFFFFFFE
24 | mon reg pc=(0x20000004)
25 |
26 | info reg
27 |
28 | # End of 'reset' command
29 | end
30 |
--------------------------------------------------------------------------------
/cores/arduino/Client.h:
--------------------------------------------------------------------------------
1 | #ifndef client_h
2 | #define client_h
3 | #include "Print.h"
4 | #include "Stream.h"
5 | #include "IPAddress.h"
6 |
7 | class Client : public Stream {
8 |
9 | public:
10 | virtual int connect(IPAddress ip, uint16_t port) =0;
11 | virtual int connect(const char *host, uint16_t port) =0;
12 | virtual size_t write(uint8_t) =0;
13 | virtual size_t write(const uint8_t *buf, size_t size) =0;
14 | virtual int available() = 0;
15 | virtual int read() = 0;
16 | virtual int read(uint8_t *buf, size_t size) = 0;
17 | virtual int peek() = 0;
18 | virtual void flush() = 0;
19 | virtual void stop() = 0;
20 | virtual uint8_t connected() = 0;
21 | virtual operator bool() = 0;
22 | protected:
23 | uint8_t* rawIPAddress(IPAddress& addr) { return addr.raw_address(); };
24 | };
25 |
26 | #endif
27 |
--------------------------------------------------------------------------------
/system/CMSIS/CMSIS/DSP_Lib/Source/ARM/arm_cortexMx_math_Build.bat:
--------------------------------------------------------------------------------
1 |
2 | SET TMP=C:\Temp
3 | SET TEMP=C:\Temp
4 |
5 | SET UVEXE=C:\Keil\UV4\UV4.EXE
6 |
7 | %UVEXE% -rb arm_cortexM0x_math.uvproj -t"DSP_Lib CM0 LE" -o"DSP_Lib CM0 LE.txt"
8 | %UVEXE% -rb arm_cortexM0x_math.uvproj -t"DSP_Lib CM0 BE" -o"DSP_Lib CM0 BE.txt"
9 | %UVEXE% -rb arm_cortexM3x_math.uvproj -t"DSP_Lib CM3 LE" -o"DSP_Lib CM3 LE.txt"
10 | %UVEXE% -rb arm_cortexM3x_math.uvproj -t"DSP_Lib CM3 BE" -o"DSP_Lib CM3 BE.txt"
11 | %UVEXE% -rb arm_cortexM4x_math.uvproj -t"DSP_Lib CM4 LE" -o"DSP_Lib CM4 LE.txt"
12 | %UVEXE% -rb arm_cortexM4x_math.uvproj -t"DSP_Lib CM4 BE" -o"DSP_Lib CM4 BE.txt"
13 | %UVEXE% -rb arm_cortexM4x_math.uvproj -t"DSP_Lib CM4 LE FPU" -o"DSP_Lib CM4 LE FPU.txt"
14 | %UVEXE% -rb arm_cortexM4x_math.uvproj -t"DSP_Lib CM4 BE FPU" -o"DSP_Lib CM4 BE FPU.txt"
--------------------------------------------------------------------------------
/libraries/Wire/examples/master_writer/master_writer.pde:
--------------------------------------------------------------------------------
1 | // Wire Master Writer
2 | // by Nicholas Zambetti
3 |
4 | // Demonstrates use of the Wire library
5 | // Writes data to an I2C/TWI slave device
6 | // Refer to the "Wire Slave Receiver" example for use with this
7 |
8 | // Created 29 March 2006
9 |
10 | // This example code is in the public domain.
11 |
12 |
13 | #include
14 |
15 | void setup()
16 | {
17 | Wire.begin(); // join i2c bus (address optional for master)
18 | }
19 |
20 | byte x = 0;
21 |
22 | void loop()
23 | {
24 | Wire.beginTransmission(4); // transmit to device #4
25 | Wire.write("x is "); // sends five bytes
26 | Wire.write(x); // sends one byte
27 | Wire.endTransmission(); // stop transmitting
28 |
29 | x++;
30 | delay(500);
31 | }
32 |
--------------------------------------------------------------------------------
/libraries/SPI/keywords.txt:
--------------------------------------------------------------------------------
1 | #######################################
2 | # Syntax Coloring Map SPI
3 | #######################################
4 |
5 | #######################################
6 | # Datatypes (KEYWORD1)
7 | #######################################
8 |
9 | SPI KEYWORD1
10 |
11 | #######################################
12 | # Methods and Functions (KEYWORD2)
13 | #######################################
14 | begin KEYWORD2
15 | end KEYWORD2
16 | transfer KEYWORD2
17 | #setBitOrder KEYWORD2
18 | setDataMode KEYWORD2
19 | setClockDivider KEYWORD2
20 |
21 |
22 | #######################################
23 | # Constants (LITERAL1)
24 | #######################################
25 | SPI_MODE0 LITERAL1
26 | SPI_MODE1 LITERAL1
27 | SPI_MODE2 LITERAL1
28 | SPI_MODE3 LITERAL1
29 |
30 | SPI_CONTINUE LITERAL1
31 | SPI_LAST LITERAL1
32 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc/sam3u_ek_flash.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in flash on SAM3U.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device
16 | monitor flash device = AT91SAM3U4E
17 |
18 | # Enable flash download and flash breakpoints
19 | monitor flash download = 1
20 |
21 | # Load the program
22 | load
23 |
24 | # Reset peripheral (RSTC_CR)
25 | set *0x400e1200 = 0xA5000004
26 |
27 | # Initialize PC and stack pointer
28 | mon reg sp=(0x80000)
29 | #set *0x80004 = *0x80004 & 0xFFFFFFFE
30 | mon reg pc=(0x80004)
31 |
32 | info reg
33 |
34 | # End of 'reset' command
35 | end
36 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc/sam3x_ek_flash.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in flash on SAM3X.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device
16 | monitor flash device = AT91SAM3X8H
17 |
18 | # Enable flash download and flash breakpoints
19 | monitor flash download = 1
20 |
21 | # Load the program
22 | load
23 |
24 | # Reset peripheral (RSTC_CR)
25 | set *0x400e1a00 = 0xA5000004
26 |
27 | # Initialize PC and stack pointer
28 | mon reg sp=(0x80000)
29 | #set *0x80004 = *0x80004 & 0xFFFFFFFE
30 | mon reg pc=(0x80004)
31 |
32 | info reg
33 |
34 | # End of 'reset' command
35 | end
36 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc/sam4s_ek_flash.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in flash.
4 | #
5 |
6 | # define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device (Should be AT91SAM4S16C, but it is not available now)
16 | monitor flash device = AT91SAM4S16C
17 | # Enable flash download and flash breakpoints
18 | monitor flash download = 1
19 |
20 | # Load the program
21 | load
22 |
23 | # Reset peripheral (RSTC_CR)
24 | set *0x400e1400 = 0xA5000004
25 |
26 | # Initializing PC and stack pointer
27 | mon reg sp=(0x400000)
28 | mon reg pc=(0x400004)
29 | info reg
30 |
31 | # end of 'reset' command
32 | end
33 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_arm/sam4s_ek_flash.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in flash.
4 | #
5 |
6 | # define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device (Should be AT91SAM4S16C, but it is not available now)
16 | monitor flash device = AT91SAM4S16C
17 | # Enable flash download and flash breakpoints
18 | monitor flash download = 1
19 |
20 | # Load the program
21 | load
22 |
23 | # Reset peripheral (RSTC_CR)
24 | set *0x400e1400 = 0xA5000004
25 |
26 | # Initializing PC and stack pointer
27 | mon reg sp=(0x400000)
28 | mon reg pc=(0x400004)
29 | info reg
30 |
31 | # end of 'reset' command
32 | end
33 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc/sam3s_ek2_flash.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in flash on SAM3S.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device
16 | monitor flash device = AT91SAM3S4C
17 |
18 | # Enable flash download and flash breakpoints
19 | monitor flash download = 1
20 |
21 | # Load the program
22 | load
23 |
24 | # Reset peripheral (RSTC_CR)
25 | set *0x400e1400 = 0xA5000004
26 |
27 | # Initialize PC and stack pointer
28 | mon reg sp=(0x400000)
29 | #set *0x400004 = *0x400004 & 0xFFFFFFFE
30 | mon reg pc=(0x400004)
31 |
32 | info reg
33 |
34 | # End of 'reset' command
35 | end
36 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc/sam3s_ek_flash.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in flash on SAM3S.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device
16 | monitor flash device = AT91SAM3S4C
17 |
18 | # Enable flash download and flash breakpoints
19 | monitor flash download = 1
20 |
21 | # Load the program
22 | load
23 |
24 | # Reset peripheral (RSTC_CR)
25 | set *0x400e1400 = 0xA5000004
26 |
27 | # Initialize PC and stack pointer
28 | mon reg sp=(0x400000)
29 | #set *0x400004 = *0x400004 & 0xFFFFFFFE
30 | mon reg pc=(0x400004)
31 |
32 | info reg
33 |
34 | # End of 'reset' command
35 | end
36 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_arm/sam3u_ek_flash.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in flash on SAM3U.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device
16 | monitor flash device = AT91SAM3U4E
17 |
18 | # Enable flash download and flash breakpoints
19 | monitor flash download = 1
20 |
21 | # Load the program
22 | load
23 |
24 | # Reset peripheral (RSTC_CR)
25 | set *0x400e1200 = 0xA5000004
26 |
27 | # Initialize PC and stack pointer
28 | mon reg sp=(0x80000)
29 | #set *0x80004 = *0x80004 & 0xFFFFFFFE
30 | mon reg pc=(0x80004)
31 |
32 | info reg
33 |
34 | # End of 'reset' command
35 | end
36 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_arm/sam3x_ek_flash.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in flash on SAM3X.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device
16 | monitor flash device = AT91SAM3X8H
17 |
18 | # Enable flash download and flash breakpoints
19 | monitor flash download = 1
20 |
21 | # Load the program
22 | load
23 |
24 | # Reset peripheral (RSTC_CR)
25 | set *0x400e1a00 = 0xA5000004
26 |
27 | # Initialize PC and stack pointer
28 | mon reg sp=(0x80000)
29 | #set *0x80004 = *0x80004 & 0xFFFFFFFE
30 | mon reg pc=(0x80004)
31 |
32 | info reg
33 |
34 | # End of 'reset' command
35 | end
36 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_atmel/sam4s_ek_flash.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in flash.
4 | #
5 |
6 | # define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device (Should be AT91SAM4S16C, but it is not available now)
16 | monitor flash device = AT91SAM4S16C
17 | # Enable flash download and flash breakpoints
18 | monitor flash download = 1
19 |
20 | # Load the program
21 | load
22 |
23 | # Reset peripheral (RSTC_CR)
24 | set *0x400e1400 = 0xA5000004
25 |
26 | # Initializing PC and stack pointer
27 | mon reg sp=(0x400000)
28 | mon reg pc=(0x400004)
29 | info reg
30 |
31 | # end of 'reset' command
32 | end
33 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc/sam3n_ek_flash.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in flash on SAM3N.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device
16 | monitor flash device = AT91SAM3N4C
17 |
18 | # Enable flash download and flash breakpoints
19 | monitor flash download = 1
20 |
21 | # Load the program
22 | load
23 |
24 | # Reset peripheral (RSTC_CR)
25 | set *0x400e1400 = 0xA5000004
26 |
27 | # Initialize PC and stack pointer
28 | mon reg sp=(0x00400000)
29 | #set *0x400004 = *0x400004 & 0xFFFFFFFE
30 | mon reg pc=(0x00400004)
31 |
32 | info reg
33 |
34 | # End of 'reset' command
35 | end
36 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_arm/sam3s_ek2_flash.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in flash on SAM3S.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device
16 | monitor flash device = AT91SAM3S4C
17 |
18 | # Enable flash download and flash breakpoints
19 | monitor flash download = 1
20 |
21 | # Load the program
22 | load
23 |
24 | # Reset peripheral (RSTC_CR)
25 | set *0x400e1400 = 0xA5000004
26 |
27 | # Initialize PC and stack pointer
28 | mon reg sp=(0x400000)
29 | #set *0x400004 = *0x400004 & 0xFFFFFFFE
30 | mon reg pc=(0x400004)
31 |
32 | info reg
33 |
34 | # End of 'reset' command
35 | end
36 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_arm/sam3s_ek_flash.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in flash on SAM3S.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device
16 | monitor flash device = AT91SAM3S4C
17 |
18 | # Enable flash download and flash breakpoints
19 | monitor flash download = 1
20 |
21 | # Load the program
22 | load
23 |
24 | # Reset peripheral (RSTC_CR)
25 | set *0x400e1400 = 0xA5000004
26 |
27 | # Initialize PC and stack pointer
28 | mon reg sp=(0x400000)
29 | #set *0x400004 = *0x400004 & 0xFFFFFFFE
30 | mon reg pc=(0x400004)
31 |
32 | info reg
33 |
34 | # End of 'reset' command
35 | end
36 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_atmel/sam3s_ek_flash.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in flash on SAM3S.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device
16 | monitor flash device = AT91SAM3S4C
17 |
18 | # Enable flash download and flash breakpoints
19 | monitor flash download = 1
20 |
21 | # Load the program
22 | load
23 |
24 | # Reset peripheral (RSTC_CR)
25 | set *0x400e1400 = 0xA5000004
26 |
27 | # Initialize PC and stack pointer
28 | mon reg sp=(0x400000)
29 | #set *0x400004 = *0x400004 & 0xFFFFFFFE
30 | mon reg pc=(0x400004)
31 |
32 | info reg
33 |
34 | # End of 'reset' command
35 | end
36 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_atmel/sam3u_ek_flash.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in flash on SAM3U.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device
16 | monitor flash device = AT91SAM3U4E
17 |
18 | # Enable flash download and flash breakpoints
19 | monitor flash download = 1
20 |
21 | # Load the program
22 | load
23 |
24 | # Reset peripheral (RSTC_CR)
25 | set *0x400e1200 = 0xA5000004
26 |
27 | # Initialize PC and stack pointer
28 | mon reg sp=(0x80000)
29 | #set *0x80004 = *0x80004 & 0xFFFFFFFE
30 | mon reg pc=(0x80004)
31 |
32 | info reg
33 |
34 | # End of 'reset' command
35 | end
36 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_atmel/sam3x_ek_flash.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in flash on SAM3X.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device
16 | monitor flash device = AT91SAM3X8H
17 |
18 | # Enable flash download and flash breakpoints
19 | monitor flash download = 1
20 |
21 | # Load the program
22 | load
23 |
24 | # Reset peripheral (RSTC_CR)
25 | set *0x400e1a00 = 0xA5000004
26 |
27 | # Initialize PC and stack pointer
28 | mon reg sp=(0x80000)
29 | #set *0x80004 = *0x80004 & 0xFFFFFFFE
30 | mon reg pc=(0x80004)
31 |
32 | info reg
33 |
34 | # End of 'reset' command
35 | end
36 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_arm/sam3n_ek_flash.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in flash on SAM3N.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device
16 | monitor flash device = AT91SAM3N4C
17 |
18 | # Enable flash download and flash breakpoints
19 | monitor flash download = 1
20 |
21 | # Load the program
22 | load
23 |
24 | # Reset peripheral (RSTC_CR)
25 | set *0x400e1400 = 0xA5000004
26 |
27 | # Initialize PC and stack pointer
28 | mon reg sp=(0x00400000)
29 | #set *0x400004 = *0x400004 & 0xFFFFFFFE
30 | mon reg pc=(0x00400004)
31 |
32 | info reg
33 |
34 | # End of 'reset' command
35 | end
36 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_atmel/sam3n_ek_flash.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in flash on SAM3N.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device
16 | monitor flash device = AT91SAM3N4C
17 |
18 | # Enable flash download and flash breakpoints
19 | monitor flash download = 1
20 |
21 | # Load the program
22 | load
23 |
24 | # Reset peripheral (RSTC_CR)
25 | set *0x400e1400 = 0xA5000004
26 |
27 | # Initialize PC and stack pointer
28 | mon reg sp=(0x00400000)
29 | #set *0x400004 = *0x400004 & 0xFFFFFFFE
30 | mon reg pc=(0x00400004)
31 |
32 | info reg
33 |
34 | # End of 'reset' command
35 | end
36 |
--------------------------------------------------------------------------------
/system/CMSIS/Examples/cmsis_example/gcc_atmel/sam3s_ek2_flash.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in flash on SAM3S.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device
16 | monitor flash device = AT91SAM3S4C
17 |
18 | # Enable flash download and flash breakpoints
19 | monitor flash download = 1
20 |
21 | # Load the program
22 | load
23 |
24 | # Reset peripheral (RSTC_CR)
25 | set *0x400e1400 = 0xA5000004
26 |
27 | # Initialize PC and stack pointer
28 | mon reg sp=(0x400000)
29 | #set *0x400004 = *0x400004 & 0xFFFFFFFE
30 | mon reg pc=(0x400004)
31 |
32 | info reg
33 |
34 | # End of 'reset' command
35 | end
36 |
--------------------------------------------------------------------------------
/variants/sun/debug_scripts/gcc/arduino_due_x_flash.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in flash on SAM3X.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device
16 | monitor flash device = AT91SAM3X8E
17 |
18 | # Enable flash download and flash breakpoints
19 | monitor flash download = 1
20 |
21 | # Load the program
22 | load
23 |
24 | # Reset peripheral (RSTC_CR)
25 | set *0x400e1a00 = 0xA5000004
26 |
27 | # Initialize PC and stack pointer
28 | mon reg sp=(0x80000)
29 | #set *0x80004 = *0x80004 & 0xFFFFFFFE
30 | mon reg pc=(0x80004)
31 |
32 | info reg
33 |
34 | break main
35 |
36 | # End of 'reset' command
37 | end
38 |
--------------------------------------------------------------------------------
/libraries/Wire/keywords.txt:
--------------------------------------------------------------------------------
1 | #######################################
2 | # Syntax Coloring Map For Wire
3 | #######################################
4 |
5 | #######################################
6 | # Datatypes (KEYWORD1)
7 | #######################################
8 |
9 | #######################################
10 | # Methods and Functions (KEYWORD2)
11 | #######################################
12 |
13 | begin KEYWORD2
14 | beginTransmission KEYWORD2
15 | endTransmission KEYWORD2
16 | requestFrom KEYWORD2
17 | send KEYWORD2
18 | receive KEYWORD2
19 | onReceive KEYWORD2
20 | onRequest KEYWORD2
21 |
22 | #######################################
23 | # Instances (KEYWORD2)
24 | #######################################
25 |
26 | Wire KEYWORD2
27 | Wire1 KEYWORD2
28 |
29 | #######################################
30 | # Constants (LITERAL1)
31 | #######################################
32 |
33 |
--------------------------------------------------------------------------------
/variants/F4Discovery/debug_scripts/gcc/arduino_due_x_flash.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in flash on SAM3X.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device
16 | monitor flash device = AT91SAM3X8E
17 |
18 | # Enable flash download and flash breakpoints
19 | monitor flash download = 1
20 |
21 | # Load the program
22 | load
23 |
24 | # Reset peripheral (RSTC_CR)
25 | set *0x400e1a00 = 0xA5000004
26 |
27 | # Initialize PC and stack pointer
28 | mon reg sp=(0x80000)
29 | #set *0x80004 = *0x80004 & 0xFFFFFFFE
30 | mon reg pc=(0x80004)
31 |
32 | info reg
33 |
34 | break main
35 |
36 | # End of 'reset' command
37 | end
38 |
--------------------------------------------------------------------------------
/variants/sun/debug_scripts/gcc/arduino_due_x_sram.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in sram on SAM3X.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device
16 | monitor flash device = AT91SAM3X8E
17 |
18 | # Enable flash download and flash breakpoints
19 | monitor flash download = 1
20 |
21 | # Load the program
22 | load
23 |
24 | # Reset peripheral (RSTC_CR)
25 | set *0x400e1a00 = 0xA5000004
26 |
27 | # Initialize PC and stack pointer
28 | mon reg sp=(0x20000000)
29 | #set *0x20000004 = *0x20000004 & 0xFFFFFFFE
30 | mon reg pc=(0x20000004)
31 |
32 | info reg
33 |
34 | break main
35 |
36 | # End of 'reset' command
37 | end
38 |
--------------------------------------------------------------------------------
/variants/sun_prototype/debug_scripts/gcc/arduino_due_x_flash.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in flash on SAM3X.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device
16 | monitor flash device = AT91SAM3X8E
17 |
18 | # Enable flash download and flash breakpoints
19 | monitor flash download = 1
20 |
21 | # Load the program
22 | load
23 |
24 | # Reset peripheral (RSTC_CR)
25 | set *0x400e1a00 = 0xA5000004
26 |
27 | # Initialize PC and stack pointer
28 | mon reg sp=(0x80000)
29 | #set *0x80004 = *0x80004 & 0xFFFFFFFE
30 | mon reg pc=(0x80004)
31 |
32 | info reg
33 |
34 | break main
35 |
36 | # End of 'reset' command
37 | end
38 |
--------------------------------------------------------------------------------
/variants/F4Discovery/debug_scripts/gcc/arduino_due_x_sram.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in sram on SAM3X.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device
16 | monitor flash device = AT91SAM3X8E
17 |
18 | # Enable flash download and flash breakpoints
19 | monitor flash download = 1
20 |
21 | # Load the program
22 | load
23 |
24 | # Reset peripheral (RSTC_CR)
25 | set *0x400e1a00 = 0xA5000004
26 |
27 | # Initialize PC and stack pointer
28 | mon reg sp=(0x20000000)
29 | #set *0x20000004 = *0x20000004 & 0xFFFFFFFE
30 | mon reg pc=(0x20000004)
31 |
32 | info reg
33 |
34 | break main
35 |
36 | # End of 'reset' command
37 | end
38 |
--------------------------------------------------------------------------------
/variants/sun_prototype/debug_scripts/gcc/arduino_due_x_sram.gdb:
--------------------------------------------------------------------------------
1 | #*******************************************************
2 | #
3 | # Connect to J-Link and debug application in sram on SAM3X.
4 | #
5 |
6 | # Define 'reset' command
7 | define reset
8 |
9 | # Connect to the J-Link gdb server
10 | target remote localhost:2331
11 |
12 | # Reset the chip to get to a known state
13 | monitor reset
14 |
15 | # Select flash device
16 | monitor flash device = AT91SAM3X8E
17 |
18 | # Enable flash download and flash breakpoints
19 | monitor flash download = 1
20 |
21 | # Load the program
22 | load
23 |
24 | # Reset peripheral (RSTC_CR)
25 | set *0x400e1a00 = 0xA5000004
26 |
27 | # Initialize PC and stack pointer
28 | mon reg sp=(0x20000000)
29 | #set *0x20000004 = *0x20000004 & 0xFFFFFFFE
30 | mon reg pc=(0x20000004)
31 |
32 | info reg
33 |
34 | break main
35 |
36 | # End of 'reset' command
37 | end
38 |
--------------------------------------------------------------------------------
/libraries/Wire/examples/slave_sender/slave_sender.pde:
--------------------------------------------------------------------------------
1 | // Wire Slave Sender
2 | // by Nicholas Zambetti
3 |
4 | // Demonstrates use of the Wire library
5 | // Sends data as an I2C/TWI slave device
6 | // Refer to the "Wire Master Reader" example for use with this
7 |
8 | // Created 29 March 2006
9 |
10 | // This example code is in the public domain.
11 |
12 |
13 | #include
14 |
15 | void setup()
16 | {
17 | Wire.begin(2); // join i2c bus with address #2
18 | Wire.onRequest(requestEvent); // register event
19 | }
20 |
21 | void loop()
22 | {
23 | delay(100);
24 | }
25 |
26 | // function that executes whenever data is requested by master
27 | // this function is registered as an event, see setup()
28 | void requestEvent()
29 | {
30 | Wire.write("hello "); // respond with message of 6 bytes
31 | // as expected by master
32 | }
33 |
--------------------------------------------------------------------------------
/libraries/Wire/examples/master_reader/master_reader.pde:
--------------------------------------------------------------------------------
1 | // Wire Master Reader
2 | // by Nicholas Zambetti
3 |
4 | // Demonstrates use of the Wire library
5 | // Reads data from an I2C/TWI slave device
6 | // Refer to the "Wire Slave Sender" example for use with this
7 |
8 | // Created 29 March 2006
9 |
10 | // This example code is in the public domain.
11 |
12 |
13 | #include
14 |
15 | void setup()
16 | {
17 | Wire.begin(); // join i2c bus (address optional for master)
18 | Serial.begin(9600); // start serial for output
19 | }
20 |
21 | void loop()
22 | {
23 | Wire.requestFrom(2, 6); // request 6 bytes from slave device #2
24 |
25 | while(Wire.available()) // slave may send less than requested
26 | {
27 | char c = Wire.read(); // receive a byte as character
28 | Serial.print(c); // print the character
29 | }
30 |
31 | delay(500);
32 | }
33 |
--------------------------------------------------------------------------------
/variants/earth/pins_arduino.h:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2011 Arduino. All right reserved.
3 |
4 | This library is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU Lesser General Public
6 | License as published by the Free Software Foundation; either
7 | version 2.1 of the License, or (at your option) any later version.
8 |
9 | This library is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | See the GNU Lesser General Public License for more details.
13 |
14 | You should have received a copy of the GNU Lesser General Public
15 | License along with this library; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | // API compatibility
20 | #include "variant.h"
21 |
22 |
--------------------------------------------------------------------------------
/variants/sun/pins_arduino.h:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2011 Arduino. All right reserved.
3 |
4 | This library is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU Lesser General Public
6 | License as published by the Free Software Foundation; either
7 | version 2.1 of the License, or (at your option) any later version.
8 |
9 | This library is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | See the GNU Lesser General Public License for more details.
13 |
14 | You should have received a copy of the GNU Lesser General Public
15 | License along with this library; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | // API compatibility
20 | #include "variant.h"
21 |
22 |
--------------------------------------------------------------------------------
/variants/template/pins_arduino.h:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2011 Arduino. All right reserved.
3 |
4 | This library is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU Lesser General Public
6 | License as published by the Free Software Foundation; either
7 | version 2.1 of the License, or (at your option) any later version.
8 |
9 | This library is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | See the GNU Lesser General Public License for more details.
13 |
14 | You should have received a copy of the GNU Lesser General Public
15 | License along with this library; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | // API compatibility
20 | #include "variant.h"
21 |
22 |
--------------------------------------------------------------------------------
/variants/F4Discovery/pins_arduino.h:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2011 Arduino. All right reserved.
3 |
4 | This library is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU Lesser General Public
6 | License as published by the Free Software Foundation; either
7 | version 2.1 of the License, or (at your option) any later version.
8 |
9 | This library is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | See the GNU Lesser General Public License for more details.
13 |
14 | You should have received a copy of the GNU Lesser General Public
15 | License along with this library; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | // API compatibility
20 | #include "variant.h"
21 |
22 |
--------------------------------------------------------------------------------
/variants/sun_prototype/pins_arduino.h:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2011 Arduino. All right reserved.
3 |
4 | This library is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU Lesser General Public
6 | License as published by the Free Software Foundation; either
7 | version 2.1 of the License, or (at your option) any later version.
8 |
9 | This library is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | See the GNU Lesser General Public License for more details.
13 |
14 | You should have received a copy of the GNU Lesser General Public
15 | License along with this library; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | // API compatibility
20 | #include "variant.h"
21 |
22 |
--------------------------------------------------------------------------------
/cores/arduino/Tone.h:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2011 Arduino. All right reserved.
3 |
4 | This library is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU Lesser General Public
6 | License as published by the Free Software Foundation; either
7 | version 2.1 of the License, or (at your option) any later version.
8 |
9 | This library is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | See the GNU Lesser General Public License for more details.
13 |
14 | You should have received a copy of the GNU Lesser General Public
15 | License along with this library; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | #ifndef _WIRING_TONE_
20 | #define _WIRING_TONE_
21 |
22 |
23 | #endif /* _WIRING_TONE_ */
24 |
--------------------------------------------------------------------------------
/system/libstm/build_gcc/release.mk:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2011 Arduino. All right reserved.
3 | #
4 | # This library is free software; you can redistribute it and/or
5 | # modify it under the terms of the GNU Lesser General Public
6 | # License as published by the Free Software Foundation; either
7 | # version 2.1 of the License, or (at your option) any later version.
8 | #
9 | # This library is distributed in the hope that it will be useful,
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | # See the GNU Lesser General Public License for more details.
13 | #
14 | # You should have received a copy of the GNU Lesser General Public
15 | # License along with this library; if not, write to the Free Software
16 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 | #
18 |
19 | # Optimization level
20 | # -O1 Optimize
21 | # -O2 Optimize even more
22 | # -O3 Optimize yet more
23 | # -O0 Reduce compilation time and make debugging produce the expected results
24 | # -Os Optimize for size
25 | OPTIMIZATION = -Os
26 |
--------------------------------------------------------------------------------
/system/libstmf4/build_gcc/release.mk:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2011 Arduino. All right reserved.
3 | #
4 | # This library is free software; you can redistribute it and/or
5 | # modify it under the terms of the GNU Lesser General Public
6 | # License as published by the Free Software Foundation; either
7 | # version 2.1 of the License, or (at your option) any later version.
8 | #
9 | # This library is distributed in the hope that it will be useful,
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | # See the GNU Lesser General Public License for more details.
13 | #
14 | # You should have received a copy of the GNU Lesser General Public
15 | # License along with this library; if not, write to the Free Software
16 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 | #
18 |
19 | # Optimization level
20 | # -O1 Optimize
21 | # -O2 Optimize even more
22 | # -O3 Optimize yet more
23 | # -O0 Reduce compilation time and make debugging produce the expected results
24 | # -Os Optimize for size
25 | OPTIMIZATION = -Os
26 |
--------------------------------------------------------------------------------
/variants/sun/build_gcc/release.mk:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2011 Arduino. All right reserved.
3 | #
4 | # This library is free software; you can redistribute it and/or
5 | # modify it under the terms of the GNU Lesser General Public
6 | # License as published by the Free Software Foundation; either
7 | # version 2.1 of the License, or (at your option) any later version.
8 | #
9 | # This library is distributed in the hope that it will be useful,
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | # See the GNU Lesser General Public License for more details.
13 | #
14 | # You should have received a copy of the GNU Lesser General Public
15 | # License along with this library; if not, write to the Free Software
16 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 | #
18 |
19 | # Optimization level
20 | # -O1 Optimize
21 | # -O2 Optimize even more
22 | # -O3 Optimize yet more
23 | # -O0 Reduce compilation time and make debugging produce the expected results
24 | # -Os Optimize for size
25 | OPTIMIZATION = -Os
26 |
--------------------------------------------------------------------------------
/variants/F4Discovery/build_gcc/release.mk:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2011 Arduino. All right reserved.
3 | #
4 | # This library is free software; you can redistribute it and/or
5 | # modify it under the terms of the GNU Lesser General Public
6 | # License as published by the Free Software Foundation; either
7 | # version 2.1 of the License, or (at your option) any later version.
8 | #
9 | # This library is distributed in the hope that it will be useful,
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | # See the GNU Lesser General Public License for more details.
13 | #
14 | # You should have received a copy of the GNU Lesser General Public
15 | # License along with this library; if not, write to the Free Software
16 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 | #
18 |
19 | # Optimization level
20 | # -O1 Optimize
21 | # -O2 Optimize even more
22 | # -O3 Optimize yet more
23 | # -O0 Reduce compilation time and make debugging produce the expected results
24 | # -Os Optimize for size
25 | OPTIMIZATION = -Os
26 |
--------------------------------------------------------------------------------
/variants/sun/build_gcc/debug.mk:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2011 Arduino. All right reserved.
3 | #
4 | # This library is free software; you can redistribute it and/or
5 | # modify it under the terms of the GNU Lesser General Public
6 | # License as published by the Free Software Foundation; either
7 | # version 2.1 of the License, or (at your option) any later version.
8 | #
9 | # This library is distributed in the hope that it will be useful,
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | # See the GNU Lesser General Public License for more details.
13 | #
14 | # You should have received a copy of the GNU Lesser General Public
15 | # License along with this library; if not, write to the Free Software
16 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 | #
18 |
19 | # Optimization level
20 | # -O1 Optimize
21 | # -O2 Optimize even more
22 | # -O3 Optimize yet more
23 | # -O0 Reduce compilation time and make debugging produce the expected results
24 | # -Os Optimize for size
25 | OPTIMIZATION = -g -O0 -DDEBUG
26 |
--------------------------------------------------------------------------------
/cores/arduino/cxxabi-compat.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2011 Arduino. All right reserved.
3 |
4 | This library is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU Lesser General Public
6 | License as published by the Free Software Foundation; either
7 | version 2.1 of the License, or (at your option) any later version.
8 |
9 | This library is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | See the GNU Lesser General Public License for more details.
13 |
14 | You should have received a copy of the GNU Lesser General Public
15 | License along with this library; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | extern "C" void __cxa_pure_virtual(void) ;
20 |
21 | /* We compile with nodefaultlibs, so we need to provide an error
22 | * handler for an empty pure virtual function */
23 | extern "C" void __cxa_pure_virtual(void) {
24 | while(1)
25 | ;
26 | }
27 |
--------------------------------------------------------------------------------
/system/libstm/build_gcc/debug.mk:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2011 Arduino. All right reserved.
3 | #
4 | # This library is free software; you can redistribute it and/or
5 | # modify it under the terms of the GNU Lesser General Public
6 | # License as published by the Free Software Foundation; either
7 | # version 2.1 of the License, or (at your option) any later version.
8 | #
9 | # This library is distributed in the hope that it will be useful,
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | # See the GNU Lesser General Public License for more details.
13 | #
14 | # You should have received a copy of the GNU Lesser General Public
15 | # License along with this library; if not, write to the Free Software
16 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 | #
18 |
19 | # Optimization level
20 | # -O1 Optimize
21 | # -O2 Optimize even more
22 | # -O3 Optimize yet more
23 | # -O0 Reduce compilation time and make debugging produce the expected results
24 | # -Os Optimize for size
25 | OPTIMIZATION = -g -O0 -DDEBUG
26 |
--------------------------------------------------------------------------------
/system/libstmf4/build_gcc/debug.mk:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2011 Arduino. All right reserved.
3 | #
4 | # This library is free software; you can redistribute it and/or
5 | # modify it under the terms of the GNU Lesser General Public
6 | # License as published by the Free Software Foundation; either
7 | # version 2.1 of the License, or (at your option) any later version.
8 | #
9 | # This library is distributed in the hope that it will be useful,
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | # See the GNU Lesser General Public License for more details.
13 | #
14 | # You should have received a copy of the GNU Lesser General Public
15 | # License along with this library; if not, write to the Free Software
16 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 | #
18 |
19 | # Optimization level
20 | # -O1 Optimize
21 | # -O2 Optimize even more
22 | # -O3 Optimize yet more
23 | # -O0 Reduce compilation time and make debugging produce the expected results
24 | # -Os Optimize for size
25 | OPTIMIZATION = -g -O0 -DDEBUG
26 |
--------------------------------------------------------------------------------
/variants/sun_prototype/build_gcc/release.mk:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2011 Arduino. All right reserved.
3 | #
4 | # This library is free software; you can redistribute it and/or
5 | # modify it under the terms of the GNU Lesser General Public
6 | # License as published by the Free Software Foundation; either
7 | # version 2.1 of the License, or (at your option) any later version.
8 | #
9 | # This library is distributed in the hope that it will be useful,
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | # See the GNU Lesser General Public License for more details.
13 | #
14 | # You should have received a copy of the GNU Lesser General Public
15 | # License along with this library; if not, write to the Free Software
16 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 | #
18 |
19 | # Optimization level
20 | # -O1 Optimize
21 | # -O2 Optimize even more
22 | # -O3 Optimize yet more
23 | # -O0 Reduce compilation time and make debugging produce the expected results
24 | # -Os Optimize for size
25 | OPTIMIZATION = -Os
26 |
--------------------------------------------------------------------------------
/variants/F4Discovery/build_gcc/debug.mk:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2011 Arduino. All right reserved.
3 | #
4 | # This library is free software; you can redistribute it and/or
5 | # modify it under the terms of the GNU Lesser General Public
6 | # License as published by the Free Software Foundation; either
7 | # version 2.1 of the License, or (at your option) any later version.
8 | #
9 | # This library is distributed in the hope that it will be useful,
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | # See the GNU Lesser General Public License for more details.
13 | #
14 | # You should have received a copy of the GNU Lesser General Public
15 | # License along with this library; if not, write to the Free Software
16 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 | #
18 |
19 | # Optimization level
20 | # -O1 Optimize
21 | # -O2 Optimize even more
22 | # -O3 Optimize yet more
23 | # -O0 Reduce compilation time and make debugging produce the expected results
24 | # -Os Optimize for size
25 | OPTIMIZATION = -g -O0 -DDEBUG
26 |
--------------------------------------------------------------------------------
/variants/sun_prototype/build_gcc/debug.mk:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2011 Arduino. All right reserved.
3 | #
4 | # This library is free software; you can redistribute it and/or
5 | # modify it under the terms of the GNU Lesser General Public
6 | # License as published by the Free Software Foundation; either
7 | # version 2.1 of the License, or (at your option) any later version.
8 | #
9 | # This library is distributed in the hope that it will be useful,
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | # See the GNU Lesser General Public License for more details.
13 | #
14 | # You should have received a copy of the GNU Lesser General Public
15 | # License along with this library; if not, write to the Free Software
16 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 | #
18 |
19 | # Optimization level
20 | # -O1 Optimize
21 | # -O2 Optimize even more
22 | # -O3 Optimize yet more
23 | # -O0 Reduce compilation time and make debugging produce the expected results
24 | # -Os Optimize for size
25 | OPTIMIZATION = -g -O0 -DDEBUG
26 |
--------------------------------------------------------------------------------
/cores/arduino/avr/dtostrf.h:
--------------------------------------------------------------------------------
1 | /*
2 | dtostrf - Emulation for dtostrf function from avr-libc
3 | Copyright (c) 2013 Arduino. All rights reserved.
4 | Written by Cristian Maglie
5 |
6 | This library is free software; you can redistribute it and/or
7 | modify it under the terms of the GNU Lesser General Public
8 | License as published by the Free Software Foundation; either
9 | version 2.1 of the License, or (at your option) any later version.
10 |
11 | This library is distributed in the hope that it will be useful,
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | Lesser General Public License for more details.
15 |
16 | You should have received a copy of the GNU Lesser General Public
17 | License along with this library; if not, write to the Free Software
18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifdef __cplusplus
22 | extern "C" {
23 | #endif
24 |
25 | char *dtostrf (double val, signed char width, unsigned char prec, char *sout);
26 |
27 | #ifdef __cplusplus
28 | }
29 | #endif
30 |
--------------------------------------------------------------------------------
/libraries/Wire/examples/slave_receiver/slave_receiver.pde:
--------------------------------------------------------------------------------
1 | // Wire Slave Receiver
2 | // by Nicholas Zambetti
3 |
4 | // Demonstrates use of the Wire library
5 | // Receives data as an I2C/TWI slave device
6 | // Refer to the "Wire Master Writer" example for use with this
7 |
8 | // Created 29 March 2006
9 |
10 | // This example code is in the public domain.
11 |
12 |
13 | #include
14 |
15 | void setup()
16 | {
17 | Wire.begin(4); // join i2c bus with address #4
18 | Wire.onReceive(receiveEvent); // register event
19 | Serial.begin(9600); // start serial for output
20 | }
21 |
22 | void loop()
23 | {
24 | delay(100);
25 | }
26 |
27 | // function that executes whenever data is received from master
28 | // this function is registered as an event, see setup()
29 | void receiveEvent(int howMany)
30 | {
31 | while(1 < Wire.available()) // loop through all but the last
32 | {
33 | char c = Wire.read(); // receive byte as a character
34 | Serial.print(c); // print the character
35 | }
36 | int x = Wire.read(); // receive byte as an integer
37 | Serial.println(x); // print the integer
38 | }
39 |
--------------------------------------------------------------------------------
/cores/arduino/avr/dtostrf.c:
--------------------------------------------------------------------------------
1 | /*
2 | dtostrf - Emulation for dtostrf function from avr-libc
3 | Copyright (c) 2013 Arduino. All rights reserved.
4 | Written by Cristian Maglie
5 |
6 | This library is free software; you can redistribute it and/or
7 | modify it under the terms of the GNU Lesser General Public
8 | License as published by the Free Software Foundation; either
9 | version 2.1 of the License, or (at your option) any later version.
10 |
11 | This library is distributed in the hope that it will be useful,
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | Lesser General Public License for more details.
15 |
16 | You should have received a copy of the GNU Lesser General Public
17 | License along with this library; if not, write to the Free Software
18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | char *dtostrf (double val, signed char width, unsigned char prec, char *sout) {
22 | char fmt[20];
23 | sprintf(fmt, "%%%d.%df", width, prec);
24 | sprintf(sout, fmt, val);
25 | return sout;
26 | }
27 |
28 |
--------------------------------------------------------------------------------
/system/libstm/build_iar/libsam.eww:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | $WS_DIR$\..\..\..\cores\sam\build_iar\libarduino.ewp
6 |
7 |
8 | $WS_DIR$\libsam.ewp
9 |
10 |
11 | $WS_DIR$\..\..\..\variants\sam3s_ek\build_iar\libvariant_sam3s_ek.ewp
12 |
13 |
14 | $WS_DIR$\..\..\..\cores\sam\validation\build_iar\test.ewp
15 |
16 |
17 |
18 | all_debug_sam3s
19 |
20 | libsam
21 | Debug
22 |
23 |
24 | libarduino
25 | Debug
26 |
27 |
28 | libsam3s_ek
29 | Debug
30 |
31 |
32 | test
33 | Debug
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/system/libstmf4/build_iar/libsam.eww:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | $WS_DIR$\..\..\..\cores\sam\build_iar\libarduino.ewp
6 |
7 |
8 | $WS_DIR$\libsam.ewp
9 |
10 |
11 | $WS_DIR$\..\..\..\variants\sam3s_ek\build_iar\libvariant_sam3s_ek.ewp
12 |
13 |
14 | $WS_DIR$\..\..\..\cores\sam\validation\build_iar\test.ewp
15 |
16 |
17 |
18 | all_debug_sam3s
19 |
20 | libsam
21 | Debug
22 |
23 |
24 | libarduino
25 | Debug
26 |
27 |
28 | libsam3s_ek
29 | Debug
30 |
31 |
32 | test
33 | Debug
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/cores/arduino/Reset.h:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2014 MakerLab.me & Andy Sze(andy.sze.mail@gmail.com) All right reserved.
3 | Copyright (c) 2012 Arduino. 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.
13 | See the GNU 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 RESET_H
21 | #define RESET_H
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | void initiateReset(int ms);
28 | void tickReset();
29 | void cancelReset();
30 |
31 | #ifdef __cplusplus
32 | }
33 | #endif
34 |
35 | #endif
36 |
--------------------------------------------------------------------------------
/libraries/Wire/examples/digital_potentiometer/digital_potentiometer.pde:
--------------------------------------------------------------------------------
1 | // I2C Digital Potentiometer
2 | // by Nicholas Zambetti
3 | // and Shawn Bonkowski
4 |
5 | // Demonstrates use of the Wire library
6 | // Controls AD5171 digital potentiometer via I2C/TWI
7 |
8 | // Created 31 March 2006
9 |
10 | // This example code is in the public domain.
11 |
12 | // This example code is in the public domain.
13 |
14 |
15 | #include
16 |
17 | void setup()
18 | {
19 | Wire.begin(); // join i2c bus (address optional for master)
20 | }
21 |
22 | byte val = 0;
23 |
24 | void loop()
25 | {
26 | Wire.beginTransmission(44); // transmit to device #44 (0x2c)
27 | // device address is specified in datasheet
28 | Wire.write(byte(0x00)); // sends instruction byte
29 | Wire.write(val); // sends potentiometer value byte
30 | Wire.endTransmission(); // stop transmitting
31 |
32 | val++; // increment value
33 | if(val == 64) // if reached 64th position (max)
34 | {
35 | val = 0; // start over from lowest value
36 | }
37 | delay(500);
38 | }
39 |
40 |
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | # MakerLabBoard
2 | This is MakerLabBoard core source files, make Arduino IDE supports STM32F103XX cortex-m3 arm cpu.
3 |
4 | 中文详细教程:http://makerlab.me/guides/2
5 |
6 | # how to install
7 | ## download Arduino IDE 1.5.8 Beta
8 | You must use 1.5.8 Beta.
9 | http://arduino.cc/en/Main/Software
10 | ## download The MakerLabBoard core files.
11 | You can use git or
12 | zip(https://github.com/MakerLabMe/MakerLabBoard/archive/master.zip).
13 | Then put the folder in the Arduino IDE hardware/arduino directory.Like this:
14 |
15 | Mac: right click the Arduino.app --> "Show Package Contents" and go to `Contents/Resources/Java/hardware/arduino`
16 | and copy the core files to there.
17 |
18 | Like this:
19 |
20 | ```sh
21 | hardware/arduino > ls
22 | avr sam stm32
23 | #The folder name must be **stm32**,because I hardcoded the folder name.
24 | hardware/arduino > cd stm32
25 | hardware/arduino/stm32 > ls
26 | firmwares programmers.txt system
27 | boards.txt libraries readme.md variants
28 | cores platform.txt sloadhost
29 | ```
30 |
31 | Now restart the Arduino IDE, you can see the Tools>Board will add MakerLab Board.
32 | Then you can use Arduino IDE for stm32f103 based board.
33 |
34 | # Todo
35 | more info.
36 |
--------------------------------------------------------------------------------
/system/CMSIS/CMSIS/Include/arm_common_tables.h:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------
2 | * Copyright (C) 2010 ARM Limited. All rights reserved.
3 | *
4 | * $Date: 11. November 2010
5 | * $Revision: V1.0.2
6 | *
7 | * Project: CMSIS DSP Library
8 | * Title: arm_common_tables.h
9 | *
10 | * Description: This file has extern declaration for common tables like Bitreverse, reciprocal etc which are used across different functions
11 | *
12 | * Target Processor: Cortex-M4/Cortex-M3
13 | *
14 | * Version 1.0.2 2010/11/11
15 | * Documentation updated.
16 | *
17 | * Version 1.0.1 2010/10/05
18 | * Production release and review comments incorporated.
19 | *
20 | * Version 1.0.0 2010/09/20
21 | * Production release and review comments incorporated.
22 | * -------------------------------------------------------------------- */
23 |
24 | #ifndef _ARM_COMMON_TABLES_H
25 | #define _ARM_COMMON_TABLES_H
26 |
27 | #include "arm_math.h"
28 |
29 | extern uint16_t armBitRevTable[256];
30 | extern q15_t armRecipTableQ15[64];
31 | extern q31_t armRecipTableQ31[64];
32 | extern const q31_t realCoefAQ31[1024];
33 | extern const q31_t realCoefBQ31[1024];
34 |
35 | #endif /* ARM_COMMON_TABLES_H */
36 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam4s/source/iar/sam4s16_sram.icf:
--------------------------------------------------------------------------------
1 | /*###ICF### Section handled by ICF editor, don't touch! ****/
2 | /*-Editor annotation file-*/
3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
4 | /*-Specials-*/
5 | define symbol __ICFEDIT_intvec_start__ = 0x20000000;
6 | /*-Memory Regions-*/
7 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
8 | define symbol __ICFEDIT_region_RAM_end__ = 0x2001FFFF;
9 | /*-Sizes-*/
10 | define symbol __ICFEDIT_size_cstack__ = 0x2000;
11 | define symbol __ICFEDIT_size_heap__ = 0x200;
12 | /**** End of ICF editor section. ###ICF###*/
13 |
14 | define memory mem with size = 4G;
15 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
16 |
17 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
18 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
19 |
20 | initialize by copy with packing=none { readwrite };
21 | do not initialize { section .noinit };
22 |
23 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
24 | place in RAM_region { readonly };
25 | place in RAM_region { readwrite, block CSTACK, block HEAP };
26 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam4s/source/iar/sam4s8_sram.icf:
--------------------------------------------------------------------------------
1 | /*###ICF### Section handled by ICF editor, don't touch! ****/
2 | /*-Editor annotation file-*/
3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
4 | /*-Specials-*/
5 | define symbol __ICFEDIT_intvec_start__ = 0x20000000;
6 | /*-Memory Regions-*/
7 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
8 | define symbol __ICFEDIT_region_RAM_end__ = 0x2001FFFF;
9 | /*-Sizes-*/
10 | define symbol __ICFEDIT_size_cstack__ = 0x2000;
11 | define symbol __ICFEDIT_size_heap__ = 0x200;
12 | /**** End of ICF editor section. ###ICF###*/
13 |
14 | define memory mem with size = 4G;
15 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
16 |
17 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
18 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
19 |
20 | initialize by copy with packing=none { readwrite };
21 | do not initialize { section .noinit };
22 |
23 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
24 | place in RAM_region { readonly };
25 | place in RAM_region { readwrite, block CSTACK, block HEAP };
26 |
--------------------------------------------------------------------------------
/cores/arduino/WMath.h:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2011 Arduino. All right reserved.
3 |
4 | This library is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU Lesser General Public
6 | License as published by the Free Software Foundation; either
7 | version 2.1 of the License, or (at your option) any later version.
8 |
9 | This library is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | See the GNU Lesser General Public License for more details.
13 |
14 | You should have received a copy of the GNU Lesser General Public
15 | License along with this library; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | #ifndef _WIRING_MATH_
20 | #define _WIRING_MATH_
21 |
22 | extern long random( long ) ;
23 | extern long random( long, long ) ;
24 | extern void randomSeed( uint32_t dwSeed ) ;
25 | extern long map( long, long, long, long, long ) ;
26 |
27 | extern uint16_t makeWord( uint16_t w ) ;
28 | extern uint16_t makeWord( uint8_t h, uint8_t l ) ;
29 |
30 | #define word(...) makeWord(__VA_ARGS__)
31 |
32 |
33 | #endif /* _WIRING_MATH_ */
34 |
--------------------------------------------------------------------------------
/system/CMSIS/CMSIS/Documentation/DSP_Lib/html/search/defines_70.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/cores/arduino/WInterrupts.h:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2014 MakerLab.me & Andy Sze(andy.sze.mail@gmail.com) All right reserved.
3 | Copyright (c) 2011-2012 Arduino. 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.
13 | See the GNU 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 _WIRING_INTERRUPTS_
21 | #define _WIRING_INTERRUPTS_
22 |
23 | #include "Arduino.h"
24 |
25 | #ifdef __cplusplus
26 | extern "C" {
27 | #endif
28 |
29 | void attachInterrupt(uint32_t pin, void (*callback)(void), uint32_t mode);
30 |
31 | void detachInterrupt(uint32_t pin);
32 |
33 | // void interrupts(void);
34 |
35 | // void noInterrupts(void);
36 |
37 | #ifdef __cplusplus
38 | }
39 | #endif
40 |
41 | #endif /* _WIRING_INTERRUPTS_ */
42 |
--------------------------------------------------------------------------------
/cores/arduino/IPAddress.cpp:
--------------------------------------------------------------------------------
1 |
2 | #include
3 | #include
4 |
5 |
6 | IPAddress::IPAddress()
7 | {
8 | memset(_address, 0, sizeof(_address));
9 | }
10 |
11 | IPAddress::IPAddress(uint8_t first_octet, uint8_t second_octet, uint8_t third_octet, uint8_t fourth_octet)
12 | {
13 | _address[0] = first_octet;
14 | _address[1] = second_octet;
15 | _address[2] = third_octet;
16 | _address[3] = fourth_octet;
17 | }
18 |
19 | IPAddress::IPAddress(uint32_t address)
20 | {
21 | memcpy(_address, &address, sizeof(_address));
22 | }
23 |
24 | IPAddress::IPAddress(const uint8_t *address)
25 | {
26 | memcpy(_address, address, sizeof(_address));
27 | }
28 |
29 | IPAddress& IPAddress::operator=(const uint8_t *address)
30 | {
31 | memcpy(_address, address, sizeof(_address));
32 | return *this;
33 | }
34 |
35 | IPAddress& IPAddress::operator=(uint32_t address)
36 | {
37 | memcpy(_address, (const uint8_t *)&address, sizeof(_address));
38 | return *this;
39 | }
40 |
41 | bool IPAddress::operator==(const uint8_t* addr)
42 | {
43 | return memcmp(addr, _address, sizeof(_address)) == 0;
44 | }
45 |
46 | size_t IPAddress::printTo(Print& p) const
47 | {
48 | size_t n = 0;
49 | for (int i =0; i < 3; i++)
50 | {
51 | n += p.print(_address[i], DEC);
52 | n += p.print('.');
53 | }
54 | n += p.print(_address[3], DEC);
55 | return n;
56 | }
57 |
58 |
59 |
--------------------------------------------------------------------------------
/cores/arduino/wiring_private.h:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2014 MakerLab.me & Andy Sze(andy.sze.mail@gmail.com) All right reserved.
3 | Copyright (c) 2011 Arduino. 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.
13 | See the GNU 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 WiringPrivate_h
21 | #define WiringPrivate_h
22 |
23 | #include
24 | #include
25 | #include
26 |
27 | #ifdef __cplusplus
28 | extern "C"{
29 | #endif
30 |
31 | // Includes Atmel CMSIS
32 | //#include
33 | // Includes STM32 CMSIS
34 | #include
35 |
36 | #include "wiring_constants.h"
37 |
38 | #ifdef __cplusplus
39 | } // extern "C"
40 |
41 | #include "HardwareSerial.h"
42 |
43 | #endif
44 |
45 | #endif
46 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3sd8/source/iar/sam3sd8_sram.icf:
--------------------------------------------------------------------------------
1 | /*###ICF### Section handled by ICF editor, don't touch! ****/
2 | /*-Editor annotation file-*/
3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */
4 | /*-Vector table start*/
5 | define symbol __ICFEDIT_vector_start__ = 0x20000000;
6 | /*-Memory Regions-*/
7 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
8 | define symbol __ICFEDIT_region_RAM_end__ = 0x2000FFFF;
9 | /*-Sizes-*/
10 | define symbol __ICFEDIT_size_cstack__ = 0x2000;
11 | define symbol __ICFEDIT_size_heap__ = 0x200;
12 | /**** End of ICF editor section. ###ICF###*/
13 |
14 | define memory mem with size = 4G;
15 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
16 |
17 | /* define block RamVect with alignment = 8, size = __ICFEDIT_size_vectors__ { }; */
18 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
19 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
20 |
21 | initialize by copy with packing=none { readwrite };
22 | do not initialize { section .noinit };
23 |
24 | place at address mem:__ICFEDIT_vector_start__ { readonly section .intvec };
25 | /*place in RAM_region { readonly, readwrite, block CSTACK, block HEAP };*/
26 | place in RAM_region { readonly };
27 | place in RAM_region { readwrite, block CSTACK, block HEAP };
28 |
--------------------------------------------------------------------------------
/cores/arduino/itoa.h:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2011 Arduino. All right reserved.
3 |
4 | This library is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU Lesser General Public
6 | License as published by the Free Software Foundation; either
7 | version 2.1 of the License, or (at your option) any later version.
8 |
9 | This library is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | See the GNU Lesser General Public License for more details.
13 |
14 | You should have received a copy of the GNU Lesser General Public
15 | License along with this library; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | #ifndef _ITOA_
20 | #define _ITOA_
21 |
22 | #ifdef __cplusplus
23 | extern "C"{
24 | #endif // __cplusplus
25 |
26 | #if 0
27 |
28 | extern void itoa( int n, char s[] ) ;
29 |
30 | #else
31 |
32 | extern char* itoa( int value, char *string, int radix ) ;
33 | extern char* ltoa( long value, char *string, int radix ) ;
34 | extern char* utoa( unsigned long value, char *string, int radix ) ;
35 | extern char* ultoa( unsigned long value, char *string, int radix ) ;
36 | #endif /* 0 */
37 |
38 | #ifdef __cplusplus
39 | } // extern "C"
40 | #endif // __cplusplus
41 |
42 | #endif // _ITOA_
43 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam4s/source/iar/sam4s16_flash.icf:
--------------------------------------------------------------------------------
1 | /*###ICF### Section handled by ICF editor, don't touch! ****/
2 | /*-Editor annotation file-*/
3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
4 | /*-Specials-*/
5 | define symbol __ICFEDIT_intvec_start__ = 0x00400000;
6 | /*-Memory Regions-*/
7 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
8 | define symbol __ICFEDIT_region_RAM_end__ = 0x2001FFFF;
9 | define symbol __ICFEDIT_region_ROM_start__ = 0x00400000;
10 | define symbol __ICFEDIT_region_ROM_end__ = 0x004FFFFF;
11 | /*-Sizes-*/
12 | define symbol __ICFEDIT_size_cstack__ = 0x2000;
13 | define symbol __ICFEDIT_size_heap__ = 0x200;
14 | /**** End of ICF editor section. ###ICF###*/
15 |
16 | define memory mem with size = 4G;
17 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
18 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
19 |
20 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
21 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
22 |
23 | initialize by copy { readwrite };
24 | do not initialize { section .noinit };
25 |
26 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
27 | place in ROM_region { readonly };
28 | place in RAM_region { readwrite, block CSTACK, block HEAP };
29 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam4s/source/iar/sam4s8_flash.icf:
--------------------------------------------------------------------------------
1 | /*###ICF### Section handled by ICF editor, don't touch! ****/
2 | /*-Editor annotation file-*/
3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
4 | /*-Specials-*/
5 | define symbol __ICFEDIT_intvec_start__ = 0x00400000;
6 | /*-Memory Regions-*/
7 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
8 | define symbol __ICFEDIT_region_RAM_end__ = 0x2001FFFF;
9 | define symbol __ICFEDIT_region_ROM_start__ = 0x00400000;
10 | define symbol __ICFEDIT_region_ROM_end__ = 0x0047FFFF;
11 | /*-Sizes-*/
12 | define symbol __ICFEDIT_size_cstack__ = 0x2000;
13 | define symbol __ICFEDIT_size_heap__ = 0x200;
14 | /**** End of ICF editor section. ###ICF###*/
15 |
16 | define memory mem with size = 4G;
17 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
18 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
19 |
20 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
21 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
22 |
23 | initialize by copy { readwrite };
24 | do not initialize { section .noinit };
25 |
26 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
27 | place in ROM_region { readonly };
28 | place in RAM_region { readwrite, block CSTACK, block HEAP };
29 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3s/source/iar/sam3s1_flash.icf:
--------------------------------------------------------------------------------
1 | /*###ICF### Section handled by ICF editor, don't touch! ****/
2 | /*-Editor annotation file-*/
3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */
4 | /*-Vector table start*/
5 | define symbol __ICFEDIT_vector_start__ = 0x00400000;
6 | /*-Memory Regions-*/
7 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
8 | define symbol __ICFEDIT_region_RAM_end__ = 0x20003FFF;
9 | define symbol __ICFEDIT_region_ROM_start__ = 0x00400000;
10 | define symbol __ICFEDIT_region_ROM_end__ = 0x0040FFFF;
11 | /*-Sizes-*/
12 | define symbol __ICFEDIT_size_cstack__ = 0x2000;
13 | define symbol __ICFEDIT_size_heap__ = 0x200;
14 | /**** End of ICF editor section. ###ICF###*/
15 |
16 | define memory mem with size = 4G;
17 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
18 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
19 |
20 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
21 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
22 |
23 | initialize by copy { readwrite };
24 | do not initialize { section .noinit };
25 |
26 | place at address mem:__ICFEDIT_vector_start__ { readonly section .vectors };
27 | place in ROM_region { readonly };
28 | place in RAM_region { readwrite,,block CSTACK, block HEAP };
29 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3s/source/iar/sam3s2_flash.icf:
--------------------------------------------------------------------------------
1 | /*###ICF### Section handled by ICF editor, don't touch! ****/
2 | /*-Editor annotation file-*/
3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */
4 | /*-Vector table start*/
5 | define symbol __ICFEDIT_vector_start__ = 0x00400000;
6 | /*-Memory Regions-*/
7 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
8 | define symbol __ICFEDIT_region_RAM_end__ = 0x20007FFF;
9 | define symbol __ICFEDIT_region_ROM_start__ = 0x00400000;
10 | define symbol __ICFEDIT_region_ROM_end__ = 0x0041FFFF;
11 | /*-Sizes-*/
12 | define symbol __ICFEDIT_size_cstack__ = 0x2000;
13 | define symbol __ICFEDIT_size_heap__ = 0x200;
14 | /**** End of ICF editor section. ###ICF###*/
15 |
16 | define memory mem with size = 4G;
17 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
18 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
19 |
20 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
21 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
22 |
23 | initialize by copy { readwrite };
24 | do not initialize { section .noinit };
25 |
26 | place at address mem:__ICFEDIT_vector_start__ { readonly section .vectors };
27 | place in ROM_region { readonly };
28 | place in RAM_region { readwrite,,block CSTACK, block HEAP };
29 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3s/source/iar/sam3s4_flash.icf:
--------------------------------------------------------------------------------
1 | /*###ICF### Section handled by ICF editor, don't touch! ****/
2 | /*-Editor annotation file-*/
3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */
4 | /*-Vector table start*/
5 | define symbol __ICFEDIT_vector_start__ = 0x00400000;
6 | /*-Memory Regions-*/
7 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
8 | define symbol __ICFEDIT_region_RAM_end__ = 0x2000BFFF;
9 | define symbol __ICFEDIT_region_ROM_start__ = 0x00400000;
10 | define symbol __ICFEDIT_region_ROM_end__ = 0x0043FFFF;
11 | /*-Sizes-*/
12 | define symbol __ICFEDIT_size_cstack__ = 0x2000;
13 | define symbol __ICFEDIT_size_heap__ = 0x200;
14 | /**** End of ICF editor section. ###ICF###*/
15 |
16 | define memory mem with size = 4G;
17 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
18 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
19 |
20 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
21 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
22 |
23 | initialize by copy { readwrite };
24 | do not initialize { section .noinit };
25 |
26 | place at address mem:__ICFEDIT_vector_start__ { readonly section .intvec };
27 | place in ROM_region { readonly };
28 | place in RAM_region { readwrite, block CSTACK, block HEAP };
29 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3sd8/source/iar/sam3s8_flash.icf:
--------------------------------------------------------------------------------
1 | /*###ICF### Section handled by ICF editor, don't touch! ****/
2 | /*-Editor annotation file-*/
3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */
4 | /*-Vector table start*/
5 | define symbol __ICFEDIT_vector_start__ = 0x00400000;
6 | /*-Memory Regions-*/
7 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
8 | define symbol __ICFEDIT_region_RAM_end__ = 0x2000FFFF;
9 | define symbol __ICFEDIT_region_ROM_start__ = 0x00400000;
10 | define symbol __ICFEDIT_region_ROM_end__ = 0x0047FFFF;
11 | /*-Sizes-*/
12 | define symbol __ICFEDIT_size_cstack__ = 0x3000;
13 | define symbol __ICFEDIT_size_heap__ = 0x200;
14 | /**** End of ICF editor section. ###ICF###*/
15 |
16 | define memory mem with size = 4G;
17 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
18 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
19 |
20 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
21 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
22 |
23 | initialize by copy { readwrite };
24 | do not initialize { section .noinit };
25 |
26 | place at address mem:__ICFEDIT_vector_start__ { readonly section .intvec };
27 | place in ROM_region { readonly };
28 | place in RAM_region { readwrite, block CSTACK, block HEAP };
29 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3sd8/source/iar/sam3sd8_flash.icf:
--------------------------------------------------------------------------------
1 | /*###ICF### Section handled by ICF editor, don't touch! ****/
2 | /*-Editor annotation file-*/
3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */
4 | /*-Vector table start*/
5 | define symbol __ICFEDIT_vector_start__ = 0x00400000;
6 | /*-Memory Regions-*/
7 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
8 | define symbol __ICFEDIT_region_RAM_end__ = 0x2000FFFF;
9 | define symbol __ICFEDIT_region_ROM_start__ = 0x00400000;
10 | define symbol __ICFEDIT_region_ROM_end__ = 0x0043FFFF;
11 | /*-Sizes-*/
12 | define symbol __ICFEDIT_size_cstack__ = 0x3000;
13 | define symbol __ICFEDIT_size_heap__ = 0x200;
14 | /**** End of ICF editor section. ###ICF###*/
15 |
16 | define memory mem with size = 4G;
17 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
18 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
19 |
20 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
21 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
22 |
23 | initialize by copy { readwrite };
24 | do not initialize { section .noinit };
25 |
26 | place at address mem:__ICFEDIT_vector_start__ { readonly section .intvec };
27 | place in ROM_region { readonly };
28 | place in RAM_region { readwrite, block CSTACK, block HEAP };
29 |
--------------------------------------------------------------------------------
/system/CMSIS/CMSIS/README.txt:
--------------------------------------------------------------------------------
1 | * -------------------------------------------------------------------
2 | * Copyright (C) 2011 ARM Limited. All rights reserved.
3 | *
4 | * Date: 25 July 2011
5 | * Revision: V2.10
6 | *
7 | * Project: Cortex Microcontroller Software Interface Standard (CMSIS)
8 | * Title: Release Note for CMSIS
9 | *
10 | * -------------------------------------------------------------------
11 |
12 |
13 | NOTE - Open the index.html file to access CMSIS documentation
14 |
15 |
16 | The Cortex Microcontroller Software Interface Standard (CMSIS) provides a single standard across all
17 | Cortex-Mx processor series vendors. It enables code re-use and code sharing across software projects
18 | and reduces time-to-market for new embedded applications.
19 |
20 | CMSIS is released under the terms of the end user license agreement ("CMSIS END USER LICENCE AGREEMENT.pdf").
21 | Any user of the software package is bound to the terms and conditions of the end user license agreement.
22 |
23 |
24 | You will find the following sub-directories:
25 |
26 | Documentation - Contains CMSIS documentation.
27 |
28 | DSP_Lib - MDK project files, Examples and source files etc.. to build the
29 | CMSIS DSP Software Library for Cortex-M0, Cortex-M3, Cortex-M4 processors.
30 |
31 | Include - CMSIS Core Support and CMSIS DSP Include Files.
32 |
33 | Lib - CMSIS DSP Binaries
34 | ---
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3n/source/iar/sam3n1_flash.icf:
--------------------------------------------------------------------------------
1 | /*###ICF### Section handled by ICF editor, don't touch! ****/
2 | /*-Editor annotation file-*/
3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */
4 | /*-Vector table start*/
5 | define symbol __ICFEDIT_vector_start__ = 0x00400000;
6 | /*-Memory Regions-*/
7 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
8 | define symbol __ICFEDIT_region_RAM_end__ = 0x20001FFF;
9 | define symbol __ICFEDIT_region_ROM_start__ = 0x00400000;
10 | define symbol __ICFEDIT_region_ROM_end__ = 0x0040FFFF;
11 | /*-Sizes-*/
12 | define symbol __ICFEDIT_size_cstack__ = 0x800;
13 | define symbol __ICFEDIT_size_heap__ = 0x800;
14 | /**** End of ICF editor section. ###ICF###*/
15 |
16 | define memory mem with size = 4G;
17 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
18 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
19 |
20 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
21 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
22 |
23 | initialize by copy with packing=none { readwrite };
24 | do not initialize { section .noinit };
25 |
26 | place at address mem:__ICFEDIT_vector_start__ { readonly section .intvec };
27 | place in ROM_region { readonly };
28 | place in RAM_region { readwrite, block CSTACK, block HEAP };
29 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3n/source/iar/sam3n2_flash.icf:
--------------------------------------------------------------------------------
1 | /*###ICF### Section handled by ICF editor, don't touch! ****/
2 | /*-Editor annotation file-*/
3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */
4 | /*-Vector table start*/
5 | define symbol __ICFEDIT_vector_start__ = 0x00400000;
6 | /*-Memory Regions-*/
7 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
8 | define symbol __ICFEDIT_region_RAM_end__ = 0x20003FFF;
9 | define symbol __ICFEDIT_region_ROM_start__ = 0x00400000;
10 | define symbol __ICFEDIT_region_ROM_end__ = 0x0041FFFF;
11 | /*-Sizes-*/
12 | define symbol __ICFEDIT_size_cstack__ = 0x800;
13 | define symbol __ICFEDIT_size_heap__ = 0x800;
14 | /**** End of ICF editor section. ###ICF###*/
15 |
16 | define memory mem with size = 4G;
17 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
18 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
19 |
20 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
21 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
22 |
23 | initialize by copy with packing=none { readwrite };
24 | do not initialize { section .noinit };
25 |
26 | place at address mem:__ICFEDIT_vector_start__ { readonly section .intvec };
27 | place in ROM_region { readonly };
28 | place in RAM_region { readwrite, block CSTACK, block HEAP };
29 |
--------------------------------------------------------------------------------
/cores/arduino/main.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2014 MakerLab.me & Andy Sze(andy.sze.mail@gmail.com) All right reserved.
3 | Copyright (c) 2011 Arduino. 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.
13 | See the GNU 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 | #define ARDUINO_MAIN
21 | #include "Arduino.h"
22 |
23 | __IO uint32_t TimingMillis = 0;
24 |
25 |
26 | void TimeTick_Increment(void)
27 | {
28 | TimingMillis++;
29 | }
30 |
31 | /*
32 | * \brief Main entry point of Arduino application
33 | */
34 | int main( void )
35 | {
36 | init();
37 | TimingMillis;
38 |
39 | //delay(1);
40 |
41 | #if defined(USBCON)
42 | //USBDevice.attach();
43 | #endif
44 |
45 | setup();
46 |
47 | for (;;)
48 | {
49 | loop();
50 | if (serialEventRun) serialEventRun();
51 | }
52 |
53 | return 0;
54 | }
55 |
--------------------------------------------------------------------------------
/cores/arduino/Printable.h:
--------------------------------------------------------------------------------
1 | /*
2 | Printable.h - Interface class that allows printing of complex types
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 Printable_h
21 | #define Printable_h
22 |
23 | #include
24 |
25 | class Print;
26 |
27 | /** The Printable class provides a way for new classes to allow themselves to be printed.
28 | By deriving from Printable and implementing the printTo method, it will then be possible
29 | for users to print out instances of this class by passing them into the usual
30 | Print::print and Print::println methods.
31 | */
32 |
33 | class Printable
34 | {
35 | public:
36 | virtual size_t printTo(Print& p) const = 0;
37 | };
38 |
39 | #endif
40 |
41 |
--------------------------------------------------------------------------------
/cores/arduino/HardwareSerial.h:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2011 Arduino. All right reserved.
3 |
4 | This library is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU Lesser General Public
6 | License as published by the Free Software Foundation; either
7 | version 2.1 of the License, or (at your option) any later version.
8 |
9 | This library is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | See the GNU Lesser General Public License for more details.
13 |
14 | You should have received a copy of the GNU Lesser General Public
15 | License along with this library; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | #ifndef HardwareSerial_h
20 | #define HardwareSerial_h
21 |
22 | #include
23 |
24 | #include "Stream.h"
25 |
26 | class HardwareSerial : public Stream
27 | {
28 | public:
29 | void begin(unsigned long);
30 | void end();
31 | virtual int available(void) = 0;
32 | virtual int peek(void) = 0;
33 | virtual int16_t read(void) = 0;
34 | virtual void flush(void) = 0;
35 | virtual size_t write(uint8_t) = 0;
36 | using Print::write; // pull in write(str) and write(buf, size) from Print
37 | virtual operator bool() = 0;
38 | };
39 |
40 | extern void serialEventRun(void) __attribute__((weak));
41 |
42 | #endif
43 |
--------------------------------------------------------------------------------
/cores/arduino/RingBuffer.h:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2011 Arduino. All right reserved.
3 |
4 | This library is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU Lesser General Public
6 | License as published by the Free Software Foundation; either
7 | version 2.1 of the License, or (at your option) any later version.
8 |
9 | This library is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | See the GNU Lesser General Public License for more details.
13 |
14 | You should have received a copy of the GNU Lesser General Public
15 | License along with this library; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | #ifndef _RING_BUFFER_
20 | #define _RING_BUFFER_
21 |
22 | #include
23 |
24 | // Define constants and variables for buffering incoming serial data. We're
25 | // using a ring buffer (I think), in which head is the index of the location
26 | // to which to write the next incoming character and tail is the index of the
27 | // location from which to read.
28 | #define SERIAL_BUFFER_SIZE 64
29 |
30 | class RingBuffer
31 | {
32 | public:
33 | uint8_t _aucBuffer[SERIAL_BUFFER_SIZE] ;
34 | int _iHead ;
35 | int _iTail ;
36 |
37 | public:
38 | RingBuffer( void ) ;
39 | void store_char( uint8_t c ) ;
40 | } ;
41 |
42 | #endif /* _RING_BUFFER_ */
43 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam4s/include/system_sam4s.h:
--------------------------------------------------------------------------------
1 | /*! \file *********************************************************************
2 | *
3 | * \brief CMSIS Cortex-M# Device Peripheral Access Layer Header File
4 | * for SAM4 devices.
5 | *
6 | * $asf_license$
7 | *
8 | * \par Purpose
9 | *
10 | * This file provides basic support for Cortex-M processor based
11 | * microcontrollers.
12 | *
13 | * \author Atmel Corporation: http://www.atmel.com \n
14 | * Support and FAQ: http://support.atmel.no/
15 | *
16 | ******************************************************************************/
17 |
18 | #ifndef SYSTEM_SAM4S_H_INCLUDED
19 | #define SYSTEM_SAM4S_H_INCLUDED
20 |
21 | /* @cond 0 */
22 | /**INDENT-OFF**/
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 | /**INDENT-ON**/
27 | /* @endcond */
28 |
29 | #include
30 |
31 | extern uint32_t SystemCoreClock; /* System Clock Frequency (Core Clock) */
32 |
33 | /**
34 | * @brief Setup the microcontroller system.
35 | * Initialize the System and update the SystemCoreClock variable.
36 | */
37 | void SystemInit(void);
38 |
39 | /**
40 | * @brief Updates the SystemCoreClock with current core Clock
41 | * retrieved from cpu registers.
42 | */
43 | void SystemCoreClockUpdate(void);
44 |
45 | /**
46 | * Initialize flash.
47 | */
48 | void system_init_flash(uint32_t dw_clk);
49 |
50 | /* @cond 0 */
51 | /**INDENT-OFF**/
52 | #ifdef __cplusplus
53 | }
54 | #endif
55 | /**INDENT-ON**/
56 | /* @endcond */
57 |
58 | #endif /* SYSTEM_SAM4S_H_INCLUDED */
59 |
--------------------------------------------------------------------------------
/cores/arduino/wiring_pulse.h:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2014 MakerLab.me & Andy Sze(andy.sze.mail@gmail.com) All right reserved.
3 | Copyright (c) 2011 Arduino. 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.
13 | See the GNU 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 _WIRING_PULSE_
21 | #define _WIRING_PULSE_
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /*
28 | * \brief Measures the length (in microseconds) of a pulse on the pin; state is HIGH
29 | * or LOW, the type of pulse to measure. Works on pulses from 2-3 microseconds
30 | * to 3 minutes in length, but must be called at least a few dozen microseconds
31 | * before the start of the pulse.
32 | */
33 | extern uint32_t pulseIn( uint32_t ulPin, uint32_t ulState, uint32_t ulTimeout = 1000000L ) ;
34 |
35 |
36 | #ifdef __cplusplus
37 | }
38 | #endif
39 |
40 | #endif /* _WIRING_PULSE_ */
41 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3s/include/system_sam3s.h:
--------------------------------------------------------------------------------
1 | /*! \file *********************************************************************
2 | *
3 | * \brief CMSIS Cortex-M# Device Peripheral Access Layer Header File
4 | * for SAM3 devices.
5 | *
6 | * $asf_license$
7 | *
8 | * \par Purpose
9 | *
10 | * This file provides basic support for Cortex-M processor based
11 | * microcontrollers.
12 | *
13 | * \author Atmel Corporation: http://www.atmel.com \n
14 | * Support and FAQ: http://support.atmel.no/
15 | *
16 | ******************************************************************************/
17 |
18 | #ifndef SYSTEM_SAM3S_H_INCLUDED
19 | #define SYSTEM_SAM3S_H_INCLUDED
20 |
21 | /* @cond 0 */
22 | /**INDENT-OFF**/
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 | /**INDENT-ON**/
27 | /* @endcond */
28 |
29 | #include
30 |
31 | extern uint32_t SystemCoreClock; /* System Clock Frequency (Core Clock) */
32 |
33 | /**
34 | * @brief Setup the microcontroller system.
35 | * Initialize the System and update the SystemCoreClock variable.
36 | */
37 | void SystemInit(void);
38 |
39 | /**
40 | * @brief Updates the SystemCoreClock with current core Clock
41 | * retrieved from cpu registers.
42 | */
43 | void SystemCoreClockUpdate(void);
44 |
45 | /**
46 | * Initialize flash.
47 | */
48 | void system_init_flash(uint32_t dw_clk);
49 |
50 | /* @cond 0 */
51 | /**INDENT-OFF**/
52 | #ifdef __cplusplus
53 | }
54 | #endif
55 | /**INDENT-ON**/
56 | /* @endcond */
57 |
58 | #endif /* SYSTEM_SAM3S_H_INCLUDED */
59 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3u/include/system_sam3u.h:
--------------------------------------------------------------------------------
1 | /*! \file *********************************************************************
2 | *
3 | * \brief CMSIS Cortex-M# Device Peripheral Access Layer Header File
4 | * for SAM3 devices.
5 | *
6 | * $asf_license$
7 | *
8 | * \par Purpose
9 | *
10 | * This file provides basic support for Cortex-M processor based
11 | * microcontrollers.
12 | *
13 | * \author Atmel Corporation: http://www.atmel.com \n
14 | * Support and FAQ: http://support.atmel.no/
15 | *
16 | ******************************************************************************/
17 |
18 | #ifndef SYSTEM_SAM3U_H_INCLUDED
19 | #define SYSTEM_SAM3U_H_INCLUDED
20 |
21 | /* @cond 0 */
22 | /**INDENT-OFF**/
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 | /**INDENT-ON**/
27 | /* @endcond */
28 |
29 | #include
30 |
31 | extern uint32_t SystemCoreClock; /* System Clock Frequency (Core Clock) */
32 |
33 | /**
34 | * @brief Setup the microcontroller system.
35 | * Initialize the System and update the SystemCoreClock variable.
36 | */
37 | void SystemInit(void);
38 |
39 | /**
40 | * @brief Updates the SystemCoreClock with current core Clock
41 | * retrieved from cpu registers.
42 | */
43 | void SystemCoreClockUpdate(void);
44 |
45 | /**
46 | * Initialize flash.
47 | */
48 | void system_init_flash(uint32_t dw_clk);
49 |
50 | /* @cond 0 */
51 | /**INDENT-OFF**/
52 | #ifdef __cplusplus
53 | }
54 | #endif
55 | /**INDENT-ON**/
56 | /* @endcond */
57 |
58 | #endif /* SYSTEM_SAM3U_H_INCLUDED */
59 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3xa/include/system_sam3xa.h:
--------------------------------------------------------------------------------
1 | /*! \file *********************************************************************
2 | *
3 | * \brief CMSIS Cortex-M# Device Peripheral Access Layer Header File
4 | * for SAM3 devices.
5 | *
6 | * $asf_license$
7 | *
8 | * \par Purpose
9 | *
10 | * This file provides basic support for Cortex-M processor based
11 | * microcontrollers.
12 | *
13 | * \author Atmel Corporation: http://www.atmel.com \n
14 | * Support and FAQ: http://support.atmel.no/
15 | *
16 | ******************************************************************************/
17 |
18 | #ifndef SYSTEM_SAM3X_H_INCLUDED
19 | #define SYSTEM_SAM3X_H_INCLUDED
20 |
21 | /* @cond 0 */
22 | /**INDENT-OFF**/
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 | /**INDENT-ON**/
27 | /* @endcond */
28 |
29 | #include
30 |
31 | extern uint32_t SystemCoreClock; /* System Clock Frequency (Core Clock) */
32 |
33 | /**
34 | * @brief Setup the microcontroller system.
35 | * Initialize the System and update the SystemCoreClock variable.
36 | */
37 | void SystemInit(void);
38 |
39 | /**
40 | * @brief Updates the SystemCoreClock with current core Clock
41 | * retrieved from cpu registers.
42 | */
43 | void SystemCoreClockUpdate(void);
44 |
45 | /**
46 | * Initialize flash.
47 | */
48 | void system_init_flash(uint32_t dw_clk);
49 |
50 | /* @cond 0 */
51 | /**INDENT-OFF**/
52 | #ifdef __cplusplus
53 | }
54 | #endif
55 | /**INDENT-ON**/
56 | /* @endcond */
57 |
58 | #endif /* SYSTEM_SAM3X_H_INCLUDED */
59 |
--------------------------------------------------------------------------------
/cores/arduino/RingBuffer.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2011 Arduino. All right reserved.
3 |
4 | This library is free software; you can redistribute it and/or
5 | modify it under the terms of the GNU Lesser General Public
6 | License as published by the Free Software Foundation; either
7 | version 2.1 of the License, or (at your option) any later version.
8 |
9 | This library is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | See the GNU Lesser General Public License for more details.
13 |
14 | You should have received a copy of the GNU Lesser General Public
15 | License along with this library; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | #include "RingBuffer.h"
20 | #include
21 |
22 | RingBuffer::RingBuffer( void )
23 | {
24 | memset( _aucBuffer, 0, SERIAL_BUFFER_SIZE ) ;
25 | _iHead=0 ;
26 | _iTail=0 ;
27 | }
28 |
29 | void RingBuffer::store_char( uint8_t c )
30 | {
31 | int i = (uint32_t)(_iHead + 1) % SERIAL_BUFFER_SIZE ;
32 |
33 | // if we should be storing the received character into the location
34 | // just before the tail (meaning that the head would advance to the
35 | // current location of the tail), we're about to overflow the buffer
36 | // and so we don't write the character or advance the head.
37 | if ( i != _iTail )
38 | {
39 | _aucBuffer[_iHead] = c ;
40 | _iHead = i ;
41 | }
42 | }
43 |
44 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3sd8/include/system_sam3sd8.h:
--------------------------------------------------------------------------------
1 | /*! \file *********************************************************************
2 | *
3 | * \brief CMSIS Cortex-M# Device Peripheral Access Layer Header File
4 | * for SAM3 devices.
5 | *
6 | * $asf_license$
7 | *
8 | * \par Purpose
9 | *
10 | * This file provides basic support for Cortex-M processor based
11 | * microcontrollers.
12 | *
13 | * \author Atmel Corporation: http://www.atmel.com \n
14 | * Support and FAQ: http://support.atmel.no/
15 | *
16 | ******************************************************************************/
17 |
18 | #ifndef SYSTEM_SAM3SD8_H_INCLUDED
19 | #define SYSTEM_SAM3SD8_H_INCLUDED
20 |
21 | /* @cond 0 */
22 | /**INDENT-OFF**/
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 | /**INDENT-ON**/
27 | /* @endcond */
28 |
29 | #include
30 |
31 | extern uint32_t SystemCoreClock; /* System Clock Frequency (Core Clock) */
32 |
33 | /**
34 | * @brief Setup the microcontroller system.
35 | * Initialize the System and update the SystemCoreClock variable.
36 | */
37 | void SystemInit(void);
38 |
39 | /**
40 | * @brief Updates the SystemCoreClock with current core Clock
41 | * retrieved from cpu registers.
42 | */
43 | void SystemCoreClockUpdate(void);
44 |
45 | /**
46 | * Initialize flash.
47 | */
48 | void system_init_flash(uint32_t dw_clk);
49 |
50 | /* @cond 0 */
51 | /**INDENT-OFF**/
52 | #ifdef __cplusplus
53 | }
54 | #endif
55 | /**INDENT-ON**/
56 | /* @endcond */
57 |
58 | #endif /* SYSTEM_SAM3SD8_H_INCLUDED */
59 |
--------------------------------------------------------------------------------
/cores/arduino/avr/pgmspace.h:
--------------------------------------------------------------------------------
1 | #ifndef __PGMSPACE_H_
2 | #define __PGMSPACE_H_ 1
3 |
4 | #include
5 |
6 | #define PROGMEM
7 | #define PGM_P const char *
8 | #define PSTR(str) (str)
9 |
10 | #define _SFR_BYTE(n) (n)
11 |
12 | typedef void prog_void;
13 | typedef char prog_char;
14 | typedef unsigned char prog_uchar;
15 | typedef int8_t prog_int8_t;
16 | typedef uint8_t prog_uint8_t;
17 | typedef int16_t prog_int16_t;
18 | typedef uint16_t prog_uint16_t;
19 | typedef int32_t prog_int32_t;
20 | typedef uint32_t prog_uint32_t;
21 |
22 | #define memcpy_P(dest, src, num) memcpy((dest), (src), (num))
23 | #define strcpy_P(dest, src) strcpy((dest), (src))
24 | #define strcat_P(dest, src) strcat((dest), (src))
25 | #define strcmp_P(a, b) strcmp((a), (b))
26 | #define strstr_P(a, b) strstr((a), (b))
27 | #define strlen_P(a) strlen((a))
28 | #define sprintf_P(s, f, ...) sprintf((s), (f), __VA_ARGS__)
29 |
30 | #define pgm_read_byte(addr) (*(const unsigned char *)(addr))
31 | #define pgm_read_word(addr) (*(const unsigned short *)(addr))
32 | #define pgm_read_dword(addr) (*(const unsigned long *)(addr))
33 | #define pgm_read_float(addr) (*(const float *)(addr))
34 |
35 | #define pgm_read_byte_near(addr) pgm_read_byte(addr)
36 | #define pgm_read_word_near(addr) pgm_read_word(addr)
37 | #define pgm_read_dword_near(addr) pgm_read_dword(addr)
38 | #define pgm_read_float_near(addr) pgm_read_float(addr)
39 | #define pgm_read_byte_far(addr) pgm_read_byte(addr)
40 | #define pgm_read_word_far(addr) pgm_read_word(addr)
41 | #define pgm_read_dword_far(addr) pgm_read_dword(addr)
42 | #define pgm_read_float_far(addr) pgm_read_float(addr)
43 |
44 | #endif
45 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3n/source/iar/sam3n4_sram.icf:
--------------------------------------------------------------------------------
1 | /*###ICF### Section handled by ICF editor, don't touch! ****/
2 | /*-Editor annotation file-*/
3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */
4 | /*-Vector table start*/
5 | define symbol __ICFEDIT_vector_start__ = 0x20000000;
6 | /*-Memory Regions-*/
7 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
8 | define symbol __ICFEDIT_region_RAM_end__ = 0x20005FFF;
9 | /*-Sizes-*/
10 | define symbol __ICFEDIT_size_cstack__ = 0x800;
11 | define symbol __ICFEDIT_size_heap__ = 0x800;
12 | /**** End of ICF editor section. ###ICF###*/
13 |
14 | /* we place the stack at the end of RAM region */
15 | define symbol __cstack_start__ = __ICFEDIT_region_RAM_end__+1-__ICFEDIT_size_cstack__;
16 | export symbol __cstack_start__;
17 | define symbol __cstack_end__ = __cstack_start__+__ICFEDIT_size_cstack__-1;
18 | export symbol __cstack_end__;
19 |
20 | define memory mem with size = 4G;
21 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__] -
22 | mem:[from __cstack_start__ to __cstack_end__];
23 |
24 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
25 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
26 |
27 | initialize by copy with packing=none { readwrite };
28 | do not initialize { section .noinit };
29 |
30 | place at address mem:__ICFEDIT_vector_start__ { readonly section .intvec };
31 | place in RAM_region { readonly };
32 | place in RAM_region { readwrite, block HEAP };
33 | place at address mem:__cstack_start__ { block CSTACK };
34 |
--------------------------------------------------------------------------------
/system/CMSIS/CMSIS/DSP_Lib/Source/ControllerFunctions/arm_pid_reset_q15.c:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------
2 | * Copyright (C) 2010 ARM Limited. All rights reserved.
3 | *
4 | * $Date: 15. July 2011
5 | * $Revision: V1.0.10
6 | *
7 | * Project: CMSIS DSP Library
8 | * Title: arm_pid_reset_q15.c
9 | *
10 | * Description: Q15 PID Control reset function
11 | *
12 | * Target Processor: Cortex-M4/Cortex-M3/Cortex-M0
13 | *
14 | * Version 1.0.10 2011/7/15
15 | * Big Endian support added and Merged M0 and M3/M4 Source code.
16 | *
17 | * Version 1.0.3 2010/11/29
18 | * Re-organized the CMSIS folders and updated documentation.
19 | *
20 | * Version 1.0.2 2010/11/11
21 | * Documentation updated.
22 | *
23 | * Version 1.0.1 2010/10/05
24 | * Production release and review comments incorporated.
25 | *
26 | * Version 1.0.0 2010/09/20
27 | * Production release and review comments incorporated.
28 | * -------------------------------------------------------------------- */
29 |
30 | #include "arm_math.h"
31 |
32 | /**
33 | * @addtogroup PID
34 | * @{
35 | */
36 |
37 | /**
38 | * @brief Reset function for the Q15 PID Control.
39 | * @param[in] *S Instance pointer of PID control data structure.
40 | * @return none.
41 | * \par Description:
42 | * The function resets the state buffer to zeros.
43 | */
44 | void arm_pid_reset_q15(
45 | arm_pid_instance_q15 * S)
46 | {
47 | /* Reset state to zero, The size will be always 3 samples */
48 | memset(S->state, 0, 3u * sizeof(q15_t));
49 | }
50 |
51 | /**
52 | * @} end of PID group
53 | */
54 |
--------------------------------------------------------------------------------
/system/CMSIS/CMSIS/DSP_Lib/Source/ControllerFunctions/arm_pid_reset_q31.c:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------
2 | * Copyright (C) 2010 ARM Limited. All rights reserved.
3 | *
4 | * $Date: 15. July 2011
5 | * $Revision: V1.0.10
6 | *
7 | * Project: CMSIS DSP Library
8 | * Title: arm_pid_reset_q31.c
9 | *
10 | * Description: Q31 PID Control reset function
11 | *
12 | * Target Processor: Cortex-M4/Cortex-M3/Cortex-M0
13 | *
14 | * Version 1.0.10 2011/7/15
15 | * Big Endian support added and Merged M0 and M3/M4 Source code.
16 | *
17 | * Version 1.0.3 2010/11/29
18 | * Re-organized the CMSIS folders and updated documentation.
19 | *
20 | * Version 1.0.2 2010/11/11
21 | * Documentation updated.
22 | *
23 | * Version 1.0.1 2010/10/05
24 | * Production release and review comments incorporated.
25 | *
26 | * Version 1.0.0 2010/09/20
27 | * Production release and review comments incorporated.
28 | * ------------------------------------------------------------------- */
29 |
30 | #include "arm_math.h"
31 |
32 | /**
33 | * @addtogroup PID
34 | * @{
35 | */
36 |
37 | /**
38 | * @brief Reset function for the Q31 PID Control.
39 | * @param[in] *S Instance pointer of PID control data structure.
40 | * @return none.
41 | * \par Description:
42 | * The function resets the state buffer to zeros.
43 | */
44 | void arm_pid_reset_q31(
45 | arm_pid_instance_q31 * S)
46 | {
47 |
48 | /* Clear the state buffer. The size will be always 3 samples */
49 | memset(S->state, 0, 3u * sizeof(q31_t));
50 | }
51 |
52 | /**
53 | * @} end of PID group
54 | */
55 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3n/source/gcc/sam3n0a_flash.ld:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * SAM Software Package License
3 | * ----------------------------------------------------------------------------
4 | * Copyright (c) 2012, Atmel Corporation
5 | *
6 | * All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following condition is met:
10 | *
11 | * - Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the disclaimer below.
13 | *
14 | * Atmel's name may not be used to endorse or promote products derived from
15 | * this software without specific prior written permission.
16 | *
17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | * ----------------------------------------------------------------------------
28 | */
29 |
30 | INCLUDE sam3n0_flash.ld
31 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3s/source/gcc/sam3s1a_flash.ld:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * SAM Software Package License
3 | * ----------------------------------------------------------------------------
4 | * Copyright (c) 2012, Atmel Corporation
5 | *
6 | * All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following condition is met:
10 | *
11 | * - Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the disclaimer below.
13 | *
14 | * Atmel's name may not be used to endorse or promote products derived from
15 | * this software without specific prior written permission.
16 | *
17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | * ----------------------------------------------------------------------------
28 | */
29 |
30 | INCLUDE sam3s1_flash.ld
31 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3s/source/gcc/sam3s1a_sram.ld:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * SAM Software Package License
3 | * ----------------------------------------------------------------------------
4 | * Copyright (c) 2012, Atmel Corporation
5 | *
6 | * All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following condition is met:
10 | *
11 | * - Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the disclaimer below.
13 | *
14 | * Atmel's name may not be used to endorse or promote products derived from
15 | * this software without specific prior written permission.
16 | *
17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | * ----------------------------------------------------------------------------
28 | */
29 |
30 | INCLUDE sam3s1_sram.ld
31 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3s/source/gcc/sam3s1b_flash.ld:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * SAM Software Package License
3 | * ----------------------------------------------------------------------------
4 | * Copyright (c) 2012, Atmel Corporation
5 | *
6 | * All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following condition is met:
10 | *
11 | * - Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the disclaimer below.
13 | *
14 | * Atmel's name may not be used to endorse or promote products derived from
15 | * this software without specific prior written permission.
16 | *
17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | * ----------------------------------------------------------------------------
28 | */
29 |
30 | INCLUDE sam3s1_flash.ld
31 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3s/source/gcc/sam3s1b_sram.ld:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * SAM Software Package License
3 | * ----------------------------------------------------------------------------
4 | * Copyright (c) 2012, Atmel Corporation
5 | *
6 | * All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following condition is met:
10 | *
11 | * - Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the disclaimer below.
13 | *
14 | * Atmel's name may not be used to endorse or promote products derived from
15 | * this software without specific prior written permission.
16 | *
17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | * ----------------------------------------------------------------------------
28 | */
29 |
30 | INCLUDE sam3s1_sram.ld
31 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3s/source/gcc/sam3s1c_flash.ld:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * SAM Software Package License
3 | * ----------------------------------------------------------------------------
4 | * Copyright (c) 2012, Atmel Corporation
5 | *
6 | * All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following condition is met:
10 | *
11 | * - Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the disclaimer below.
13 | *
14 | * Atmel's name may not be used to endorse or promote products derived from
15 | * this software without specific prior written permission.
16 | *
17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | * ----------------------------------------------------------------------------
28 | */
29 |
30 | INCLUDE sam3s1_flash.ld
31 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3s/source/gcc/sam3s1c_sram.ld:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * SAM Software Package License
3 | * ----------------------------------------------------------------------------
4 | * Copyright (c) 2012, Atmel Corporation
5 | *
6 | * All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following condition is met:
10 | *
11 | * - Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the disclaimer below.
13 | *
14 | * Atmel's name may not be used to endorse or promote products derived from
15 | * this software without specific prior written permission.
16 | *
17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | * ----------------------------------------------------------------------------
28 | */
29 |
30 | INCLUDE sam3s1_sram.ld
31 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3s/source/gcc/sam3s2a_flash.ld:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * SAM Software Package License
3 | * ----------------------------------------------------------------------------
4 | * Copyright (c) 2012, Atmel Corporation
5 | *
6 | * All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following condition is met:
10 | *
11 | * - Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the disclaimer below.
13 | *
14 | * Atmel's name may not be used to endorse or promote products derived from
15 | * this software without specific prior written permission.
16 | *
17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | * ----------------------------------------------------------------------------
28 | */
29 |
30 | INCLUDE sam3s2_flash.ld
31 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3s/source/gcc/sam3s2a_sram.ld:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * SAM Software Package License
3 | * ----------------------------------------------------------------------------
4 | * Copyright (c) 2012, Atmel Corporation
5 | *
6 | * All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following condition is met:
10 | *
11 | * - Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the disclaimer below.
13 | *
14 | * Atmel's name may not be used to endorse or promote products derived from
15 | * this software without specific prior written permission.
16 | *
17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | * ----------------------------------------------------------------------------
28 | */
29 |
30 | INCLUDE sam3s2_sram.ld
31 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3s/source/gcc/sam3s2b_flash.ld:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * SAM Software Package License
3 | * ----------------------------------------------------------------------------
4 | * Copyright (c) 2012, Atmel Corporation
5 | *
6 | * All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following condition is met:
10 | *
11 | * - Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the disclaimer below.
13 | *
14 | * Atmel's name may not be used to endorse or promote products derived from
15 | * this software without specific prior written permission.
16 | *
17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | * ----------------------------------------------------------------------------
28 | */
29 |
30 | INCLUDE sam3s2_flash.ld
31 |
--------------------------------------------------------------------------------
/system/CMSIS/Device/ATMEL/sam3s/source/gcc/sam3s2b_sram.ld:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * SAM Software Package License
3 | * ----------------------------------------------------------------------------
4 | * Copyright (c) 2012, Atmel Corporation
5 | *
6 | * All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following condition is met:
10 | *
11 | * - Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the disclaimer below.
13 | *
14 | * Atmel's name may not be used to endorse or promote products derived from
15 | * this software without specific prior written permission.
16 | *
17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | * ----------------------------------------------------------------------------
28 | */
29 |
30 | INCLUDE sam3s2_sram.ld
31 |
--------------------------------------------------------------------------------