Ecosyste.ms: Repos
An open API service providing repository metadata for many open source software ecosystems.
GitHub / rsta2 / circle
A C++ bare metal environment for Raspberry Pi with USB (32 and 64 bit)
JSON API: https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsta2%2Fcircle
Stars: 1,737
Forks: 229
Open Issues: 11
License: gpl-3.0
Language: C
Repo Size: 6.73 MB
Dependencies:
52
Created: over 9 years ago
Updated: 6 days ago
Last pushed: 1 day ago
Last synced: 1 day ago
Topics: bare-metal, c-plus-plus, framework, raspberry-pi, tcp-ip, usb
Files
Loading...
Readme
Loading...
Dependencies
- serialport ^9.0.4
- 1.Therecommendedwaytodefineacache-alignedDMAbufferonstackis *
- 2-4 *
- 2.Databuffersallocatedfromtheheaparealwayscache-aligned *
- 3.DMAbufferscanbedefinedstaticoutsideofafunctionorwiththe *
- CSocketclass. *
- Circlehasdriversforseveraldevices ,whichuseDMAandusestheCPUdata
- ControlMessage ,GetDescriptor,Transfer,SubmitBlockingRequest,
- DEFININGADMABUFFER *
- DMABUFFERREQUIREMENTS *
- DMA_BUFFER *
- DatabuffersusedforDMAoperationsmustbedefinedcache-alignedasaDMA *
- DatabuffersusedforDMAtransferscanbestoredindifferentlocations *
- Pi2-4 *
- Pleasenotethatyoushouldnotusethe *
- SubmitAsyncRequest. *
- That *
- TheDMA_BUFFER *
- Thisisperformedusingsystemcontroloperations ,whichrequire,thatthedata
- WHERETODEFINEADMABUFFER *
- additional *
- and *
- arewrittenoutfromdatacachetotheSDRAMbeforeaDMAtransferisstarted *
- buffer.Thisappliestodevicedriversinmanycases ,butwritingadevice
- bufferonitsown.Thisrequiresamemcpy *
- buffers. *
- buffershandedovertothefollowingmethodsmustbecache-alignedDMAbuffers *
- buffersusedforDMAtransfersarealignedtothesizeofadatacachelinein *
- cache-aligned ,thedriverwilldetectitandwillprovideacache
- cache-alignedDMAbuffers.Thisdoesnotapplyforbuffershandedovertothe *
- cache-alignedDMAbuffersforperformancereasons.Iftheyarenot *
- cache-alignment. *
- cachetospeedupoperation.Managingdatacoherencyinsuchasystemrequires *
- completed. *
- databufferscanbedefined. *
- databufferspassedfromanapplicationtoadevicedriverforDMAoperations ,
- definedthatway ,becausetheremaybepaddingbytesinthearrayfor
- driver.BecauseforperformancereasonssomeCircledevicedriversdirectlyuse *
- driverisseldom.ForperformancereasonsthismayapplytoCircleapplications *
- fromanetworkdevice ,buffershandedovertothenetworkdevicemustbe
- maybecorrupted.Suchissuesmaybedifficulttodetect. *
- membervariables *
- needcache-alignedDMAbuffers. *
- pDMABuffercanbeuseddirectlyforDMA.IfaC *
- performance.TheSDcarddevicedriverCEMMCDevicedoesnotuseDMAanddoesnot *
- size.Ifthisrequirementisnotmet ,theCircleapplicationmaystillwork,but
- specialsupportbythedevicedrivers ,whichhavetoensure,thatdatabuffers
- thesystem *
- thisrequirementmaybeVALIDFORAPPLICATIONBUFFERStoo *
- toounderthefollowingconditions *
- undercertainconditionsdata ,whichisstoredneartoanunalignedDMAbuffer,
- underwhichcircumstancesthisisrequiredinapplicationsandhowcache-aligned *