1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

[sam] fixing last stupid commit

This commit is contained in:
Thibaut VIARD
2011-09-06 21:05:41 +02:00
parent 8f01f92e87
commit a5d2349761
550 changed files with 16866 additions and 17198 deletions

View File

@ -29,3 +29,4 @@ info reg
# end of 'reset' command
end

View File

@ -1,85 +0,0 @@
board_cstartup_gnu.o:
U ACC_IrqHandler
U ADC_IrqHandler
U BusFault_Handler
U CRCCU_IrqHandler
U DAC_IrqHandler
U DebugMon_Handler
U Dummy_Handler
U EEFC_IrqHandler
U HardFault_Handler
U LowLevelInit
U MCI_IrqHandler
U MemManage_Handler
U NMI_Handler
U PIOA_IrqHandler
U PIOB_IrqHandler
U PIOC_IrqHandler
U PMC_IrqHandler
U PWM_IrqHandler
U PendSV_Handler
U RSTC_IrqHandler
U RTC_IrqHandler
U RTT_IrqHandler
00000000 T Reset_Handler
U SMC_IrqHandler
U SPI_IrqHandler
U SSC_IrqHandler
U SUPC_IrqHandler
U SVC_Handler
U SysTick_Handler
U TC0_IrqHandler
U TC1_IrqHandler
U TC2_IrqHandler
U TC3_IrqHandler
U TC4_IrqHandler
U TC5_IrqHandler
U TWI0_IrqHandler
U TWI1_IrqHandler
U UART0_IrqHandler
U UART1_IrqHandler
U USART0_IrqHandler
U USART1_IrqHandler
U USBD_IrqHandler
U UsageFault_Handler
U WDT_IrqHandler
U __libc_init_array
U _erelocate
U _etext
U _ezero
U _sfixed
U _srelocate
U _szero
U main
00000000 D pdwStack
00000000 D vector_table
board_lowlevel.o:
00000000 W LowLevelInit
syscalls.o:
00000000 T _close
U _end
00000000 T _exit
00000000 T _fstat
00000000 T _getpid
00000000 T _isatty
00000000 T _kill
00000000 T _lseek
00000000 T _read
00000000 T _sbrk
00000000 T _write
00000000 b heap.6737
U iprintf
00000000 T link
timetick.o:
00000000 T GetTickCount
00000000 t NVIC_SetPriority
00000000 T Sleep
00000000 t SysTick_Config
00000000 T TimeTick_Configure
00000000 T TimeTick_Increment
00000000 T Wait
00000000 b _dwTickCount

View File

@ -1,83 +0,0 @@
board_cstartup_gnu.o:
U ACC_IrqHandler
U ADC_IrqHandler
U BusFault_Handler
U CRCCU_IrqHandler
U DAC_IrqHandler
U DebugMon_Handler
U Dummy_Handler
U EEFC_IrqHandler
U HardFault_Handler
U LowLevelInit
U MCI_IrqHandler
U MemManage_Handler
U NMI_Handler
U PIOA_IrqHandler
U PIOB_IrqHandler
U PIOC_IrqHandler
U PMC_IrqHandler
U PWM_IrqHandler
U PendSV_Handler
U RSTC_IrqHandler
U RTC_IrqHandler
U RTT_IrqHandler
00000000 T Reset_Handler
U SMC_IrqHandler
U SPI_IrqHandler
U SSC_IrqHandler
U SUPC_IrqHandler
U SVC_Handler
U SysTick_Handler
U TC0_IrqHandler
U TC1_IrqHandler
U TC2_IrqHandler
U TC3_IrqHandler
U TC4_IrqHandler
U TC5_IrqHandler
U TWI0_IrqHandler
U TWI1_IrqHandler
U UART0_IrqHandler
U UART1_IrqHandler
U USART0_IrqHandler
U USART1_IrqHandler
U USBD_IrqHandler
U UsageFault_Handler
U WDT_IrqHandler
U __libc_init_array
U _erelocate
U _etext
U _ezero
U _sfixed
U _srelocate
U _szero
U main
00000000 D pdwStack
00000000 D vector_table
board_lowlevel.o:
00000000 W LowLevelInit
syscalls.o:
00000000 T _close
U _end
00000000 T _exit
00000000 T _fstat
00000000 T _getpid
00000000 T _isatty
00000000 T _kill
00000000 T _lseek
00000000 T _read
00000000 T _sbrk
00000000 T _write
00000000 b heap.6728
U iprintf
00000000 T link
timetick.o:
00000000 T GetTickCount
00000000 T Sleep
00000000 T TimeTick_Configure
00000000 T TimeTick_Increment
00000000 T Wait
00000000 b _dwTickCount

View File

@ -1,28 +0,0 @@
/*###ICF### Section handled by ICF editor, don't touch! ****/
/*-Editor annotation file-*/
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */
/*-Vector table start*/
define symbol __ICFEDIT_vector_start__ = 0x00400000;
/*-Memory Regions-*/
define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
define symbol __ICFEDIT_region_RAM_end__ = 0x20000FFF;
define symbol __ICFEDIT_region_ROM_start__ = 0x00400000;
define symbol __ICFEDIT_region_ROM_end__ = 0x0043FFFF;
/*-Sizes-*/
define symbol __ICFEDIT_size_cstack__ = 0x800;
/**** End of ICF editor section. ###ICF###*/
define memory mem with size = 4G;
define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
initialize by copy { readwrite };
do not initialize { section .noinit };
place at address mem:__ICFEDIT_vector_start__ { readonly section .vectors };
place in ROM_region { readonly };
place in RAM_region { readwrite, block CSTACK };

View File

@ -5,12 +5,12 @@
define symbol __ICFEDIT_vector_start__ = 0x00400000;
/*-Memory Regions-*/
define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
define symbol __ICFEDIT_region_RAM_end__ = 0x20000FFF;
define symbol __ICFEDIT_region_RAM_end__ = 0x2000BFFF;
define symbol __ICFEDIT_region_ROM_start__ = 0x00400000;
define symbol __ICFEDIT_region_ROM_end__ = 0x0043FFFF;
/*-Sizes-*/
define symbol __ICFEDIT_size_cstack__ = 0x800;
define symbol __ICFEDIT_size_cstack__ = 0x4000;
define symbol __ICFEDIT_size_heap__ = 0x2000;
/**** End of ICF editor section. ###ICF###*/
define memory mem with size = 4G;
@ -18,11 +18,11 @@ define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFED
define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
initialize by copy { readwrite };
do not initialize { section .noinit };
place at address mem:__ICFEDIT_vector_start__ { readonly section .vectors };
place at address mem:__ICFEDIT_vector_start__ { readonly section .intvec };
place in ROM_region { readonly };
place in RAM_region { readwrite, block CSTACK };
place in RAM_region { readwrite, block CSTACK, block HEAP };

View File

@ -2,13 +2,13 @@
/*-Editor annotation file-*/
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */
/*-Vector table start*/
define symbol __ICFEDIT_vector_start__ = 0x20008000;
define symbol __ICFEDIT_vector_start__ = 0x20000000;
/*-Memory Regions-*/
define symbol __ICFEDIT_region_RAM_start__ = 0x20008000;
define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
define symbol __ICFEDIT_region_RAM_end__ = 0x2000BFFF;
/*-Sizes-*/
define symbol __ICFEDIT_size_cstack__ = 0x2000;
define symbol __ICFEDIT_size_heap__ = 0x200;
/**** End of ICF editor section. ###ICF###*/
define memory mem with size = 4G;
@ -16,10 +16,10 @@ define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFED
/* define block RamVect with alignment = 8, size = __ICFEDIT_size_vectors__ { }; */
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
initialize by copy with packing=none { readwrite };
do not initialize { section .noinit };
place at address mem:__ICFEDIT_vector_start__ { readonly section .vectors };
place in RAM_region { readonly, readwrite, block CSTACK};
place at address mem:__ICFEDIT_vector_start__ { readonly section .intvec };
place in RAM_region { readonly, readwrite, block CSTACK, block HEAP };

View File

@ -1,25 +0,0 @@
/*###ICF### Section handled by ICF editor, don't touch! ****/
/*-Editor annotation file-*/
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */
/*-Vector table start*/
define symbol __ICFEDIT_vector_start__ = 0x20008000;
/*-Memory Regions-*/
define symbol __ICFEDIT_region_RAM_start__ = 0x20008000;
define symbol __ICFEDIT_region_RAM_end__ = 0x2000BFFF;
/*-Sizes-*/
define symbol __ICFEDIT_size_cstack__ = 0x2000;
/**** End of ICF editor section. ###ICF###*/
define memory mem with size = 4G;
define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
/* define block RamVect with alignment = 8, size = __ICFEDIT_size_vectors__ { }; */
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
initialize by copy with packing=none { readwrite };
do not initialize { section .noinit };
place at address mem:__ICFEDIT_vector_start__ { readonly section .vectors };
place in RAM_region { readonly, readwrite, block CSTACK};

View File

@ -10,10 +10,10 @@
#define PIN_DAC0 (u)
const static uint8_t SS = 34 ;
const static uint8_t MOSI = 32 ;
const static uint8_t MISO = 31 ;
const static uint8_t SCK = 33 ;
static const uint8_t SS = 34 ;
static const uint8_t MOSI = 32 ;
static const uint8_t MISO = 31 ;
static const uint8_t SCK = 33 ;
#define PINS_UART (16u)
@ -118,7 +118,7 @@ static const PinDescription APinDescription[]=
{ PIOC, PIO_PC15, ID_PIOC, PIO_PERIPH_A, PIO_PULLUP }, // LCD CS
{ PIOC, PIO_PC19, ID_PIOC, PIO_PERIPH_A, PIO_PULLUP }, // LCD RS
{ PIOC, PIO_PC13, ID_PIOC, PIO_OUTPUT_0, PIO_DEFAULT }, // LCD BackLight
{ NULL, 0, 0, PIO_NOT_A_PIN, PIO_DEFAULT } // END
} ;
@ -135,4 +135,4 @@ static const PinDescription APinDescription[]=
//#endif // ARDUINO_MAIN
#endif // Pins_Arduino_h
#endif // Pins_Arduino_h

View File

@ -1,5 +1,6 @@
#include "Arduino.h"
#if 0
/*
* UART objects
*/
@ -11,6 +12,10 @@ ring_buffer tx_buffer2 = { { 0 }, 0, 0 } ;
UARTClass Serial1( UART0, UART0_IRQn, ID_UART0, &rx_buffer1, &tx_buffer1 ) ;
UARTClass Serial2( UART1, UART1_IRQn, ID_UART1, &rx_buffer2, &tx_buffer2 ) ;
#ifdef __cplusplus
extern "C" {
#endif
// IT handlers
extern void UART0_IrqHandler( void )
{
@ -22,6 +27,10 @@ extern void UART1_IrqHandler( void )
Serial2.IrqHandler() ;
}
#ifdef __cplusplus
}
#endif
#endif // 0
// ----------------------------------------------------------------------------
#if 0
@ -37,6 +46,10 @@ ring_buffer tx_buffer4 = { { 0 }, 0, 0 } ;
USARTClass Serial3( USART0, USART0_IRQn, ID_USART0, &rx_buffer3, &tx_buffer3 ) ;
USARTClass Serial4( USART1, USART1_IRQn, ID_USART1, &rx_buffer4, &tx_buffer4 ) ;
#ifdef __cplusplus
extern "C" {
#endif
// IT handlers
extern void USART0_IrqHandler( void )
{
@ -47,6 +60,11 @@ extern void USART1_IrqHandler( void )
{
Serial4.IrqHandler() ;
}
#ifdef __cplusplus
}
#endif
#endif // 0
// ----------------------------------------------------------------------------

View File

@ -43,11 +43,13 @@
*----------------------------------------------------------------------------*/
# ifdef __cplusplus
#if 0
# include "UART.h"
# include "USART.h"
extern UARTClass Serial1 ;
extern UARTClass Serial2 ;
#endif // 0
//extern USARTClass Serial3 ;
//extern USARTClass Serial4 ;