mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
db4d67c4fd
Added HiFive1 to BOARD_INSUFFICIENT_MEMORY list for examples and tests that are too big to fit build: fixed missing syscall and cpuid failures Added missing syscall stubs for nanostubs and fixed compile error with cpuid periph build: fixed whitespace error build: add hifive1 to more BOARD_INSUFFICIENT_MEMORY doc: fixed doxygen warnings Addressed Doxygen warnings in source file comments doc: more doxygen fixes doc: even more doxygen fixes doc: more changes build: fix pedantic and rdci_simple build failures make: exclude lua
58 lines
1.1 KiB
C
58 lines
1.1 KiB
C
/*
|
|
* Copyright (C) 2017 Ken Rabold
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
/**
|
|
* @defgroup cpu_fe310 SiFive FE310
|
|
* @ingroup cpu
|
|
* @brief Common implementations and headers for RISC-V
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Basic definitions for the RISC-V common module
|
|
*
|
|
* When ever you want to do something hardware related, that is accessing MCUs
|
|
* registers, just include this file. It will then make sure that the MCU
|
|
* specific headers are included.
|
|
*
|
|
* @author Ken Rabold
|
|
*/
|
|
|
|
#ifndef CPU_H
|
|
#define CPU_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Initialization of the CPU
|
|
*/
|
|
void cpu_init(void);
|
|
|
|
/**
|
|
* @brief Print the last instruction's address
|
|
*
|
|
* @todo: Not supported
|
|
*/
|
|
static inline void cpu_print_last_instruction(void)
|
|
{
|
|
/* This function must exist else RIOT won't compile */
|
|
}
|
|
|
|
/**
|
|
* @brief Initialization of the Newlib-nano stub
|
|
*/
|
|
void nanostubs_init(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* CPU_H */
|
|
/** @} */
|