
python
Fork of pymite by
Diff: platform/mbed/main.cpp
- Revision:
- 5:19bd98307341
- Parent:
- 4:23becb24acb8
- Child:
- 6:e428c1e68f0c
--- a/platform/mbed/main.cpp Sat Mar 16 13:29:02 2013 +0000 +++ b/platform/mbed/main.cpp Fri Apr 11 12:18:37 2014 +0000 @@ -20,20 +20,25 @@ extern #endif -#if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) +#if defined(TARGET_LPC1768) #define HEAP_SIZE 0x7000 -#endif -#if defined(TARGET_KL25Z) -#define HEAP_SIZE 0x3800 +#elif defined(TARGET_LPC1549) +#define HEAP_SIZE 0x8000 +#elif defined(TARGET_KL46Z) +#define HEAP_SIZE 0x7000 +#elif defined(TARGET_KL25Z) +#define HEAP_SIZE 0x3400 +#else +#error "target error" #endif unsigned char const usrlib_img[]; +uint8_t heap[HEAP_SIZE]; int main(void) { - uint8_t heap[HEAP_SIZE]; PmReturn_t retval; retval = pm_init(heap, HEAP_SIZE, MEMSPACE_PROG, usrlib_img);