diff --git a/software/Firmware/Src/main.c b/software/Firmware/Src/main.c index 98cce24..4aa2835 100755 --- a/software/Firmware/Src/main.c +++ b/software/Firmware/Src/main.c @@ -10,20 +10,21 @@ #include "ApplicationBuilder.h" #define LED_GPIO_PORT (GPIOD) -#define LED_GPIO_PINS ( GPIO_PIN_0) +#define LED_GPIO_PINS GPIO_PIN_3 | GPIO_PIN_2 + int main( void ) { - // just to test if the firmware is alive - GPIO_Init(LED_GPIO_PORT, LED_GPIO_PINS, GPIO_MODE_OUT_OD_LOW_FAST); - //GPIO_WriteHigh(LED_GPIO_PORT, LED_GPIO_PINS); - GPIO_WriteLow(LED_GPIO_PORT, LED_GPIO_PINS); + // just to test if the firmware is alive + GPIO_Init(LED_GPIO_PORT, LED_GPIO_PINS, GPIO_MODE_OUT_PP_LOW_SLOW); + GPIO_WriteHigh(LED_GPIO_PORT, LED_GPIO_PINS); -// ApplicationBuilder_Init(); + + ApplicationBuilder_Init(); while(TRUE) { - //ApplicationBuilder_Tick(); + ApplicationBuilder_Tick(); } } diff --git a/software/Firmware/makefile b/software/Firmware/makefile index 1cbe130..1baf358 100755 --- a/software/Firmware/makefile +++ b/software/Firmware/makefile @@ -17,8 +17,8 @@ MCU = STM8S003 COMPILER = __SDCC__ DEFINES = -D$(COMPILER) -D$(MCU) -DUSE_STDPERIPH_DRIVER -CFLAGS = -mstm8 --std-c99 $(DEFINES) -LDFLAGS = $(addprefix -I ,$(INCLUDEDIR)) +CFLAGS = -mstm8 --std-c99 $(DEFINES) +LDFLAGS = $(addprefix -I ,$(INCLUDEDIR)) BUILD_DIR = Build @@ -28,7 +28,7 @@ IHX = $(BUILD_DIR)/$(TARGET).ihx ################### BUILD PROCESS ################### .PHONY: all build clean flash -all: make_build_dir build +all: make_build_dir build flash make_build_dir: @@ -76,5 +76,5 @@ clean: rm -rf $(BUILD_DIR)/* flash: $(IHX) - /opt/stm8flash -c stlink -p stm8s103f3 -w $< + /opt/stm8flash -c stlink -p stm8s003f3 -w $<