stm32:rng: add common v1 to l0,l4,f7
This is a common peripheral based on reference manual inspection.
This commit is contained in:
23
include/libopencm3/stm32/f7/rng.h
Normal file
23
include/libopencm3/stm32/f7/rng.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* This file is part of the libopencm3 project.
|
||||
*
|
||||
* This library is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBOPENCM3_RNG_H
|
||||
#define LIBOPENCM3_RNG_H
|
||||
|
||||
#include <libopencm3/stm32/common/rng_common_v1.h>
|
||||
|
||||
#endif
|
||||
23
include/libopencm3/stm32/l0/rng.h
Normal file
23
include/libopencm3/stm32/l0/rng.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* This file is part of the libopencm3 project.
|
||||
*
|
||||
* This library is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBOPENCM3_RNG_H
|
||||
#define LIBOPENCM3_RNG_H
|
||||
|
||||
#include <libopencm3/stm32/common/rng_common_v1.h>
|
||||
|
||||
#endif
|
||||
23
include/libopencm3/stm32/l4/rng.h
Normal file
23
include/libopencm3/stm32/l4/rng.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* This file is part of the libopencm3 project.
|
||||
*
|
||||
* This library is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBOPENCM3_RNG_H
|
||||
#define LIBOPENCM3_RNG_H
|
||||
|
||||
#include <libopencm3/stm32/common/rng_common_v1.h>
|
||||
|
||||
#endif
|
||||
@@ -24,6 +24,12 @@
|
||||
# include <libopencm3/stm32/f2/rng.h>
|
||||
#elif defined(STM32F4)
|
||||
# include <libopencm3/stm32/f4/rng.h>
|
||||
#elif defined(STM32F7)
|
||||
# include <libopencm3/stm32/f7/rng.h>
|
||||
#elif defined(STM32L0)
|
||||
# include <libopencm3/stm32/l0/rng.h>
|
||||
#elif defined(STM32L4)
|
||||
# include <libopencm3/stm32/l4/rng.h>
|
||||
#else
|
||||
# error "stm32 family not defined."
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user