Menu Close

Tag: external platform level interrupt

I2C software engineering main function

1. fii_i2c0.c   Related reference articles: RISC-V teaching plan   fii_i2c0.c mainly implements some functions declared in fii_i2c0.h. #include <stdio.h> #include <stdint.h> #include “fii_i2c0.h” #include…

UART software engineering main function

1. fii_uart1.c   Related reference articles: RISC-V teaching plan   fii_uart1.c is mainly used to implement the declared UART1_IRQ_register function in fii_uart1.h #include <stdio.h> #include…

UART introduction and design

1. Introduction to UART   Related reference articles: RISC-V teaching plan Before entering the RISC-V UART interrupt design, here is a brief introduction to the…

RISC-V GPIO Interrupt Project Design (2)

2. Engineering code   Related reference articles: RISC-V teaching plan   2.3. fii_gpio.c #include <stdio.h> #include <stdint.h> #include “fii_gpio.h” #include “platform.h” //Function to implement GPIO…

RISC-V GPIO Interrupt Project Design (1)

1. GPIO interrupt source   Related reference articles: RISC-V teaching plan   In PLIC (PLIC introduction click here ), among the external platform-level interrupt sources,…

RISC-V PLIC Project Design(2)

1. PLIC software design   Related reference articles: RISC-V teaching plan   1.4. plic_driver.c #include “platform.h” #include “plic.h” #include “plic_driver.h” #include “encoding.h” #include <string.h> //Initialize…