Move systick to stm32 common.
This commit is contained in:
parent
2a8ae89c7a
commit
7889cb66c7
@ -17,7 +17,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <libopencm3/stm32/f1/systick.h>
|
#include <libopencm3/stm32/systick.h>
|
||||||
|
|
||||||
void systick_set_reload(u32 value)
|
void systick_set_reload(u32 value)
|
||||||
{
|
{
|
@ -33,7 +33,7 @@ OBJS = vector.o rcc.o gpio.o usart.o adc.o spi.o flash.o nvic.o \
|
|||||||
usb_f103.o usb.o usb_control.o usb_standard.o can.o \
|
usb_f103.o usb.o usb_control.o usb_standard.o can.o \
|
||||||
timer.o usb_f107.o
|
timer.o usb_f107.o
|
||||||
|
|
||||||
VPATH += ../usb
|
VPATH += ../usb:../stm32_common
|
||||||
|
|
||||||
# Be silent per default, but 'make V=1' will show all compiler calls.
|
# Be silent per default, but 'make V=1' will show all compiler calls.
|
||||||
ifneq ($(V),1)
|
ifneq ($(V),1)
|
||||||
|
@ -28,9 +28,10 @@ CFLAGS = -Os -g -Wall -Wextra -I../../include -fno-common \
|
|||||||
-ffunction-sections -fdata-sections -MD -DSTM32F2
|
-ffunction-sections -fdata-sections -MD -DSTM32F2
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS = vector.o gpio.o
|
OBJS = vector.o gpio.o systick.o
|
||||||
|
|
||||||
#VPATH += ../usb
|
#VPATH += ../usb
|
||||||
|
VPATH += ../stm32_common
|
||||||
|
|
||||||
# Be silent per default, but 'make V=1' will show all compiler calls.
|
# Be silent per default, but 'make V=1' will show all compiler calls.
|
||||||
ifneq ($(V),1)
|
ifneq ($(V),1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user