We have hosted the application at32f421 lib in order to run this application in our online workstations with Wine or directly.


Quick description about at32f421 lib:

AT32F421 startup code and peripheral library.

Use:

// set interrupt vectors to FLASH
vtor_set(0x08000000);

// set FLASH prefetch/latency
flash_pref(1,1,1);
flash_lat(3,1);

// set clocks
hick_div6(0); // disable HICK divider
hext_on(1); // enable HEXT
pll_on(1,1, 15); // start PLL
sclk_sel(SCLK_PLL); // select PLL as system clock

// enable peripherals clocks
ahb_on(AHB_GPIOA | AHB_GPIOB);

// configure GPIO
pin_mo(GPIOA,1, MO_AF); // pin mode
pin_pu(GPIOA,1, PU_NO); // pullup
pin_ot(GPIOA,1, OT_PP); // output type
pin_odrv(GPIOA,1, DRV_LO,HDRV_LO); // output drive
pin_af(GPIOA,1, 2); // alternative function.

Features:
  • at32f421
  • gcc
  • c
  • startup


Programming Language: C.
Categories:
Libraries

Page navigation:

©2024. Winfy. All Rights Reserved.

By OD Group OU – Registry code: 1609791 -VAT number: EE102345621.