|
ICARUS OS (Intelligent Cooperative Architecture for Real-time Unified Systems) 0.1.0
Preemptive Real-Time Operating System for ARM Cortex-M7
|
ICARUS OS Hardware Abstraction Layer Interface. More...
#include "bsp/i2c.h"#include "bsp/rtc.h"#include "bsp/spi.h"#include "bsp/timer.h"#include "usb_device.h"#include "bsp/gpio.h"#include "lcd.h"#include "bsp/lsm9ds1_reg.h"#include "bsp/config.h"#include "bsp/mpu.h"Go to the source code of this file.
Macros | |
| #define | IMU_ADDRESS 0x6B |
| I2C address for LSM9DS1 IMU (accelerometer/gyroscope) | |
Functions | |
| void | hal_init (void) |
| Initialize all hardware abstraction layer components. | |
| void | LED_Blink (uint32_t Hdelay, uint32_t Ldelay) |
| Blink LED with specified on/off timing. | |
| void | LED_On (void) |
| Turn LED on (active high) | |
| void | LED_Off (void) |
| Turn LED off. | |
ICARUS OS Hardware Abstraction Layer Interface.
Provides hardware initialization and low-level platform services for the STM32H750VBT6 target.
Definition in file retarget_hal.h.
| #define IMU_ADDRESS 0x6B |
I2C address for LSM9DS1 IMU (accelerometer/gyroscope)
Definition at line 53 of file retarget_hal.h.
| void hal_init | ( | void | ) |
Initialize all hardware abstraction layer components.
Configures MPU, caches, clocks, and all peripherals. Must be called before os_init().
Master initialization function that configures all hardware:
Definition at line 201 of file retarget_hal.c.
References BSP_FLASH_BASE, CPU_CACHE_Enable(), MPU_Config(), MX_GPIO_Init(), MX_I2C2_Init(), MX_RTC_Init(), MX_SPI4_Init(), MX_TIM1_Init(), MX_USB_DEVICE_Init(), and SystemClock_Config().
Referenced by main().
| void LED_Blink | ( | uint32_t | Hdelay, |
| uint32_t | Ldelay | ||
| ) |
Blink LED with specified on/off timing.
| [in] | Hdelay | LED on duration in OS ticks |
| [in] | Ldelay | LED off duration in OS ticks |
Blink LED with specified timing.
Turns LED on for specified duration, then off for specified duration. Uses task_active_sleep() for non-blocking delays.
| [in] | Hdelay | LED on duration in OS ticks |
| [in] | Ldelay | LED off duration in OS ticks |
Definition at line 93 of file retarget_hal.c.
| void LED_Off | ( | void | ) |
Turn LED off.
Sets PE3 GPIO pin low to turn off the onboard LED.
Definition at line 118 of file retarget_hal.c.
| void LED_On | ( | void | ) |
Turn LED on (active high)
Turn LED on.
Sets PE3 GPIO pin high to illuminate the onboard LED.
Definition at line 107 of file retarget_hal.c.