Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
William Leue Guru Joined: 03/07/2020 Location: United StatesPosts: 405
Posted: 07:19pm 14 Feb 2023
Copy link to clipboard
Print this post
I can't seem to find any details on how to make a CSUB for the CMM2. Unfortunately, the Search function on the forum only seems to run from the most recent posts and then backwards in time, and never gets to older posts.
I am hoping there is a doc or docs by Peter that give some details. My questions are:
1. What tools need to be used to compile (and link?) a C source file? I assume probably gcc, but certainly with some compilation options.
2. Can I pass a 2D array and work on it in the C function using **? I am guessing this might be hard.
Thanks! -Bill
twofingers Guru Joined: 02/06/2014 Location: GermanyPosts: 1682
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10632
Posted: 07:34pm 14 Feb 2023
Copy link to clipboard
Print this post
No. Look at the source of some of the routines in MATHS.c for how to handle 2D arrays (They aren't really 2D). The PicoMite github code is identical to the CMM2 for this
William Leue Guru Joined: 03/07/2020 Location: United StatesPosts: 405