Rename include/libopenstm32 to include/stm32.

This commit is contained in:
Uwe Hermann 2010-12-30 02:23:51 +01:00
parent 8e084b1517
commit be2ac142d9
72 changed files with 178 additions and 178 deletions

View File

@ -18,10 +18,10 @@
*/ */
#include <string.h> #include <string.h>
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <libopenstm32/flash.h> #include <stm32/flash.h>
#include <libopenstm32/scb.h> #include <stm32/scb.h>
#include <usb/usbd.h> #include <usb/usbd.h>
#include <usb/dfu.h> #include <usb/dfu.h>

View File

@ -18,9 +18,9 @@
*/ */
#include <stdlib.h> #include <stdlib.h>
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <libopenstm32/systick.h> #include <stm32/systick.h>
#include <usb/usbd.h> #include <usb/usbd.h>
#include <usb/hid.h> #include <usb/hid.h>
@ -28,7 +28,7 @@
#define INCLUDE_DFU_INTERFACE #define INCLUDE_DFU_INTERFACE
#ifdef INCLUDE_DFU_INTERFACE #ifdef INCLUDE_DFU_INTERFACE
#include <libopenstm32/scb.h> #include <stm32/scb.h>
#include <usb/dfu.h> #include <usb/dfu.h>
#endif #endif

View File

@ -18,8 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
void clock_setup(void) void clock_setup(void)
{ {

View File

@ -17,9 +17,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <libopenstm32/timer.h> #include <stm32/timer.h>
// #define COMPARE // #define COMPARE
// #define MOVING_FADE // #define MOVING_FADE

View File

@ -18,12 +18,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/flash.h> #include <stm32/flash.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <libopenstm32/nvic.h> #include <stm32/nvic.h>
#include <libopenstm32/systick.h> #include <stm32/systick.h>
#include <libopenstm32/can.h> #include <stm32/can.h>
struct can_tx_msg { struct can_tx_msg {
u32 std_id; u32 std_id;

View File

@ -18,8 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
/* Set STM32 to 72 MHz. */ /* Set STM32 to 72 MHz. */
void clock_setup(void) void clock_setup(void)

View File

@ -18,11 +18,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/flash.h> #include <stm32/flash.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <libopenstm32/nvic.h> #include <stm32/nvic.h>
#include <libopenstm32/systick.h> #include <stm32/systick.h>
u32 temp32; u32 temp32;

View File

@ -17,9 +17,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <libopenstm32/usart.h> #include <stm32/usart.h>
void clock_setup(void) void clock_setup(void)
{ {

View File

@ -17,10 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <libopenstm32/usart.h> #include <stm32/usart.h>
#include <libopenstm32/nvic.h> #include <stm32/nvic.h>
void clock_setup(void) void clock_setup(void)
{ {

View File

@ -17,11 +17,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/flash.h> #include <stm32/flash.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <libopenstm32/usart.h> #include <stm32/usart.h>
#include <libopenstm32/adc.h> #include <stm32/adc.h>
void usart_setup(void) void usart_setup(void)
{ {

View File

@ -17,11 +17,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/flash.h> #include <stm32/flash.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <libopenstm32/usart.h> #include <stm32/usart.h>
#include <libopenstm32/dma.h> #include <stm32/dma.h>
void usart_setup(void) void usart_setup(void)
{ {

View File

@ -21,8 +21,8 @@
#define DOGM128_H #define DOGM128_H
#include <cm3/common.h> #include <cm3/common.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <libopenstm32/spi.h> #include <stm32/spi.h>
/* PB10 GPIO - ~RESET /* PB10 GPIO - ~RESET
* PB12 SPI2_NSS - ~CS1 * PB12 SPI2_NSS - ~CS1

View File

@ -17,13 +17,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/flash.h> #include <stm32/flash.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <libopenstm32/usart.h> #include <stm32/usart.h>
#include <libopenstm32/timer.h> #include <stm32/timer.h>
#include <libopenstm32/nvic.h> #include <stm32/nvic.h>
#include <libopenstm32/spi.h> #include <stm32/spi.h>
#include "./dogm128.h" #include "./dogm128.h"
void gpio_setup(void) void gpio_setup(void)

View File

@ -17,11 +17,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/flash.h> #include <stm32/flash.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <libopenstm32/usart.h> #include <stm32/usart.h>
#include <libopenstm32/i2c.h> #include <stm32/i2c.h>
#include "stts75.h" #include "stts75.h"
void usart_setup(void) void usart_setup(void)

View File

@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/i2c.h> #include <stm32/i2c.h>
#include "stts75.h" #include "stts75.h"
void stts75_write_config(u32 i2c, u8 sensor) void stts75_write_config(u32 i2c, u8 sensor)

View File

@ -17,12 +17,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <libopenstm32/usart.h> #include <stm32/usart.h>
#include <libopenstm32/rtc.h> #include <stm32/rtc.h>
#include <libopenstm32/pwr.h> #include <stm32/pwr.h>
#include <libopenstm32/nvic.h> #include <stm32/nvic.h>
void clock_setup(void) void clock_setup(void)
{ {

View File

@ -17,11 +17,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/flash.h> #include <stm32/flash.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <libopenstm32/nvic.h> #include <stm32/nvic.h>
#include <libopenstm32/systick.h> #include <stm32/systick.h>
u32 temp32; u32 temp32;

View File

@ -17,11 +17,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/flash.h> #include <stm32/flash.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <libopenstm32/timer.h> #include <stm32/timer.h>
#include <libopenstm32/nvic.h> #include <stm32/nvic.h>
void gpio_setup(void) void gpio_setup(void)
{ {

View File

@ -18,8 +18,8 @@
*/ */
#include <stdlib.h> #include <stdlib.h>
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <usb/usbd.h> #include <usb/usbd.h>
#include <usb/cdc.h> #include <usb/cdc.h>

View File

@ -18,10 +18,10 @@
*/ */
#include <string.h> #include <string.h>
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <libopenstm32/flash.h> #include <stm32/flash.h>
#include <libopenstm32/scb.h> #include <stm32/scb.h>
#include <usb/usbd.h> #include <usb/usbd.h>
#include <usb/dfu.h> #include <usb/dfu.h>

View File

@ -18,9 +18,9 @@
*/ */
#include <stdlib.h> #include <stdlib.h>
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <libopenstm32/systick.h> #include <stm32/systick.h>
#include <usb/usbd.h> #include <usb/usbd.h>
#include <usb/hid.h> #include <usb/hid.h>
@ -28,7 +28,7 @@
#define INCLUDE_DFU_INTERFACE #define INCLUDE_DFU_INTERFACE
#ifdef INCLUDE_DFU_INTERFACE #ifdef INCLUDE_DFU_INTERFACE
#include <libopenstm32/scb.h> #include <stm32/scb.h>
#include <usb/dfu.h> #include <usb/dfu.h>
#endif #endif

View File

@ -17,8 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
/* Set STM32 to 72 MHz. */ /* Set STM32 to 72 MHz. */
void clock_setup(void) void clock_setup(void)

View File

@ -17,8 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
void gpio_setup(void) void gpio_setup(void)
{ {

View File

@ -17,8 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/spi.h> #include <stm32/spi.h>
void clock_setup(void) void clock_setup(void)
{ {

View File

@ -17,9 +17,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <libopenstm32/usart.h> #include <stm32/usart.h>
void clock_setup(void) void clock_setup(void)
{ {

View File

@ -18,8 +18,8 @@
*/ */
#include <stdlib.h> #include <stdlib.h>
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <usb/usbd.h> #include <usb/usbd.h>
#include <usb/cdc.h> #include <usb/cdc.h>

View File

@ -18,10 +18,10 @@
*/ */
#include <string.h> #include <string.h>
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <libopenstm32/flash.h> #include <stm32/flash.h>
#include <libopenstm32/scb.h> #include <stm32/scb.h>
#include <usb/usbd.h> #include <usb/usbd.h>
#include <usb/dfu.h> #include <usb/dfu.h>

View File

@ -18,9 +18,9 @@
*/ */
#include <stdlib.h> #include <stdlib.h>
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <libopenstm32/systick.h> #include <stm32/systick.h>
#include <usb/usbd.h> #include <usb/usbd.h>
#include <usb/hid.h> #include <usb/hid.h>
@ -28,7 +28,7 @@
#define INCLUDE_DFU_INTERFACE #define INCLUDE_DFU_INTERFACE
#ifdef INCLUDE_DFU_INTERFACE #ifdef INCLUDE_DFU_INTERFACE
#include <libopenstm32/scb.h> #include <stm32/scb.h>
#include <usb/dfu.h> #include <usb/dfu.h>
#endif #endif

View File

@ -18,10 +18,10 @@
*/ */
#include <string.h> #include <string.h>
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <libopenstm32/flash.h> #include <stm32/flash.h>
#include <libopenstm32/scb.h> #include <stm32/scb.h>
#include <usb/usbd.h> #include <usb/usbd.h>
#include <usb/dfu.h> #include <usb/dfu.h>

View File

@ -20,30 +20,30 @@
#ifndef LIBOPENSTM32_LIBOPENSTM32_H #ifndef LIBOPENSTM32_LIBOPENSTM32_H
#define LIBOPENSTM32_LIBOPENSTM32_H #define LIBOPENSTM32_LIBOPENSTM32_H
#include <libopenstm32/tools.h> #include <stm32/tools.h>
#include <cm3/common.h> #include <cm3/common.h>
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
#include <libopenstm32/usart.h> #include <stm32/usart.h>
#include <libopenstm32/adc.h> #include <stm32/adc.h>
#include <libopenstm32/spi.h> #include <stm32/spi.h>
#include <libopenstm32/timer.h> #include <stm32/timer.h>
#include <libopenstm32/flash.h> #include <stm32/flash.h>
#include <libopenstm32/usb.h> #include <stm32/usb.h>
#include <libopenstm32/usb_desc.h> #include <stm32/usb_desc.h>
#include <libopenstm32/can.h> #include <stm32/can.h>
#include <libopenstm32/nvic.h> #include <stm32/nvic.h>
#include <libopenstm32/rtc.h> #include <stm32/rtc.h>
#include <libopenstm32/i2c.h> #include <stm32/i2c.h>
#include <libopenstm32/dma.h> #include <stm32/dma.h>
#include <libopenstm32/scb.h> #include <stm32/scb.h>
#include <libopenstm32/systick.h> #include <stm32/systick.h>
#include <libopenstm32/iwdg.h> #include <stm32/iwdg.h>
#include <libopenstm32/wwdg.h> #include <stm32/wwdg.h>
#include <libopenstm32/pwr.h> #include <stm32/pwr.h>
#include <libopenstm32/crc.h> #include <stm32/crc.h>
#include <libopenstm32/bkp.h> #include <stm32/bkp.h>
#include <libopenstm32/exti.h> #include <stm32/exti.h>
#endif #endif

View File

@ -20,7 +20,7 @@
#ifndef LIBOPENSTM32_ADC_H #ifndef LIBOPENSTM32_ADC_H
#define LIBOPENSTM32_ADC_H #define LIBOPENSTM32_ADC_H
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <cm3/common.h> #include <cm3/common.h>
/* --- Convenience macros -------------------------------------------------- */ /* --- Convenience macros -------------------------------------------------- */

View File

@ -20,7 +20,7 @@
#ifndef LIBOPENSTM32_BKP_H #ifndef LIBOPENSTM32_BKP_H
#define LIBOPENSTM32_BKP_H #define LIBOPENSTM32_BKP_H
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <cm3/common.h> #include <cm3/common.h>
/* --- BKP registers ------------------------------------------------------- */ /* --- BKP registers ------------------------------------------------------- */

View File

@ -20,7 +20,7 @@
#ifndef LIBOPENSTM32_CAN_H #ifndef LIBOPENSTM32_CAN_H
#define LIBOPENSTM32_CAN_H #define LIBOPENSTM32_CAN_H
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <cm3/common.h> #include <cm3/common.h>
/* --- Convenience macros -------------------------------------------------- */ /* --- Convenience macros -------------------------------------------------- */

View File

@ -20,7 +20,7 @@
#ifndef LIBOPENSTM32_CRC_H #ifndef LIBOPENSTM32_CRC_H
#define LIBOPENSTM32_CRC_H #define LIBOPENSTM32_CRC_H
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <cm3/common.h> #include <cm3/common.h>
/* --- CRC registers ------------------------------------------------------- */ /* --- CRC registers ------------------------------------------------------- */

View File

@ -20,7 +20,7 @@
#ifndef LIBOPENSTM32_DMA_H #ifndef LIBOPENSTM32_DMA_H
#define LIBOPENSTM32_DMA_H #define LIBOPENSTM32_DMA_H
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <cm3/common.h> #include <cm3/common.h>
/* --- Convenience macros -------------------------------------------------- */ /* --- Convenience macros -------------------------------------------------- */

View File

@ -20,7 +20,7 @@
#ifndef LIBOPENSTM32_ETHERNET_H #ifndef LIBOPENSTM32_ETHERNET_H
#define LIBOPENSTM32_ETHERNET_H #define LIBOPENSTM32_ETHERNET_H
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <cm3/common.h> #include <cm3/common.h>
/* Ethernet MAC registers */ /* Ethernet MAC registers */

View File

@ -20,7 +20,7 @@
#ifndef LIBOPENSTM32_EXTI_H #ifndef LIBOPENSTM32_EXTI_H
#define LIBOPENSTM32_EXTI_H #define LIBOPENSTM32_EXTI_H
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <cm3/common.h> #include <cm3/common.h>
/* --- EXTI registers ------------------------------------------------------ */ /* --- EXTI registers ------------------------------------------------------ */

View File

@ -28,7 +28,7 @@
#ifndef LIBOPENSTM32_FLASH_H #ifndef LIBOPENSTM32_FLASH_H
#define LIBOPENSTM32_FLASH_H #define LIBOPENSTM32_FLASH_H
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <cm3/common.h> #include <cm3/common.h>
/* --- FLASH registers ----------------------------------------------------- */ /* --- FLASH registers ----------------------------------------------------- */

View File

@ -20,7 +20,7 @@
#ifndef LIBOPENSTM32_GPIO_H #ifndef LIBOPENSTM32_GPIO_H
#define LIBOPENSTM32_GPIO_H #define LIBOPENSTM32_GPIO_H
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <cm3/common.h> #include <cm3/common.h>
/* --- Convenience macros -------------------------------------------------- */ /* --- Convenience macros -------------------------------------------------- */

View File

@ -20,7 +20,7 @@
#ifndef LIBOPENSTM32_I2C_H #ifndef LIBOPENSTM32_I2C_H
#define LIBOPENSTM32_I2C_H #define LIBOPENSTM32_I2C_H
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <cm3/common.h> #include <cm3/common.h>
/* --- Convenience macros -------------------------------------------------- */ /* --- Convenience macros -------------------------------------------------- */

View File

@ -20,7 +20,7 @@
#ifndef LIBOPENSTM32_IWDG_H #ifndef LIBOPENSTM32_IWDG_H
#define LIBOPENSTM32_IWDG_H #define LIBOPENSTM32_IWDG_H
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <cm3/common.h> #include <cm3/common.h>
/* --- IWDG registers ------------------------------------------------------ */ /* --- IWDG registers ------------------------------------------------------ */

View File

@ -20,7 +20,7 @@
#ifndef LIBOPENSTM32_NVIC_H #ifndef LIBOPENSTM32_NVIC_H
#define LIBOPENSTM32_NVIC_H #define LIBOPENSTM32_NVIC_H
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <cm3/common.h> #include <cm3/common.h>
/* --- NVIC Registers ------------------------------------------------------ */ /* --- NVIC Registers ------------------------------------------------------ */

View File

@ -20,7 +20,7 @@
#ifndef LIBOPENSTM32_PWR_H #ifndef LIBOPENSTM32_PWR_H
#define LIBOPENSTM32_PWR_H #define LIBOPENSTM32_PWR_H
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <cm3/common.h> #include <cm3/common.h>
/* --- PWR registers ------------------------------------------------------- */ /* --- PWR registers ------------------------------------------------------- */

View File

@ -21,7 +21,7 @@
#ifndef LIBOPENSTM32_RCC_H #ifndef LIBOPENSTM32_RCC_H
#define LIBOPENSTM32_RCC_H #define LIBOPENSTM32_RCC_H
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <cm3/common.h> #include <cm3/common.h>
/* Note: Regs/bits marked (**) only exist in "connectivity line" STM32s. */ /* Note: Regs/bits marked (**) only exist in "connectivity line" STM32s. */

View File

@ -20,9 +20,9 @@
#ifndef LIBOPENSTM32_RTC_H #ifndef LIBOPENSTM32_RTC_H
#define LIBOPENSTM32_RTC_H #define LIBOPENSTM32_RTC_H
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <cm3/common.h> #include <cm3/common.h>
#include <libopenstm32/pwr.h> #include <stm32/pwr.h>
/* --- RTC registers ------------------------------------------------------- */ /* --- RTC registers ------------------------------------------------------- */

View File

@ -21,7 +21,7 @@
#ifndef LIBOPENSTM32_SCB_H #ifndef LIBOPENSTM32_SCB_H
#define LIBOPENSTM32_SCB_H #define LIBOPENSTM32_SCB_H
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <cm3/common.h> #include <cm3/common.h>
/* --- SCB: Registers ------------------------------------------------------ */ /* --- SCB: Registers ------------------------------------------------------ */

View File

@ -20,7 +20,7 @@
#ifndef LIBOPENSTM32_SPI_H #ifndef LIBOPENSTM32_SPI_H
#define LIBOPENSTM32_SPI_H #define LIBOPENSTM32_SPI_H
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <cm3/common.h> #include <cm3/common.h>
/* Registers can be accessed as 16bit or 32bit values. */ /* Registers can be accessed as 16bit or 32bit values. */

View File

@ -20,7 +20,7 @@
#ifndef LIBOPENSTM32_SYSTICK_H #ifndef LIBOPENSTM32_SYSTICK_H
#define LIBOPENSTM32_SYSTICK_H #define LIBOPENSTM32_SYSTICK_H
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <cm3/common.h> #include <cm3/common.h>
/* --- SYSTICK registers --------------------------------------------------- */ /* --- SYSTICK registers --------------------------------------------------- */

View File

@ -20,7 +20,7 @@
#ifndef LIBOPENSTM32_TIMER_H #ifndef LIBOPENSTM32_TIMER_H
#define LIBOPENSTM32_TIMER_H #define LIBOPENSTM32_TIMER_H
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <cm3/common.h> #include <cm3/common.h>
/* --- Convenience macros -------------------------------------------------- */ /* --- Convenience macros -------------------------------------------------- */

View File

@ -20,7 +20,7 @@
#ifndef LIBOPENSTM32_USART_H #ifndef LIBOPENSTM32_USART_H
#define LIBOPENSTM32_USART_H #define LIBOPENSTM32_USART_H
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <cm3/common.h> #include <cm3/common.h>
/* --- Convenience macros -------------------------------------------------- */ /* --- Convenience macros -------------------------------------------------- */

View File

@ -20,9 +20,9 @@
#ifndef LIBOPENSTM32_USB_H #ifndef LIBOPENSTM32_USB_H
#define LIBOPENSTM32_USB_H #define LIBOPENSTM32_USB_H
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <cm3/common.h> #include <cm3/common.h>
#include <libopenstm32/tools.h> #include <stm32/tools.h>
/* --- USB base addresses -------------------------------------------------- */ /* --- USB base addresses -------------------------------------------------- */

View File

@ -20,7 +20,7 @@
#ifndef LIBOPENSTM32_WWDG_H #ifndef LIBOPENSTM32_WWDG_H
#define LIBOPENSTM32_WWDG_H #define LIBOPENSTM32_WWDG_H
#include <libopenstm32/memorymap.h> #include <stm32/memorymap.h>
#include <cm3/common.h> #include <cm3/common.h>
/* --- WWDG registers ------------------------------------------------------ */ /* --- WWDG registers ------------------------------------------------------ */

View File

@ -31,7 +31,7 @@
* reg16 = adc_read(ADC1, ADC_CH_0); * reg16 = adc_read(ADC1, ADC_CH_0);
*/ */
#include <libopenstm32/adc.h> #include <stm32/adc.h>
void rcc_set_adc_clk(u32 prescaler) void rcc_set_adc_clk(u32 prescaler)
{ {

View File

@ -17,8 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/can.h> #include <stm32/can.h>
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
void can_reset(u32 canport) void can_reset(u32 canport)
{ {

View File

@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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) void dma_enable_mem2mem_mode(u32 dma, u8 channel)
{ {

View File

@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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) void eth_smi_write(u8 phy, u8 reg, u16 data)
{ {

View File

@ -17,8 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/exti.h> #include <stm32/exti.h>
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
void exti_set_trigger(u32 extis, exti_trigger_type trig) void exti_set_trigger(u32 extis, exti_trigger_type trig)
{ {

View File

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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) void flash_prefetch_buffer_enable(void)
{ {

View File

@ -34,7 +34,7 @@
* - GPIO remapping support * - GPIO remapping support
*/ */
#include <libopenstm32/gpio.h> #include <stm32/gpio.h>
void gpio_set_mode(u32 gpioport, u8 mode, u8 cnf, u16 gpios) void gpio_set_mode(u32 gpioport, u8 mode, u8 cnf, u16 gpios)
{ {

View File

@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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) void i2c_peripheral_enable(u32 i2c)
{ {

View File

@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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) void nvic_enable_irq(u8 irqn)
{ {

View File

@ -19,8 +19,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/flash.h> #include <stm32/flash.h>
void rcc_osc_ready_int_clear(osc_t osc) void rcc_osc_ready_int_clear(osc_t osc)
{ {

View File

@ -18,9 +18,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/rcc.h> #include <stm32/rcc.h>
#include <libopenstm32/rtc.h> #include <stm32/rtc.h>
#include <libopenstm32/pwr.h> #include <stm32/pwr.h>
void rtc_awake_from_off(osc_t clock_source) void rtc_awake_from_off(osc_t clock_source)
{ {

View File

@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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) void scb_reset_core(void)
{ {

View File

@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <libopenstm32/spi.h> #include <stm32/spi.h>
/* /*
* SPI and I2S code. * SPI and I2S code.

View File

@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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) void systick_set_reload(u32 value)
{ {

View File

@ -25,7 +25,7 @@
* TIM_CR1_CMS_CENTRE_3, TIM_CR1_DIR_UP); * 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, void timer_set_mode(u32 timer_peripheral, u8 clock_div, u8 alignment,
u8 direction) u8 direction)

View File

@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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) void usart_set_baudrate(u32 usart, u32 baud)
{ {

View File

@ -18,8 +18,8 @@
*/ */
#include <cm3/common.h> #include <cm3/common.h>
#include <libopenstm32/tools.h> #include <stm32/tools.h>
#include <libopenstm32/usb.h> #include <stm32/usb.h>
#include <usb/usbd.h> #include <usb/usbd.h>
#include "usb_private.h" #include "usb_private.h"