cpu/stm32l1: use common STM32 files

This commit is contained in:
Hauke Petersen 2016-02-08 21:52:06 +01:00
parent c482bfbaed
commit 7c5bab6ac0
3 changed files with 8 additions and 17 deletions

View File

@ -2,6 +2,6 @@
MODULE = cpu MODULE = cpu
# add a list of subdirectories, that should also be build # add a list of subdirectories, that should also be build
DIRS += periph $(RIOTCPU)/cortexm_common DIRS += periph $(RIOTCPU)/cortexm_common $(RIOTCPU)/stm32_common
include $(RIOTBASE)/Makefile.base include $(RIOTBASE)/Makefile.base

View File

@ -1,6 +1,5 @@
export CPU_ARCH = cortex-m3 export CPU_ARCH = cortex-m3
export CPU_FAM = stm32l1
# use common periph functions include $(RIOTCPU)/stm32_common/Makefile.include
USEMODULE += periph_common
include $(RIOTCPU)/Makefile.include.cortexm_common include $(RIOTCPU)/Makefile.include.cortexm_common

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2015 Freie Universität Berlin * Copyright (C) 2015-2016 Freie Universität Berlin
* Copyright (C) 2015 Hamburg University of Applied Sciences * Copyright (C) 2015 Hamburg University of Applied Sciences
* *
* This file is subject to the terms and conditions of the GNU Lesser * This file is subject to the terms and conditions of the GNU Lesser
@ -18,10 +18,11 @@
* @author Katja Kirstein <katja.kirstein@haw-hamburg.de> * @author Katja Kirstein <katja.kirstein@haw-hamburg.de>
*/ */
#ifndef PERIPH_CPU_H_ #ifndef PERIPH_CPU_H
#define PERIPH_CPU_H_ #define PERIPH_CPU_H
#include "cpu.h" #include "cpu.h"
#include "periph_cpu_common.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -104,18 +105,9 @@ typedef struct {
uint8_t irqn; /**< IRQ vector entry number */ uint8_t irqn; /**< IRQ vector entry number */
} timer_conf_t; } timer_conf_t;
/**
* @brief declare needed generic SPI functions
* @{
*/
#define PERIPH_SPI_NEEDS_TRANSFER_BYTES
#define PERIPH_SPI_NEEDS_TRANSFER_REG
#define PERIPH_SPI_NEEDS_TRANSFER_REGS
/** @} */
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* PERIPH_CPU_H_ */ #endif /* PERIPH_CPU_H */
/** @} */ /** @} */