GadgetSeed  0.9.6
NUCLEO-L152RE.c ファイル

STM32L152RE Nucleo Initialize [詳解]

#include "sysconfig.h"
#include "tkprintf.h"
#include "device/i2c_ioctl.h"
#include "device/spi_ioctl.h"
#include "device/sd_ioctl.h"
#include "device/rtc_ioctl.h"
#include "device/video_ioctl.h"
#include "device/vio_ioctl.h"
#include "graphics.h"
#include "stm32l1xx_hal.h"
#include "system.h"
#include "interrupt.h"
#include "device.h"
#include "random.h"
#include "datetime.h"
#include "console.h"
#include "tprintf.h"
#include "storage.h"
#include "file.h"
#include "stm32l1xx_hal_iwdg.h"
NUCLEO-L152RE.c の依存先関係図:

[ソースコード]

関数

void SystemClock_Config (void)
 System Clock Configuration The system Clock is configured as follow : System Clock source = PLL (HSI) SYSCLK(Hz) = 24000000 HCLK(Hz) = 24000000 AHB Prescaler = 1 APB1 Prescaler = 1 APB2 Prescaler = 1 HSI Frequency(Hz) = 12000000 PLLMUL = 6 PLLDIV = 3 Flash Latency(WS) = 1 [詳解]
 
void init_cpu (void)
 CPUを初期化する
 
void init_system (int *argc, char ***argv)
 ドライバ初期化以前に行う初期化処理
 
void init_system_drivers (void)
 基本ドライバ初期化後に登録するユーザドライバ登録処理
 
void init_system_process (void)
 タスク起動後の初期化処理 [詳解]
 
void reset_system (void)
 

変数

const struct st_device usart2_device
 
const struct st_device usart2_low_device
 
const struct st_device usart4_device
 
const struct st_device null_device
 
const struct st_device rtc_device
 
const struct st_device i2c_device
 
const struct st_device adt7410_device
 
const struct st_device bme280_device
 
const struct st_device spi1_device
 
const struct st_device spi2_device
 
const struct st_device stm_mmc_device
 
const struct st_device mmc_device
 
const struct st_device led_device
 LEDドライバ
 
const struct st_device lcd_gpio_device
 
const struct st_device ts_analog_device
 
const struct st_device ili9325_lcd_device
 
const struct st_device ili9341_lcd_device
 
const struct st_device hx8357d_lcd_device
 
const struct st_device buzzer_device
 
const struct st_device sound_device
 
const struct st_device adc_device
 
const struct st_device grconsole_device
 
const struct st_device gpio_button_device
 
const struct st_device eeprom_device
 
const struct st_device irq_device
 
const struct st_device gpio_device
 
static const char *const storade_devices []
 
static IWDG_HandleTypeDef IwdgHandle
 

詳解

STM32L152RE Nucleo Initialize

日付
2018.08.11
著者
Takashi SHUDO

NUCLEO-L152RE.c に定義があります。

関数詳解

◆ init_system_process()

void init_system_process ( void  )

タスク起動後の初期化処理

覚え書き
タスクAPIを必要とする初期化を行う

NUCLEO-L152RE.c208 行目に定義があります。

◆ SystemClock_Config()

void SystemClock_Config ( void  )

System Clock Configuration The system Clock is configured as follow : System Clock source = PLL (HSI) SYSCLK(Hz) = 24000000 HCLK(Hz) = 24000000 AHB Prescaler = 1 APB1 Prescaler = 1 APB2 Prescaler = 1 HSI Frequency(Hz) = 12000000 PLLMUL = 6 PLLDIV = 3 Flash Latency(WS) = 1

戻り値
None

NUCLEO-L152RE.c38 行目に定義があります。

参照元 init_cpu().

被呼び出し関係図:

変数詳解

◆ grconsole_device

const struct st_device grconsole_device
初期値:
= {
.name = "grcon",
.explan = "Graphic console",
.register_dev = grconsole_register,
.open = grconsole_open,
.ioctl = grconsole_ioctl,
.putc = grconsole_putc,
.seek = grconsole_seek,
}

grconsole.c264 行目に定義があります。

◆ i2c_device

const struct st_device i2c_device
初期値:
= {
.explan = "STM32F4 I2C1 Master",
.private_data = (void *)&i2c_prv_data[0],
.register_dev = i2c_register,
.mutex = &i2c_mutex[0],
.open = i2c_open,
.close = i2c_close,
.read = i2c_read,
.write = i2c_write,
.ioctl = i2c_ioctl,
.seek = i2c_seek,
.suspend = i2c_suspend,
.resume = i2c_resume,
}
int suspend(void)
全デバイスを休止状態にする
Definition: device.c:634
#define DEF_DEV_NAME_I2C
標準I2Cコントローラデバイス名
Definition: i2c_ioctl.h:15
int resume(void)
全デバイスを活性化する
Definition: device.c:655

i2c.c271 行目に定義があります。

◆ spi1_device

const struct st_device spi1_device
初期値:
= {
.explan = "STM32F4 SPI1",
.private_data = (void *)&spi_data[0],
.register_dev = spi_register,
.read = spi_read,
.getc = spi_getc,
.write = spi_write,
.putc = spi_putc,
.ioctl = spi_ioctl,
.suspend = spi_suspend,
.resume = spi_resume,
}
int suspend(void)
全デバイスを休止状態にする
Definition: device.c:634
#define DEF_DEV_NAME_SPI
標準SPIマスターコントローラデバイス名
Definition: spi_ioctl.h:15
int resume(void)
全デバイスを活性化する
Definition: device.c:655

spi.c1132 行目に定義があります。

◆ spi2_device

const struct st_device spi2_device
初期値:
= {
.name = DEF_DEV_NAME_SPI "1",
.explan = "STM32F4 SPI2",
.private_data = (void *)&spi_data[1],
.register_dev = spi_register,
.read = spi_read,
.getc = spi_getc,
.write = spi_write,
.putc = spi_putc,
.ioctl = spi_ioctl,
.suspend = spi_suspend,
.resume = spi_resume,
}
int suspend(void)
全デバイスを休止状態にする
Definition: device.c:634
#define DEF_DEV_NAME_SPI
標準SPIマスターコントローラデバイス名
Definition: spi_ioctl.h:15
int resume(void)
全デバイスを活性化する
Definition: device.c:655

spi.c1146 行目に定義があります。

◆ storade_devices

const char* const storade_devices[]
static
初期値:
= {
0
}
#define DEF_DEV_NAME_SD
標準ストレージデバイス名(MMC,SD等)
Definition: sd_ioctl.h:15

NUCLEO-L152RE.c147 行目に定義があります。