Use direct #includes instead of libopenstm32.h.
This commit is contained in:
parent
92194abda4
commit
e7cadf0822
|
@ -17,7 +17,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32.h>
|
||||
#include <libopenstm32/flash.h>
|
||||
|
||||
void flash_prefetch_buffer_enable(void)
|
||||
{
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
* - GPIO remapping support
|
||||
*/
|
||||
|
||||
#include <libopenstm32.h>
|
||||
#include <libopenstm32/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.h>
|
||||
#include <libopenstm32/i2c.h>
|
||||
|
||||
void i2c_peripheral_enable(u32 i2c)
|
||||
{
|
||||
|
|
|
@ -20,7 +20,8 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32.h>
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/flash.h>
|
||||
|
||||
void rcc_osc_ready_int_clear(osc_t osc)
|
||||
{
|
||||
|
@ -324,7 +325,6 @@ u32 rcc_system_clock_source(void)
|
|||
return ((RCC_CFGR & 0x000c) >> 2);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* These functions are setting up the whole clock system for the most common
|
||||
* input clock and output clock configurations.
|
||||
|
|
|
@ -17,7 +17,8 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32.h>
|
||||
#include <libopenstm32/rcc.h>
|
||||
#include <libopenstm32/rtc.h>
|
||||
|
||||
void rtc_init(void)
|
||||
{
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32.h>
|
||||
#include <libopenstm32/spi.h>
|
||||
|
||||
/*
|
||||
* SPI and I2S code.
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32.h>
|
||||
#include <libopenstm32/usart.h>
|
||||
|
||||
void usart_set_baudrate(u32 usart, u32 baud)
|
||||
{
|
||||
|
|
|
@ -17,8 +17,6 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libopenstm32.h>
|
||||
|
||||
#define WEAK __attribute__ ((weak))
|
||||
|
||||
void main(void);
|
||||
|
@ -96,7 +94,7 @@ void WEAK dma2_channel3_isr(void);
|
|||
void WEAK dma2_channel4_5_isr(void);
|
||||
|
||||
__attribute__ ((section(".vectors")))
|
||||
void (*const vector_table[]) (void) = {
|
||||
void (*const vector_table[]) (void) = {
|
||||
(void *)0x20000800, /* Use 2KB stack (0x800 bytes). */
|
||||
main, /* Use main() as reset vector for now. */
|
||||
nmi_handler,
|
||||
|
@ -181,6 +179,7 @@ void blocking_handler(void)
|
|||
|
||||
void null_handler(void)
|
||||
{
|
||||
/* Do nothing. */
|
||||
}
|
||||
|
||||
#pragma weak nmi_handler = null_handler
|
||||
|
|
Loading…
Reference in New Issue