Introο
This library is developed for the ECS Oberon-2 Compiler as a framework to work with MCUs.
The ECS Oberon compiler is implemented according to the original Oberon-2 report with modernizing extensions. The language is particular suited to embedded development due to itβs simplicity.
Currently the STM32F4, STM32L4 MCUs are supported and the following boards are tested:
NUCLEO-L432KC STM32L432KC MCU
STM32F407G-DISC1 STM32F407VG MCU
STM32F429I-DISC1 STM32F429ZI MCU
Exampleο
(** Simple led blinker demo using the SysTick millisecond timer *)
MODULE Test;
IMPORT BoardConfig;
CONST
SysTick = BoardConfig.SysTick;
Pins = BoardConfig.Pins;
VAR pin : Pins.Pin;
BEGIN
TRACE("START");
BoardConfig.Init;
pin.Init(BoardConfig.USER_LED1_PORT, BoardConfig.USER_LED1_PIN, Pins.output,
Pins.pushPull, Pins.medium, Pins.noPull, Pins.AF0);
REPEAT
pin.On;
TRACE("ON0");
SysTick.Delay(100);
pin.Off;
TRACE("OFF0");
SysTick.Delay(100);
UNTIL FALSE
END Test.