EnglishFrenchSpanish

OnWorks favicon

gd32e230-lib download for Linux

Free download gd32e230-lib Linux app to run online in Ubuntu online, Fedora online or Debian online

This is the Linux app named gd32e230-lib whose latest release can be downloaded as gd32e230-lib.zip. It can be run online in the free hosting provider OnWorks for workstations.

Download and run online this app named gd32e230-lib with OnWorks for free.

Follow these instructions in order to run this app:

- 1. Downloaded this application in your PC.

- 2. Enter in our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.

- 3. Upload this application in such filemanager.

- 4. Start the OnWorks Linux online or Windows online emulator or MACOS online emulator from this website.

- 5. From the OnWorks Linux OS you have just started, goto our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.

- 6. Download the application, install it and run it.

gd32e230-lib


Ad


DESCRIPTION

GigaDevice GD32E230 startup code/peripheral library.

Use:

#define F_CPU 72000000
#include "gd32e230k8.h"

flash_64b(0); // 32-bit access
flash_pref(1); // prefetch on
flash_lat(2); // latency=2

// bus.prescalers
ahb_div(AHB_DIV_1);
apb1_div(APB1_DIV_1);
apb2_div(APB2_DIV_1);

hxtal_on(1); // HXTAL @ 8M
pll_on(1,0, 9); // PLL @ 72M = 8Mx9
sysclk_sel(SYSCLK_PLL); // SysCLK=PLL

// peripheral clocks
ahb_on(AHB_GPIOA | AHB_CRC);
apb1_on(APB1_TIM2 | APB1_TIM5);
apb2_on(APB2_ADC | APB2_TIM0);

// GPIO
pin_mo(GPIOA,1, MO_AF); // mode
pin_ot(GPIOA,1, OT_PP); // o.type
pin_os(GPIOA,1, OS_10M); // o.speed
pin_af(GPIOA,1, 4); // AF mode

// ADC
adc_on(ADC_RES_12B, ADC_AL_RIGHT, 0); // enable
adc_cal(); // calibrate
adc_iref_on(1); // Vref/Tref on
adc_trig(1, ADC_TRIG_SOFT); // soft trigger

adc_stime(17,ADC_239_5); // s.time
adc_chn(17); // Vref channel

adc_start(1); // start

while(!adc_ready()); // wait

int vcc = adc_vcc(adc_rd(), 1200); // VCC



Features

  • gd32
  • gd32e230
  • startup
  • library



This is an application that can also be fetched from https://sourceforge.net/projects/gd32e230-lib/. It has been hosted in OnWorks in order to be run online in an easiest way from one of our free Operative Systems.


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Blackfriday
    Blackfriday
    Blackfriday is a Markdown processor
    implemented in Go. It is paranoid about
    its input (so you can safely feed it
    user-supplied data), it is fast, it
    supports c...
    Download Blackfriday
  • 2
    QNAP NAS GPL Source
    QNAP NAS GPL Source
    GPL source for QNAP Turbo NAS.
    Audience: Developers. User interface:
    Web-based. Programming Language: C,
    Java. Categories:System, Storage,
    Operating System Ker...
    Download QNAP NAS GPL Source
  • 3
    deep-clean
    deep-clean
    A Kotlin script that nukes all build
    caches from Gradle/Android projects.
    Useful when Gradle or the IDE let you
    down. The script has been tested on
    macOS, but ...
    Download deep-clean
  • 4
    Eclipse Checkstyle Plug-in
    Eclipse Checkstyle Plug-in
    The Eclipse Checkstyle plug-in
    integrates the Checkstyle Java code
    auditor into the Eclipse IDE. The
    plug-in provides real-time feedback to
    the user about viol...
    Download Eclipse Checkstyle Plug-in
  • 5
    AstrOrzPlayer
    AstrOrzPlayer
    AstrOrz Player is a free media player
    software, part based on WMP and VLC. The
    player is in a minimalist style, with
    more than ten theme colors, and can also
    b...
    Download AstrOrzPlayer
  • 6
    movistartv
    movistartv
    Kodi Movistar+ TV es un ADDON para XBMC/
    Kodi que permite disponer de un
    decodificador de los servicios IPTV de
    Movistar integrado en uno de los
    mediacenters ma...
    Download movistartv
  • More »

Linux commands

Ad