kopia lustrzana https://github.com/RobertGawron/IonizationChamber
Merge pull request #57 from RobertGawron/feature/basic_sw_components_implementation
Fixes after moving to target boardpull/58/head
commit
4f6ccb5c5f
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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 $<
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue