Search found 489 matches

by jean
Mon Jan 14, 2008 9:45 am
Forum: PSP Development
Topic: (Audio?) Interrupt handler
Replies: 15
Views: 3600

By the way, how do you redirect an interrupt ? through a kernel function like sceKernelRegisterIntr/sceKernelRegisterSubIntr ? Yep, this is what i'm doing while experimenting by now...is it wrong? of course if you have an example of non-trivial code where the thread switch is the main performance i...
by jean
Sun Jan 13, 2008 11:51 pm
Forum: PSP Development
Topic: Yet Another SIO Issue...
Replies: 7
Views: 3451

Very nice! Anyway, the idea of a barcode battler "port"....think about it!!! :) As far as I know we can't use the FIFO at all with the homebrew toolchain That's all i needed to hear. Then the best solution is to reproduce it in software like i'm trying to do. How if we make an "offici...
by jean
Sun Jan 13, 2008 11:38 pm
Forum: PSP Development
Topic: (Audio?) Interrupt handler
Replies: 15
Views: 3600

@tyranid I don't see how using an interrupt is going to save you much in the way of time I rely on the fact that a wait-for-flag function is always more or less a poll-and-wait, something like while(!isFlagSet(flag)) sleep(); while interrupt handlers a...
by jean
Sun Jan 13, 2008 12:08 am
Forum: PSP Development
Topic: (Audio?) Interrupt handler
Replies: 15
Views: 3600

no idea what the equivalent is for audio but I question your need for using one :) well, there are TONS of motivations to drill down on interrupt usage...to be coherent with my initial post, i could mention a faster audio manager. Speaking on the base of my pc programming experience, i think PSP_AU...
by jean
Fri Jan 11, 2008 10:59 pm
Forum: PSP Development
Topic: (Audio?) Interrupt handler
Replies: 15
Views: 3600

(Audio?) Interrupt handler

I'm trying to figure out the usage of some PSP interrupts. I searched and found only examples on the SIO port. To be clearer, I do know how to set up an handler , but i don't know how to manage the rest - i'm referring to the part /* Read out the interrupt state and clear it */ u32 stat = _lw&#4...
by jean
Fri Jan 11, 2008 10:35 pm
Forum: PSP Development
Topic: Yet Another SIO Issue...
Replies: 7
Views: 3451

AHAH!!! Nice name for a fiter! Anyway, after some experimenting, i can say that this is not enough for me. I think my problem rely etirely on the odd behaviour of the built-in FIFO buffer. I CANNOT filter like you do, because at my baud rate the "bullshit" does corrupt the last data byte o...
by jean
Tue Jan 08, 2008 10:17 pm
Forum: PSP Development
Topic: Yet Another SIO Issue...
Replies: 7
Views: 3451

Thank you for reply! I suppose my problem comes from many causes combined together...Anyway I workarounded it by implementing a circular FIFO buffer in the interrupt handler...so the reading loop is tight enough, and some logic is deferred to another thread... I'm sure that if i would have posted co...
by jean
Mon Jan 07, 2008 9:19 pm
Forum: PSP Development
Topic: Yet Another SIO Issue...
Replies: 7
Views: 3451

don't know if this can help...

I managed to investigate on the unexpected behaviour i've descripted in the last post; it sounds weird, but it seems to depend from HOW MUCH i use pspDebugScreenPrintf (i suspect that ANY more or less time consuming action would take to the same situation). In short, if i do ch = sioReadChar&#40...
by jean
Sat Jan 05, 2008 3:24 am
Forum: PSP Development
Topic: Yet Another SIO Issue...
Replies: 7
Views: 3451

Yet Another SIO Issue...

Hi all, i would like to thank you all for all the support you give to me, because even if i'm programming on PSP since a year, this is my first post! I'm developing a serious serial console as a starting point to create other apps SIO is involved in. The code (i will eventually post soon) is obvious...