- put vars on heap
git-svn-id: http://moon:8086/svn/projects/HendiControl@42 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
@@ -39,6 +39,12 @@
|
|||||||
|
|
||||||
#define TIMER_SW_DELAY_MS(dly) ((dly*TIMER_IRQ_CLOCK)/1000UL)
|
#define TIMER_SW_DELAY_MS(dly) ((dly*TIMER_IRQ_CLOCK)/1000UL)
|
||||||
|
|
||||||
|
uint8_t ledState = 0;
|
||||||
|
int16_t adc_last = 0;
|
||||||
|
int sw_in_last = 0;
|
||||||
|
size_t cmdStrSize = 0;
|
||||||
|
Fifo messageFifo;
|
||||||
|
|
||||||
FILE uart_file = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WRITE);
|
FILE uart_file = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WRITE);
|
||||||
|
|
||||||
typedef enum _eSwitch
|
typedef enum _eSwitch
|
||||||
@@ -78,12 +84,6 @@ typedef enum _eState_t
|
|||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
uint8_t ledState = 0;
|
|
||||||
int16_t adc_last = 0;
|
|
||||||
int sw_in_last = 0;
|
|
||||||
size_t cmdStrSize = 0;
|
|
||||||
Fifo messageFifo;
|
|
||||||
|
|
||||||
cli();
|
cli();
|
||||||
wdt_reset();
|
wdt_reset();
|
||||||
wdt_disable();
|
wdt_disable();
|
||||||
|
|||||||
@@ -117,7 +117,7 @@
|
|||||||
<Value>%24(PackRepoDir)\atmel\ATmega_DFP\1.2.209\include</Value>
|
<Value>%24(PackRepoDir)\atmel\ATmega_DFP\1.2.209\include</Value>
|
||||||
</ListValues>
|
</ListValues>
|
||||||
</avrgcc.assembler.general.IncludePaths>
|
</avrgcc.assembler.general.IncludePaths>
|
||||||
</AvrGcc>
|
</AvrGcc>
|
||||||
</ToolchainSettings>
|
</ToolchainSettings>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
||||||
@@ -157,7 +157,7 @@
|
|||||||
</ListValues>
|
</ListValues>
|
||||||
</avrgcc.assembler.general.IncludePaths>
|
</avrgcc.assembler.general.IncludePaths>
|
||||||
<avrgcc.assembler.debugging.DebugLevel>Default (-Wa,-g)</avrgcc.assembler.debugging.DebugLevel>
|
<avrgcc.assembler.debugging.DebugLevel>Default (-Wa,-g)</avrgcc.assembler.debugging.DebugLevel>
|
||||||
</AvrGcc>
|
</AvrGcc>
|
||||||
</ToolchainSettings>
|
</ToolchainSettings>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user