Skip to content

shimafuji-fvio/drpDriver_for_RZA2M

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DRP Driver for RZ/A2M

This new DRP driver reduces the overhead time between DRP-execution-end and next DRP-execution-start.

Features

  • asynchronous DRP operation start API
  • individual callback function for each DRP operation start API drpDrv

Requirement

Installation

  • install Renesas e2studio
  • inport program from Renesas RZ/A2M FreeRTOS software development kit
  • update following files
directry: generate/sc_driver/r_drp/

inc/
  r_dk2_if.h      : add function ptorotypes to original file
src/
  sf_drp.c        : this new DRP driver
  sf_drp.h        : header
  r_dk2_if.c      : add functions to original file
  drp_iodefine.h  : modify macros to original file
  r_dk2_core.c    : same as original file
  r_dk2_code.h    : same as original file

Usage

APIs of this DRP driver:

sf_DK2_Initialize(void)

  - Initialize ONLY this driver
  - You should also call original R_DK2_Initialise().
int32_t sf_DK2_Load(pconfig, top_tiles, tile_pattern, pload, pint, &paid)

  - Loads configuration data in DRP
  - You should call this API instead of original R_DK2_Load().
  - Arguments are same as original DRP driver API.
  - The argument "pload"(callback function at DRP configuration completed)
  - and "pint"(callback function at DRP execution completed) are ignored.
int32_t sf_DK2_Start2(id, &pparam, size, pint)

  - Starts operation of circuit in DRP
  - You should call this API instead of original R_DK2_Start().
  - The Argument is different from the original API,
  - "pint"(callback function at DRP execution completed) is added.

Note

  • The Argument of "sf_DK2_Start2" is different from the original API.
  • You can still use original API "R_DK2_Active" and "R_DK2_Inactive" and "R_DK2_Start",
  • and "R_DK2_Unload" are available for this new DRP driver's API.

Auther

License

"DRP Driver for RZ/A2M" is under MIT license.

About

DRP Driver for RZ/A2M

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages