aboutsummaryrefslogtreecommitdiff
path: root/lib/stm32
diff options
context:
space:
mode:
authorUwe Hermann2010-12-31 18:18:39 +0100
committerUwe Hermann2010-12-31 18:18:39 +0100
commit8f251e8a9d46634be4741f7f1aef3d52fb1b7dba (patch)
treefb3c17756e0b18fe19ca28f0f67b2ae636cac807 /lib/stm32
parent95793aa6cedeef06db9592602ecf3dc00edec610 (diff)
Some more file/path restructuring.
All #includes now explicitly use the "<libopencm3/stm32/rcc.h>" format. If you want to get rid of the "libopencm3" prefix in your local project you can add a respective -I entry in your Makefile (not recommended though). All .ld files and .a libs are installed in $(TOOLCHAIN_DIR)/lib directly (as before), but are now renamed to avoid potential conflicts now or in the future. Examples: libopencm3_lpc13xx.a libopencm3_lpc13xx.ld libopencm3_stm32.a libopencm3_stm32.ld
Diffstat (limited to 'lib/stm32')
-rw-r--r--lib/stm32/adc.c2
-rw-r--r--lib/stm32/can.c4
-rw-r--r--lib/stm32/dma.c2
-rw-r--r--lib/stm32/ethernet.c2
-rw-r--r--lib/stm32/exti.c4
-rw-r--r--lib/stm32/flash.c2
-rw-r--r--lib/stm32/gpio.c2
-rw-r--r--lib/stm32/i2c.c2
-rw-r--r--lib/stm32/libopencm3_stm32.ld (renamed from lib/stm32/stm32.ld)0
-rw-r--r--lib/stm32/nvic.c2
-rw-r--r--lib/stm32/rcc.c4
-rw-r--r--lib/stm32/rtc.c6
-rw-r--r--lib/stm32/scb.c2
-rw-r--r--lib/stm32/spi.c2
-rw-r--r--lib/stm32/systick.c2
-rw-r--r--lib/stm32/timer.c2
-rw-r--r--lib/stm32/usart.c2
17 files changed, 21 insertions, 21 deletions
diff --git a/lib/stm32/adc.c b/lib/stm32/adc.c
index fa32b25..058837c 100644
--- a/lib/stm32/adc.c
+++ b/lib/stm32/adc.c
@@ -31,7 +31,7 @@
* reg16 = adc_read(ADC1, ADC_CH_0);
*/
-#include <stm32/adc.h>
+#include <libopencm3/stm32/adc.h>
void rcc_set_adc_clk(u32 prescaler)
{
diff --git a/lib/stm32/can.c b/lib/stm32/can.c
index 73f102f..3266133 100644
--- a/lib/stm32/can.c
+++ b/lib/stm32/can.c
@@ -17,8 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stm32/can.h>
-#include <stm32/rcc.h>
+#include <libopencm3/stm32/can.h>
+#include <libopencm3/stm32/rcc.h>
void can_reset(u32 canport)
{
diff --git a/lib/stm32/dma.c b/lib/stm32/dma.c
index 84a10c7..8feb2c9 100644
--- a/lib/stm32/dma.c
+++ b/lib/stm32/dma.c
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stm32/dma.h>
+#include <libopencm3/stm32/dma.h>
void dma_enable_mem2mem_mode(u32 dma, u8 channel)
{
diff --git a/lib/stm32/ethernet.c b/lib/stm32/ethernet.c
index 980b941..4a4d080 100644
--- a/lib/stm32/ethernet.c
+++ b/lib/stm32/ethernet.c
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stm32/ethernet.h>
+#include <libopencm3/stm32/ethernet.h>
void eth_smi_write(u8 phy, u8 reg, u16 data)
{
diff --git a/lib/stm32/exti.c b/lib/stm32/exti.c
index 4961eab..cdc2347 100644
--- a/lib/stm32/exti.c
+++ b/lib/stm32/exti.c
@@ -17,8 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stm32/exti.h>
-#include <stm32/gpio.h>
+#include <libopencm3/stm32/exti.h>
+#include <libopencm3/stm32/gpio.h>
void exti_set_trigger(u32 extis, exti_trigger_type trig)
{
diff --git a/lib/stm32/flash.c b/lib/stm32/flash.c
index b623fc7..98f7777 100644
--- a/lib/stm32/flash.c
+++ b/lib/stm32/flash.c
@@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stm32/flash.h>
+#include <libopencm3/stm32/flash.h>
void flash_prefetch_buffer_enable(void)
{
diff --git a/lib/stm32/gpio.c b/lib/stm32/gpio.c
index 4811b54..333fcaf 100644
--- a/lib/stm32/gpio.c
+++ b/lib/stm32/gpio.c
@@ -34,7 +34,7 @@
* - GPIO remapping support
*/
-#include <stm32/gpio.h>
+#include <libopencm3/stm32/gpio.h>
void gpio_set_mode(u32 gpioport, u8 mode, u8 cnf, u16 gpios)
{
diff --git a/lib/stm32/i2c.c b/lib/stm32/i2c.c
index e16b824..e1a3b84 100644
--- a/lib/stm32/i2c.c
+++ b/lib/stm32/i2c.c
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stm32/i2c.h>
+#include <libopencm3/stm32/i2c.h>
void i2c_peripheral_enable(u32 i2c)
{
diff --git a/lib/stm32/stm32.ld b/lib/stm32/libopencm3_stm32.ld
index b0e202e..b0e202e 100644
--- a/lib/stm32/stm32.ld
+++ b/lib/stm32/libopencm3_stm32.ld
diff --git a/lib/stm32/nvic.c b/lib/stm32/nvic.c
index c9dcf3c..cf77cc3 100644
--- a/lib/stm32/nvic.c
+++ b/lib/stm32/nvic.c
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stm32/nvic.h>
+#include <libopencm3/stm32/nvic.h>
void nvic_enable_irq(u8 irqn)
{
diff --git a/lib/stm32/rcc.c b/lib/stm32/rcc.c
index eddc667..997163a 100644
--- a/lib/stm32/rcc.c
+++ b/lib/stm32/rcc.c
@@ -19,8 +19,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stm32/rcc.h>
-#include <stm32/flash.h>
+#include <libopencm3/stm32/rcc.h>
+#include <libopencm3/stm32/flash.h>
void rcc_osc_ready_int_clear(osc_t osc)
{
diff --git a/lib/stm32/rtc.c b/lib/stm32/rtc.c
index 1396559..4495641 100644
--- a/lib/stm32/rtc.c
+++ b/lib/stm32/rtc.c
@@ -18,9 +18,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stm32/rcc.h>
-#include <stm32/rtc.h>
-#include <stm32/pwr.h>
+#include <libopencm3/stm32/rcc.h>
+#include <libopencm3/stm32/rtc.h>
+#include <libopencm3/stm32/pwr.h>
void rtc_awake_from_off(osc_t clock_source)
{
diff --git a/lib/stm32/scb.c b/lib/stm32/scb.c
index cd95bca..dfee6c3 100644
--- a/lib/stm32/scb.c
+++ b/lib/stm32/scb.c
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stm32/scb.h>
+#include <libopencm3/stm32/scb.h>
void scb_reset_core(void)
{
diff --git a/lib/stm32/spi.c b/lib/stm32/spi.c
index 918617a..733a1bc 100644
--- a/lib/stm32/spi.c
+++ b/lib/stm32/spi.c
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stm32/spi.h>
+#include <libopencm3/stm32/spi.h>
/*
* SPI and I2S code.
diff --git a/lib/stm32/systick.c b/lib/stm32/systick.c
index 998c0ed..882601d 100644
--- a/lib/stm32/systick.c
+++ b/lib/stm32/systick.c
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stm32/systick.h>
+#include <libopencm3/stm32/systick.h>
void systick_set_reload(u32 value)
{
diff --git a/lib/stm32/timer.c b/lib/stm32/timer.c
index be90d06..ae51f1e 100644
--- a/lib/stm32/timer.c
+++ b/lib/stm32/timer.c
@@ -25,7 +25,7 @@
* TIM_CR1_CMS_CENTRE_3, TIM_CR1_DIR_UP);
*/
-#include <stm32/timer.h>
+#include <libopencm3/stm32/timer.h>
void timer_set_mode(u32 timer_peripheral, u8 clock_div, u8 alignment,
u8 direction)
diff --git a/lib/stm32/usart.c b/lib/stm32/usart.c
index a16e45a..f644776 100644
--- a/lib/stm32/usart.c
+++ b/lib/stm32/usart.c
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stm32/usart.h>
+#include <libopencm3/stm32/usart.h>
void usart_set_baudrate(u32 usart, u32 baud)
{