Rename include/libopenstm32 to include/stm32.
This commit is contained in:
parent
8e084b1517
commit
be2ac142d9
@ -18,10 +18,10 @@
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <libopenstm32/flash.h>
|
||||
#include <libopenstm32/scb.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <stm32/flash.h>
|
||||
#include <stm32/scb.h>
|
||||
#include <usb/usbd.h>
|
||||
#include <usb/dfu.h>
|
||||
|
||||
|
@ -18,9 +18,9 @@
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <libopenstm32/systick.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <stm32/systick.h>
|
||||
#include <usb/usbd.h>
|
||||
#include <usb/hid.h>
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
#define INCLUDE_DFU_INTERFACE
|
||||
|
||||
#ifdef INCLUDE_DFU_INTERFACE
|
||||
#include <libopenstm32/scb.h>
|
||||
#include <stm32/scb.h>
|
||||
#include <usb/dfu.h>
|
||||
#endif
|
||||
|
||||
|
@ -18,8 +18,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/gpio.h>
|
||||
|
||||
void clock_setup(void)
|
||||
{
|
||||
|
@ -17,9 +17,9 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <libopenstm32/timer.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <stm32/timer.h>
|
||||
|
||||
// #define COMPARE
|
||||
// #define MOVING_FADE
|
||||
|
@ -18,12 +18,12 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/flash.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <libopenstm32/nvic.h>
|
||||
#include <libopenstm32/systick.h>
|
||||
#include <libopenstm32/can.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/flash.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <stm32/nvic.h>
|
||||
#include <stm32/systick.h>
|
||||
#include <stm32/can.h>
|
||||
|
||||
struct can_tx_msg {
|
||||
u32 std_id;
|
||||
|
@ -18,8 +18,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/gpio.h>
|
||||
|
||||
/* Set STM32 to 72 MHz. */
|
||||
void clock_setup(void)
|
||||
|
@ -18,11 +18,11 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/flash.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <libopenstm32/nvic.h>
|
||||
#include <libopenstm32/systick.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/flash.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <stm32/nvic.h>
|
||||
#include <stm32/systick.h>
|
||||
|
||||
u32 temp32;
|
||||
|
||||
|
@ -17,9 +17,9 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <libopenstm32/usart.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <stm32/usart.h>
|
||||
|
||||
void clock_setup(void)
|
||||
{
|
||||
|
@ -17,10 +17,10 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <libopenstm32/usart.h>
|
||||
#include <libopenstm32/nvic.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <stm32/usart.h>
|
||||
#include <stm32/nvic.h>
|
||||
|
||||
void clock_setup(void)
|
||||
{
|
||||
|
@ -17,11 +17,11 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/flash.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <libopenstm32/usart.h>
|
||||
#include <libopenstm32/adc.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/flash.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <stm32/usart.h>
|
||||
#include <stm32/adc.h>
|
||||
|
||||
void usart_setup(void)
|
||||
{
|
||||
|
@ -17,11 +17,11 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/flash.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <libopenstm32/usart.h>
|
||||
#include <libopenstm32/dma.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/flash.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <stm32/usart.h>
|
||||
#include <stm32/dma.h>
|
||||
|
||||
void usart_setup(void)
|
||||
{
|
||||
|
@ -21,8 +21,8 @@
|
||||
#define DOGM128_H
|
||||
|
||||
#include <cm3/common.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <libopenstm32/spi.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <stm32/spi.h>
|
||||
|
||||
/* PB10 GPIO - ~RESET
|
||||
* PB12 SPI2_NSS - ~CS1
|
||||
|
@ -17,13 +17,13 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/flash.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <libopenstm32/usart.h>
|
||||
#include <libopenstm32/timer.h>
|
||||
#include <libopenstm32/nvic.h>
|
||||
#include <libopenstm32/spi.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/flash.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <stm32/usart.h>
|
||||
#include <stm32/timer.h>
|
||||
#include <stm32/nvic.h>
|
||||
#include <stm32/spi.h>
|
||||
#include "./dogm128.h"
|
||||
|
||||
void gpio_setup(void)
|
||||
|
@ -17,11 +17,11 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/flash.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <libopenstm32/usart.h>
|
||||
#include <libopenstm32/i2c.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/flash.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <stm32/usart.h>
|
||||
#include <stm32/i2c.h>
|
||||
#include "stts75.h"
|
||||
|
||||
void usart_setup(void)
|
||||
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/i2c.h>
|
||||
#include <stm32/i2c.h>
|
||||
#include "stts75.h"
|
||||
|
||||
void stts75_write_config(u32 i2c, u8 sensor)
|
||||
|
@ -17,12 +17,12 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <libopenstm32/usart.h>
|
||||
#include <libopenstm32/rtc.h>
|
||||
#include <libopenstm32/pwr.h>
|
||||
#include <libopenstm32/nvic.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <stm32/usart.h>
|
||||
#include <stm32/rtc.h>
|
||||
#include <stm32/pwr.h>
|
||||
#include <stm32/nvic.h>
|
||||
|
||||
void clock_setup(void)
|
||||
{
|
||||
|
@ -17,11 +17,11 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/flash.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <libopenstm32/nvic.h>
|
||||
#include <libopenstm32/systick.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/flash.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <stm32/nvic.h>
|
||||
#include <stm32/systick.h>
|
||||
|
||||
u32 temp32;
|
||||
|
||||
|
@ -17,11 +17,11 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/flash.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <libopenstm32/timer.h>
|
||||
#include <libopenstm32/nvic.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/flash.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <stm32/timer.h>
|
||||
#include <stm32/nvic.h>
|
||||
|
||||
void gpio_setup(void)
|
||||
{
|
||||
|
@ -18,8 +18,8 @@
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <usb/usbd.h>
|
||||
#include <usb/cdc.h>
|
||||
|
||||
|
@ -18,10 +18,10 @@
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <libopenstm32/flash.h>
|
||||
#include <libopenstm32/scb.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <stm32/flash.h>
|
||||
#include <stm32/scb.h>
|
||||
#include <usb/usbd.h>
|
||||
#include <usb/dfu.h>
|
||||
|
||||
|
@ -18,9 +18,9 @@
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <libopenstm32/systick.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <stm32/systick.h>
|
||||
#include <usb/usbd.h>
|
||||
#include <usb/hid.h>
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
#define INCLUDE_DFU_INTERFACE
|
||||
|
||||
#ifdef INCLUDE_DFU_INTERFACE
|
||||
#include <libopenstm32/scb.h>
|
||||
#include <stm32/scb.h>
|
||||
#include <usb/dfu.h>
|
||||
#endif
|
||||
|
||||
|
@ -17,8 +17,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/gpio.h>
|
||||
|
||||
/* Set STM32 to 72 MHz. */
|
||||
void clock_setup(void)
|
||||
|
@ -17,8 +17,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/gpio.h>
|
||||
|
||||
void gpio_setup(void)
|
||||
{
|
||||
|
@ -17,8 +17,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/spi.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/spi.h>
|
||||
|
||||
void clock_setup(void)
|
||||
{
|
||||
|
@ -17,9 +17,9 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <libopenstm32/usart.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <stm32/usart.h>
|
||||
|
||||
void clock_setup(void)
|
||||
{
|
||||
|
@ -18,8 +18,8 @@
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <usb/usbd.h>
|
||||
#include <usb/cdc.h>
|
||||
|
||||
|
@ -18,10 +18,10 @@
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <libopenstm32/flash.h>
|
||||
#include <libopenstm32/scb.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <stm32/flash.h>
|
||||
#include <stm32/scb.h>
|
||||
#include <usb/usbd.h>
|
||||
#include <usb/dfu.h>
|
||||
|
||||
|
@ -18,9 +18,9 @@
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <libopenstm32/systick.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <stm32/systick.h>
|
||||
#include <usb/usbd.h>
|
||||
#include <usb/hid.h>
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
#define INCLUDE_DFU_INTERFACE
|
||||
|
||||
#ifdef INCLUDE_DFU_INTERFACE
|
||||
#include <libopenstm32/scb.h>
|
||||
#include <stm32/scb.h>
|
||||
#include <usb/dfu.h>
|
||||
#endif
|
||||
|
||||
|
@ -18,10 +18,10 @@
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <libopenstm32/flash.h>
|
||||
#include <libopenstm32/scb.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <stm32/flash.h>
|
||||
#include <stm32/scb.h>
|
||||
#include <usb/usbd.h>
|
||||
#include <usb/dfu.h>
|
||||
|
||||
|
@ -20,30 +20,30 @@
|
||||
#ifndef LIBOPENSTM32_LIBOPENSTM32_H
|
||||
#define LIBOPENSTM32_LIBOPENSTM32_H
|
||||
|
||||
#include <libopenstm32/tools.h>
|
||||
#include <stm32/tools.h>
|
||||
#include <cm3/common.h>
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <libopenstm32/usart.h>
|
||||
#include <libopenstm32/adc.h>
|
||||
#include <libopenstm32/spi.h>
|
||||
#include <libopenstm32/timer.h>
|
||||
#include <libopenstm32/flash.h>
|
||||
#include <libopenstm32/usb.h>
|
||||
#include <libopenstm32/usb_desc.h>
|
||||
#include <libopenstm32/can.h>
|
||||
#include <libopenstm32/nvic.h>
|
||||
#include <libopenstm32/rtc.h>
|
||||
#include <libopenstm32/i2c.h>
|
||||
#include <libopenstm32/dma.h>
|
||||
#include <libopenstm32/scb.h>
|
||||
#include <libopenstm32/systick.h>
|
||||
#include <libopenstm32/iwdg.h>
|
||||
#include <libopenstm32/wwdg.h>
|
||||
#include <libopenstm32/pwr.h>
|
||||
#include <libopenstm32/crc.h>
|
||||
#include <libopenstm32/bkp.h>
|
||||
#include <libopenstm32/exti.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/gpio.h>
|
||||
#include <stm32/usart.h>
|
||||
#include <stm32/adc.h>
|
||||
#include <stm32/spi.h>
|
||||
#include <stm32/timer.h>
|
||||
#include <stm32/flash.h>
|
||||
#include <stm32/usb.h>
|
||||
#include <stm32/usb_desc.h>
|
||||
#include <stm32/can.h>
|
||||
#include <stm32/nvic.h>
|
||||
#include <stm32/rtc.h>
|
||||
#include <stm32/i2c.h>
|
||||
#include <stm32/dma.h>
|
||||
#include <stm32/scb.h>
|
||||
#include <stm32/systick.h>
|
||||
#include <stm32/iwdg.h>
|
||||
#include <stm32/wwdg.h>
|
||||
#include <stm32/pwr.h>
|
||||
#include <stm32/crc.h>
|
||||
#include <stm32/bkp.h>
|
||||
#include <stm32/exti.h>
|
||||
|
||||
#endif
|
||||
|
@ -20,7 +20,7 @@
|
||||
#ifndef LIBOPENSTM32_ADC_H
|
||||
#define LIBOPENSTM32_ADC_H
|
||||
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <cm3/common.h>
|
||||
|
||||
/* --- Convenience macros -------------------------------------------------- */
|
@ -20,7 +20,7 @@
|
||||
#ifndef LIBOPENSTM32_BKP_H
|
||||
#define LIBOPENSTM32_BKP_H
|
||||
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <cm3/common.h>
|
||||
|
||||
/* --- BKP registers ------------------------------------------------------- */
|
@ -20,7 +20,7 @@
|
||||
#ifndef LIBOPENSTM32_CAN_H
|
||||
#define LIBOPENSTM32_CAN_H
|
||||
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <cm3/common.h>
|
||||
|
||||
/* --- Convenience macros -------------------------------------------------- */
|
@ -20,7 +20,7 @@
|
||||
#ifndef LIBOPENSTM32_CRC_H
|
||||
#define LIBOPENSTM32_CRC_H
|
||||
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <cm3/common.h>
|
||||
|
||||
/* --- CRC registers ------------------------------------------------------- */
|
@ -20,7 +20,7 @@
|
||||
#ifndef LIBOPENSTM32_DMA_H
|
||||
#define LIBOPENSTM32_DMA_H
|
||||
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <cm3/common.h>
|
||||
|
||||
/* --- Convenience macros -------------------------------------------------- */
|
@ -20,7 +20,7 @@
|
||||
#ifndef LIBOPENSTM32_ETHERNET_H
|
||||
#define LIBOPENSTM32_ETHERNET_H
|
||||
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <cm3/common.h>
|
||||
|
||||
/* Ethernet MAC registers */
|
@ -20,7 +20,7 @@
|
||||
#ifndef LIBOPENSTM32_EXTI_H
|
||||
#define LIBOPENSTM32_EXTI_H
|
||||
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <cm3/common.h>
|
||||
|
||||
/* --- EXTI registers ------------------------------------------------------ */
|
@ -28,7 +28,7 @@
|
||||
#ifndef LIBOPENSTM32_FLASH_H
|
||||
#define LIBOPENSTM32_FLASH_H
|
||||
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <cm3/common.h>
|
||||
|
||||
/* --- FLASH registers ----------------------------------------------------- */
|
@ -20,7 +20,7 @@
|
||||
#ifndef LIBOPENSTM32_GPIO_H
|
||||
#define LIBOPENSTM32_GPIO_H
|
||||
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <cm3/common.h>
|
||||
|
||||
/* --- Convenience macros -------------------------------------------------- */
|
@ -20,7 +20,7 @@
|
||||
#ifndef LIBOPENSTM32_I2C_H
|
||||
#define LIBOPENSTM32_I2C_H
|
||||
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <cm3/common.h>
|
||||
|
||||
/* --- Convenience macros -------------------------------------------------- */
|
@ -20,7 +20,7 @@
|
||||
#ifndef LIBOPENSTM32_IWDG_H
|
||||
#define LIBOPENSTM32_IWDG_H
|
||||
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <cm3/common.h>
|
||||
|
||||
/* --- IWDG registers ------------------------------------------------------ */
|
@ -20,7 +20,7 @@
|
||||
#ifndef LIBOPENSTM32_NVIC_H
|
||||
#define LIBOPENSTM32_NVIC_H
|
||||
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <cm3/common.h>
|
||||
|
||||
/* --- NVIC Registers ------------------------------------------------------ */
|
@ -20,7 +20,7 @@
|
||||
#ifndef LIBOPENSTM32_PWR_H
|
||||
#define LIBOPENSTM32_PWR_H
|
||||
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <cm3/common.h>
|
||||
|
||||
/* --- PWR registers ------------------------------------------------------- */
|
@ -21,7 +21,7 @@
|
||||
#ifndef LIBOPENSTM32_RCC_H
|
||||
#define LIBOPENSTM32_RCC_H
|
||||
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <cm3/common.h>
|
||||
|
||||
/* Note: Regs/bits marked (**) only exist in "connectivity line" STM32s. */
|
@ -20,9 +20,9 @@
|
||||
#ifndef LIBOPENSTM32_RTC_H
|
||||
#define LIBOPENSTM32_RTC_H
|
||||
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <cm3/common.h>
|
||||
#include <libopenstm32/pwr.h>
|
||||
#include <stm32/pwr.h>
|
||||
|
||||
/* --- RTC registers ------------------------------------------------------- */
|
||||
|
@ -21,7 +21,7 @@
|
||||
#ifndef LIBOPENSTM32_SCB_H
|
||||
#define LIBOPENSTM32_SCB_H
|
||||
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <cm3/common.h>
|
||||
|
||||
/* --- SCB: Registers ------------------------------------------------------ */
|
@ -20,7 +20,7 @@
|
||||
#ifndef LIBOPENSTM32_SPI_H
|
||||
#define LIBOPENSTM32_SPI_H
|
||||
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <cm3/common.h>
|
||||
|
||||
/* Registers can be accessed as 16bit or 32bit values. */
|
@ -20,7 +20,7 @@
|
||||
#ifndef LIBOPENSTM32_SYSTICK_H
|
||||
#define LIBOPENSTM32_SYSTICK_H
|
||||
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <cm3/common.h>
|
||||
|
||||
/* --- SYSTICK registers --------------------------------------------------- */
|
@ -20,7 +20,7 @@
|
||||
#ifndef LIBOPENSTM32_TIMER_H
|
||||
#define LIBOPENSTM32_TIMER_H
|
||||
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <cm3/common.h>
|
||||
|
||||
/* --- Convenience macros -------------------------------------------------- */
|
@ -20,7 +20,7 @@
|
||||
#ifndef LIBOPENSTM32_USART_H
|
||||
#define LIBOPENSTM32_USART_H
|
||||
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <cm3/common.h>
|
||||
|
||||
/* --- Convenience macros -------------------------------------------------- */
|
@ -20,9 +20,9 @@
|
||||
#ifndef LIBOPENSTM32_USB_H
|
||||
#define LIBOPENSTM32_USB_H
|
||||
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <cm3/common.h>
|
||||
#include <libopenstm32/tools.h>
|
||||
#include <stm32/tools.h>
|
||||
|
||||
/* --- USB base addresses -------------------------------------------------- */
|
||||
|
@ -20,7 +20,7 @@
|
||||
#ifndef LIBOPENSTM32_WWDG_H
|
||||
#define LIBOPENSTM32_WWDG_H
|
||||
|
||||
#include <libopenstm32/memorymap.h>
|
||||
#include <stm32/memorymap.h>
|
||||
#include <cm3/common.h>
|
||||
|
||||
/* --- WWDG registers ------------------------------------------------------ */
|
@ -31,7 +31,7 @@
|
||||
* reg16 = adc_read(ADC1, ADC_CH_0);
|
||||
*/
|
||||
|
||||
#include <libopenstm32/adc.h>
|
||||
#include <stm32/adc.h>
|
||||
|
||||
void rcc_set_adc_clk(u32 prescaler)
|
||||
{
|
||||
|
@ -17,8 +17,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/can.h>
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <stm32/can.h>
|
||||
#include <stm32/rcc.h>
|
||||
|
||||
void can_reset(u32 canport)
|
||||
{
|
||||
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/dma.h>
|
||||
#include <stm32/dma.h>
|
||||
|
||||
void dma_enable_mem2mem_mode(u32 dma, u8 channel)
|
||||
{
|
||||
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/ethernet.h>
|
||||
#include <stm32/ethernet.h>
|
||||
|
||||
void eth_smi_write(u8 phy, u8 reg, u16 data)
|
||||
{
|
||||
|
@ -17,8 +17,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/exti.h>
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <stm32/exti.h>
|
||||
#include <stm32/gpio.h>
|
||||
|
||||
void exti_set_trigger(u32 extis, exti_trigger_type trig)
|
||||
{
|
||||
|
@ -18,7 +18,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/flash.h>
|
||||
#include <stm32/flash.h>
|
||||
|
||||
void flash_prefetch_buffer_enable(void)
|
||||
{
|
||||
|
@ -34,7 +34,7 @@
|
||||
* - GPIO remapping support
|
||||
*/
|
||||
|
||||
#include <libopenstm32/gpio.h>
|
||||
#include <stm32/gpio.h>
|
||||
|
||||
void gpio_set_mode(u32 gpioport, u8 mode, u8 cnf, u16 gpios)
|
||||
{
|
||||
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/i2c.h>
|
||||
#include <stm32/i2c.h>
|
||||
|
||||
void i2c_peripheral_enable(u32 i2c)
|
||||
{
|
||||
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/nvic.h>
|
||||
#include <stm32/nvic.h>
|
||||
|
||||
void nvic_enable_irq(u8 irqn)
|
||||
{
|
||||
|
@ -19,8 +19,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/flash.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/flash.h>
|
||||
|
||||
void rcc_osc_ready_int_clear(osc_t osc)
|
||||
{
|
||||
|
@ -18,9 +18,9 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/rtc.h>
|
||||
#include <libopenstm32/pwr.h>
|
||||
#include <stm32/rcc.h>
|
||||
#include <stm32/rtc.h>
|
||||
#include <stm32/pwr.h>
|
||||
|
||||
void rtc_awake_from_off(osc_t clock_source)
|
||||
{
|
||||
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/scb.h>
|
||||
#include <stm32/scb.h>
|
||||
|
||||
void scb_reset_core(void)
|
||||
{
|
||||
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/spi.h>
|
||||
#include <stm32/spi.h>
|
||||
|
||||
/*
|
||||
* SPI and I2S code.
|
||||
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/systick.h>
|
||||
#include <stm32/systick.h>
|
||||
|
||||
void systick_set_reload(u32 value)
|
||||
{
|
||||
|
@ -25,7 +25,7 @@
|
||||
* TIM_CR1_CMS_CENTRE_3, TIM_CR1_DIR_UP);
|
||||
*/
|
||||
|
||||
#include <libopenstm32/timer.h>
|
||||
#include <stm32/timer.h>
|
||||
|
||||
void timer_set_mode(u32 timer_peripheral, u8 clock_div, u8 alignment,
|
||||
u8 direction)
|
||||
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32/usart.h>
|
||||
#include <stm32/usart.h>
|
||||
|
||||
void usart_set_baudrate(u32 usart, u32 baud)
|
||||
{
|
||||
|
@ -18,8 +18,8 @@
|
||||
*/
|
||||
|
||||
#include <cm3/common.h>
|
||||
#include <libopenstm32/tools.h>
|
||||
#include <libopenstm32/usb.h>
|
||||
#include <stm32/tools.h>
|
||||
#include <stm32/usb.h>
|
||||
#include <usb/usbd.h>
|
||||
#include "usb_private.h"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user