f9micro / f9-kernel

An efficient and secure microkernel built for ARM Cortex-M cores, inspired by L4
Other
679 stars 145 forks source link

Provide sample applications for device manipulation #142

Closed gnitnaw closed 7 years ago

gnitnaw commented 7 years ago

Like control of gpio or I2C device. I would like do some test.

gapry commented 7 years ago

For now, it doesn't exist device driver of GPIO or I2C.

F9 microkernel is supported the following platforms for now.

  1. STM32F4DISCOVERY
  2. STM32F429
  3. STM32P103

If your interesting platforms are not above, you need to reference the following implementations to know how to add a new platform in F9 microkernel.

Reference: Support Platforms

For example, I assume you need to use GPIO in STM32F429. First, you need the device driver of STM32F429. You can reference the following implementation and article.

  1. Library 02- STM32F429 Discovery GPIO tutorial with onboard leds and button
  2. The Project Source Code

Second, you need to refactor it which will be a user apps in F9 microkernel. Also, you need to reference the following implementations to know how to write a user app in F9 microkernel. BTW, I strongly suggest you to see the pingpong app for the first time.

Reference: User APPs

gnitnaw commented 7 years ago

Thanks. Hopefully I can also contribute this project.