1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/riscv_common: rename cpu.h to cpu_common.h

To allow CPU specific definitions in `cpu.h`, `riscv_common/cpu.h` is renamed to ``riscv_common/cpu_common.h` and included in new `cpu.h` files for FE310 and GD32V.
This commit is contained in:
Gunar Schorcht 2023-03-19 16:34:32 +01:00
parent f4f716a062
commit 2ae7566a89
3 changed files with 66 additions and 3 deletions

31
cpu/fe310/include/cpu.h Normal file
View File

@ -0,0 +1,31 @@
/*
* Copyright (C) 2023 Gunar Schorcht
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup cpu_fe310
* @{
*
* @file
* @brief CPU specific definitions
*/
#ifndef CPU_H
#define CPU_H
#include "cpu_common.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#endif /* CPU_H */
/** @} */

32
cpu/gd32v/include/cpu.h Normal file
View File

@ -0,0 +1,32 @@
/*
* Copyright (C) 2023 Gunar Schorcht
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup cpu_gd32v
* @{
*
* @file
* @brief CPU specific definitions
*/
#ifndef CPU_H
#define CPU_H
#include "cpu_conf.h"
#include "cpu_common.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#endif /* CPU_H */
/** @} */

View File

@ -22,8 +22,8 @@
#include "irq_arch.h"
#ifndef CPU_H
#define CPU_H
#ifndef CPU_COMMON_H
#define CPU_COMMON_H
#ifdef __cplusplus
extern "C" {
@ -85,5 +85,5 @@ void cpu_reg_disable_bits(volatile uint32_t *reg, uint32_t mask)
}
#endif
#endif /* CPU_H */
#endif /* CPU_COMMON_H */
/** @} */