Early debug changes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3061 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
7fd92b81be
commit
b035880b08
@ -143,7 +143,7 @@ int at32uc3_configgpio(uint16_t cfgset)
|
||||
putreg32(pinmask, base + AVR32_GPIO_PUERC_OFFSET);
|
||||
putreg32(pinmask, base + AVR32_GPIO_IERC_OFFSET);
|
||||
putreg32(pinmask, base + AVR32_GPIO_IMR0C_OFFSET);
|
||||
putreg32(pinmask, base + AVR32_GPIO_IMR0C_OFFSET);
|
||||
putreg32(pinmask, base + AVR32_GPIO_IMR1C_OFFSET);
|
||||
putreg32(pinmask, base + AVR32_GPIO_GFERC_OFFSET);
|
||||
|
||||
/* Is this a GPIO? Or a peripheral */
|
||||
|
@ -80,12 +80,11 @@ __start:
|
||||
* by the IDLE thread when threading is enabled.
|
||||
*/
|
||||
|
||||
lddpc r0, .Lstackbase
|
||||
ld.w sp, r0[0]
|
||||
lddpc sp, .Lstackbase
|
||||
|
||||
/* Set up the vector base address so interrupts can be enabled. */
|
||||
|
||||
lda.w r0, .Lvectortab
|
||||
lda.w r0, vectortab
|
||||
mtsr AVR32_EVBA, r0
|
||||
|
||||
/* Enable exception processing */
|
||||
@ -130,18 +129,16 @@ __start:
|
||||
|
||||
/* Perform low-level initialization */
|
||||
|
||||
mcall up_lowinit
|
||||
mcall .Lup_lowinit
|
||||
|
||||
/* Then jump to OS entry (will not return) */
|
||||
|
||||
lddpc pc, .Los_start
|
||||
lda.w pc, os_start
|
||||
|
||||
.Lstackbase:
|
||||
.word _ebss+CONFIG_IDLETHREAD_STACKSIZE-4
|
||||
.Lvectortab:
|
||||
.word vectortab
|
||||
.Los_start:
|
||||
.word os_start
|
||||
.Lup_lowinit:
|
||||
.word up_lowinit
|
||||
.size __start, .-__start
|
||||
|
||||
/* This global variable is unsigned long g_heapbase and is
|
||||
|
Loading…
Reference in New Issue
Block a user