 | Get the latest release
here |
 | You can override the default heapsize like
this:
 | enum { heapsize = 8000 }; //override the default
heapsize to give more, if needed |
|
 | You can define upper case true and false yourself
(lower case seems to be already defined), like this:
 | #define TRUE (1) |
 | #define FALSE (0) |
|
 | You can change the defaul serail baudrate used by
printf and such like this:
 | Add this to header:
 | #ifndef _BAUD |
 | #define _BAUD 2000000 |
 | #endif |
|
 | Then, add this to start of code:
 | _setbaud(_BAUD); //we are using a
faster baud |
|
|
 | If need max or min, define like this:
 | #define min(x,y) ((x) > (y) ? (y) : (x)) |
 | #define max(x,y) ((x) > (y) ? (x) : (y)) |
|
 | File I/O can go to either attached uSD (using FatFs)
or the host filesystem (using Plan9). Pick one of these defines to
select:
 | #define USE_SD |
 | //#define USE_HOST |
|
 | To use Plan9, you need to add a "-9 directory" to
the loadp2 command line like this:
 | loadp2 -9 D:\Propeller2\uSD_Contents -t -b
2000000 Antares.binary |
|
 | FCACHE is a way to speed up loops and inline
assembly by placing the code to be run inside the cog and run in cogexec
mode, instead of the usual hubexec mode
 | Code must be less than 256 longs by default |
 | Optimization must be enabled |
 | Can force usage with inline assembly by using
__asm volatile instead of __asm. This will also prevent
optimization, which could have changed timings. |
|