Rename include/libopenstm32 to include/stm32.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user