K210 programming example - high-speed GPIO and external interrupt

High-speed GPIO and external interrupt


This article will introduce how to use the high-speed GPIO interrupt of K210.

1. K210 interrupt introduction

The CPU interrupt management of K210 is divided into platform interrupt management (PLIC) and local interrupt management (CLINT). Among them, platform interrupt management supports advanced interrupt management, and supports routing of 64 external interrupt sources to 2 CPU cores; local interrupt management supports CPU built-in timer interrupt and cross-core interrupt.

The platform interrupt controller of K210 supports flexible advanced interrupt management. It can configure 64 external interrupt sources in 7 priority levels. Both CPU cores can be configured independently:

  • Independent interrupt management and interrupt routing control for two cores
  • Support software interrupt, and dual-core can trigger cross-core interrupt each other
  • Support CPU built-in timer interrupt, both cores can be freely configured
  • Advanced external interrupt management, supports 64 external interrupt sources, and each interrupt source can be configured with 7 priorities.

2. High-speed GPIO interrupt API introduction

  • **gpiohs_set_pin_edge(uint

Guess you like

Origin blog.csdn.net/wujuxKkoolerter/article/details/131754475