Skip to content

Commit

Permalink
removed unused variable warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Srinivas Edireswarapu authored and Srinivas Edireswarapu committed Oct 18, 2013
1 parent fde901d commit 641a033
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 13 deletions.
12 changes: 11 additions & 1 deletion app_sk_gpio_com_demo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,15 @@ XCC_FLAGS_Release = -g -O3 -Wcodes -Xmapper -Wcodes
# The VERBOSE variable, if set to 1, enables verbose output from the make system.
VERBOSE = 0

#=============================================================================
# The following part of the Makefile includes the common build infrastructure
# for compiling XMOS applications. You should not need to edit below here.

XMOS_MAKE_PATH ?= ../..
-include $(XMOS_MAKE_PATH)/xcommon/module_xcommon/build/Makefile.common
ifneq ($(wildcard $(XMOS_MAKE_PATH)/xcommon/module_xcommon/build/Makefile.common),)
include $(XMOS_MAKE_PATH)/xcommon/module_xcommon/build/Makefile.common
else
include ../module_xcommon/build/Makefile.common
endif


15 changes: 7 additions & 8 deletions app_sk_gpio_com_demo/src/main.xc
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ unsigned char rx_buffer[64];
---------------------------------------------------------------------------*/

/**
* Top level main for multi-UART demonstration
* Top level main for GPIO demonstration
*/
//::Main start
int main()
{
chan c_chanTX, c_chanRX,c_receive,c_process,c_end;
chan c_chanTX, c_chanRX,c_process,c_end;

par
{
Expand Down Expand Up @@ -99,12 +99,11 @@ void app_manager(chanend c_uartTX,chanend c_uartRX, chanend c_process, chanend c
unsigned char i2c_register[1]={0x13};
int adc_value;
timer t;
unsigned char rcvbuffer;
unsigned char cmd_rcvbuffer[20];
unsigned char data_arr[1]={'K'};
unsigned crc_value=0,data=0;
unsigned byte,button_value1=0,button_value2=0,time,led_value=0x01;
int j=0,skip=1,selection;
unsigned data=0;
unsigned time,led_value=0x01;
int j=0,skip=1;
int button, button1_press=0,button2_press=0;
unsigned COMMAND_MODE=0;
uart_rx_client_state rxState;
Expand Down Expand Up @@ -383,8 +382,8 @@ void app_manager(chanend c_uartTX,chanend c_uartRX, chanend c_process, chanend c
**/
void process_data(chanend c_process, chanend c_end)
{
int k=0,skip=1,i=0;
unsigned data=0,button_value1,button_value2;
int skip=1,i=0;
unsigned button_value1,button_value2;
unsigned char cmd_rcvbuffer[20];
int button=1,button1_pressed=0,button2_pressed=0;
timer t;
Expand Down
12 changes: 11 additions & 1 deletion app_sk_gpio_simple_demo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,15 @@ XCC_FLAGS_Release = -g -O3 -Wcodes -Xmapper -Wcodes
# The VERBOSE variable, if set to 1, enables verbose output from the make system.
VERBOSE = 0

#=============================================================================
# The following part of the Makefile includes the common build infrastructure
# for compiling XMOS applications. You should not need to edit below here.

XMOS_MAKE_PATH ?= ../..
-include $(XMOS_MAKE_PATH)/xcommon/module_xcommon/build/Makefile.common
ifneq ($(wildcard $(XMOS_MAKE_PATH)/xcommon/module_xcommon/build/Makefile.common),)
include $(XMOS_MAKE_PATH)/xcommon/module_xcommon/build/Makefile.common
else
include ../module_xcommon/build/Makefile.common
endif


6 changes: 3 additions & 3 deletions app_sk_gpio_simple_demo/src/main.xc
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ int linear_interpolation(int adc_value)
**/
void app_manager()
{
unsigned button_press_1,button_press_2,time,time1;
int button =1,index=0,toggle=0;
unsigned button_press_1,button_press_2,time;
int button =1;
timer t;
unsigned char data[1]={0x13};
unsigned char data1[2];
Expand Down Expand Up @@ -163,7 +163,7 @@ void app_manager()
}

/**
* Top level main for multi-UART demonstration
* Top level main for simple GPIO demonstration
*/
//::Main start
int main(void)
Expand Down

0 comments on commit 641a033

Please sign in to comment.