EnglishFrenchSpanish

OnWorks favicon

gd32f330-lib download for Windows

Free download gd32f330-lib Windows app to run online win Wine in Ubuntu online, Fedora online or Debian online

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

Download and run online this app named gd32f330-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 any OS OnWorks online emulator from this website, but better Windows online emulator.

- 5. From the OnWorks Windows 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 and install it.

- 7. Download Wine from your Linux distributions software repositories. Once installed, you can then double-click the app to run them with Wine. You can also try PlayOnLinux, a fancy interface over Wine that will help you install popular Windows programs and games.

Wine is a way to run Windows software on Linux, but with no Windows required. Wine is an open-source Windows compatibility layer that can run Windows programs directly on any Linux desktop. Essentially, Wine is trying to re-implement enough of Windows from scratch so that it can run all those Windows applications without actually needing Windows.

gd32f330-lib


Ad


DESCRIPTION

GigaDevice GD32F330 startup code/peripheral library.

Use:

#define F_CPU 84000000
#include "gd32f330f8.h"

flash_lat(0); // latency=0

// 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,1, 21); // PLL @ 84M = 8M / 2 x 21
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); // measure VCC, mV



Features

  • gd32
  • gd32f330
  • startup
  • library



This is an application that can also be fetched from https://sourceforge.net/projects/gd32f330-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
    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
  • 2
    Code::Blocks
    Code::Blocks
    Code::Blocks is a free, open-source,
    cross-platform C, C++ and Fortran IDE
    built to meet the most demanding needs
    of its users. It is designed to be very
    extens...
    Download Code::Blocks
  • 3
    Amidst
    Amidst
    Amidst or Advanced Minecraft Interface
    and Data/Structure Tracking is a tool to
    display an overview of a Minecraft
    world, without actually creating it. It
    can ...
    Download Amidst
  • 4
    MSYS2
    MSYS2
    MSYS2 is a collection of tools and
    libraries providing you with an
    easy-to-use environment for building,
    installing and running native Windows
    software. It con...
    Download MSYS2
  • 5
    libjpeg-turbo
    libjpeg-turbo
    libjpeg-turbo is a JPEG image codec
    that uses SIMD instructions (MMX, SSE2,
    NEON, AltiVec) to accelerate baseline
    JPEG compression and decompression on
    x86, x8...
    Download libjpeg-turbo
  • 6
    Xtreme Download Manager
    Xtreme Download Manager
    The project has a new home now:
    https://xtremedownloadmanager.com/ For
    developers:
    https://github.com/subhra74/xdm Xtreme
    Download Manager is a powerful tool t...
    Download Xtreme Download Manager
  • More »

Linux commands

Ad