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:

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.

Indices and tables