Fixes after moving to target board

pull/57/head
RobertGawron 2019-06-30 16:07:31 +01:00
rodzic 783b67cabd
commit 41a33179dd
2 zmienionych plików z 12 dodań i 11 usunięć

Wyświetl plik

@ -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();
}
}

Wyświetl plik

@ -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 $<