Go to advanced search

by StuartF
Sun Apr 05, 2015 9:16 pm
Forum: C/C++
Topic: Solid 31250 UART Midi
Replies: 6
Views: 1750

Re: Solid 31250 UART Midi

In theory I agree, and yet in practice there it was... For the record the uart was running from the pi through an old Roland sampler midi pcb ( photodiode, DIN sockets ) to one of those cheap usb->midi DIN convertors to a PC running midi/ox as the receiver/transmitter. Maybe there was some sync prob...
by StuartF
Thu Apr 02, 2015 4:59 pm
Forum: C/C++
Topic: mmap: Operation not permitted
Replies: 7
Views: 4326

Re: mmap: Operation not permitted

Also you make the same redefinitions throughout the class.
I was hoping that the hint would of made you look through the whole code.

Once you have defined the struct, there is no need to use 'struct', just the name.
by StuartF
Thu Apr 02, 2015 4:35 pm
Forum: C/C++
Topic: mmap: Operation not permitted
Replies: 7
Views: 4326

Re: mmap: Operation not permitted

You may be redefining the struct...

Code: Select all

class RpiMemory
{
	struct bcm2835_peripheral gpio;
maybe should be

Code: Select all

class RpiMemory
{
	bcm2835_peripheral gpio;
by StuartF
Mon Mar 02, 2015 11:56 pm
Forum: C/C++
Topic: Solid 31250 UART Midi
Replies: 6
Views: 1750

Solid 31250 UART Midi

Here is a solution for SOLID 31250 uart midi rate for raspian. Do the Dom suggested removal of ttyAMA0 from cmdline.txt and add the 'bcm2708.uart_clock=3000000' However, do nothing to the config.txt (remove references if you already have the uart stuff in). The #includes are for this code, other #in...
by StuartF
Sun Feb 02, 2014 6:22 pm
Forum: Graphics programming
Topic: Memory leakage with multithreaded EGL/OpenVG programming
Replies: 13
Views: 5312

Re: Memory leakage with multithreaded EGL/OpenVG programming

I also had this kind of problem, but found that adding usleep( 10000 ) after the eglReleaseThread() gave enough time for egl to release its memory allocations before the calling thread terminated.
'release as soon as possible' is not the same as 'release immediate'.

Go to advanced search