Embedded Firmware · Easy · C

GPIO Bare-Metal Driver

Drive the memory-mapped GPIO peripheral from firmware.

Task

Define GPIO_BASE=0x20001000, GPIO_OUT offset 0x0 and GPIO_IN offset 0x4. Implement gpio_write and gpio_read.

Examples

Constraints

Concepts to review

C, GPIO, driver

Open HDLForge to solve this problem in the interactive editor.

Related problems