Mark

MarkGeiger@posteo.de

- Embedded
Readmore

STM32F4xx And ChibiOS

This is a quick guide on how to start with a STM32 eval board and ChibiOS. In this example I started a small project with a STM32F429 discovery board and the CibiOS version 18.2.1. The tutorial should be applicable with other boards and also newer ChibiOS versions.

void initADC() {
    palSetGroupMode(GPIOC, PAL_PORT_BIT(1), 0, PAL_MODE_INPUT_ANALOG);
    palSetGroupMode(GPIOC, PAL_PORT_BIT(4), 0, PAL_MODE_INPUT_ANALOG);
    palSetGroupMode(GPIOC, PAL_PORT_BIT(5), 0, PAL_MODE_INPUT_ANALOG);
    adcStart(&ADCD1, NULL);
    adcStartConversion(&ADCD1, &adcgrpcfg1, irSamples, IR_ADC_GRP1_BUF_DEPTH);
}

Read more


Comments

Blog - Newsletter

{{ formitem.title }}

{{ message | trans }}
{{ error | trans }}
{{{ thankyou }}}