Revision 83e94d4b

View differences:

modules/STM32L476RG-NUCLEO64/Makefile
302 302
RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC
303 303
include $(RULESPATH)/rules.mk
304 304

  
305
# flash
306
include $(AMIROOS)/bootloader/bootloader.mk
307

  
308
flash: $(BUILDDIR)/$(PROJECT).elf
309
	openocd -f interface/stlink-v2-1.cfg -c "set WORKAREASIZE 0x2000" -f target/stm32l4x.cfg -c "program build/$(PROJECT).elf verify reset exit"
310

  
305 311
#                                                                              #
306 312
# End of targets section                                                       #
307 313
################################################################################
modules/STM32L476RG-NUCLEO64/module.c
85 85
  /* GPIO */ &_gpioUserButton,
86 86
  /* meta */ {
87 87
    /* direction      */ APAL_GPIO_DIRECTION_INPUT,
88
    /* active state   */ APAL_GPIO_ACTIVE_HIGH,
88
    /* active state   */ APAL_GPIO_ACTIVE_LOW,
89 89
    /* interrupt edge */ APAL_GPIO_EDGE_BOTH,
90 90
  },
91 91
};

Also available in: Unified diff