Skip to content

ch32-riscv-ug/arduino_core_ch32_riscv_arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arduino_core_ch32_riscv_arduino

CH32 Risc-V for Arduino IDE

https://raw.githubusercontent.com/ch32-riscv-ug/arduino_core_ch32_riscv_arduino/main/package_ch32-riscv-arduino.json

Overview

This board manager is for building CH32's RISC-V series with Arduino IDE.

This is a board manager that runs EVT as is, with the addition of the Arduino Core API.

Supported Features

  • Common

    • GPIO
      • void pinMode(pin_size_t pinNumber, PinMode pinMode)
      • PinStatus digitalRead(pin_size_t pinNumber)
      • void digitalWrite(pin_size_t pinNumber, PinStatus status)
      • void attachInterrupt(pin_size_t interruptNumber, voidFuncPtr callback, PinStatus mode)
      • void attachInterruptParam(pin_size_t interruptNumber, voidFuncPtrParam callback, PinStatus mode, void *param)
      • void detachInterrupt(pin_size_t interruptNumber)
      • uint8_t shiftIn(pin_size_t dataPin, pin_size_t clockPin, BitOrder bitOrder)
      • void shiftOut(pin_size_t dataPin, pin_size_t clockPin, BitOrder bitOrder, uint8_t val)
      • unsigned long pulseIn(pin_size_t pin, uint8_t state, unsigned long timeout)
      • unsigned long pulseInLong(pin_size_t pin, uint8_t state, unsigned long timeout)
    • ADC
      • void analogReference(uint8_t mode)
      • int analogRead(pin_size_t pinNumber)
    • DAC
      • void analogWrite(pin_size_t pinNumber, int value)
    • SysTick
      • unsigned long micros(void)
      • unsigned long millis(void)
      • void delay(unsigned long ms)
      • void delayMicroseconds(unsigned int us)
  • USART/UART(Serial, UartClass)

  • I2C(Wire Master)

  • I2C(Wire Slave)

  • I2S

  • SPI

  • Timer

  • WDT

  • RTC

  • USB Client

  • USB Host

  • USB PD

  • Ethernet