Integrating the ublox LISA C200 modem

Fork of SprintUSBModemHTTPClientTest by Donatien Garnier

Committer:
sam_grove
Date:
Thu Sep 26 00:44:20 2013 -0500
Revision:
5:3f93dd1d4cb3
Exported program and replaced contents of the repo with the source
to build and debug using keil mdk. Libs NOT upto date are lwip, lwip-sys
and socket. these have newer versions under mbed_official but were starting
from a know working point

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sam_grove 5:3f93dd1d4cb3 1 /* mbed Microcontroller Library - stackheap
sam_grove 5:3f93dd1d4cb3 2 * Copyright (C) 2009-2011 ARM Limited. All rights reserved.
sam_grove 5:3f93dd1d4cb3 3 *
sam_grove 5:3f93dd1d4cb3 4 * Setup a fixed single stack/heap memory model,
sam_grove 5:3f93dd1d4cb3 5 * between the top of the RW/ZI region and the stackpointer
sam_grove 5:3f93dd1d4cb3 6 */
sam_grove 5:3f93dd1d4cb3 7
sam_grove 5:3f93dd1d4cb3 8 #ifdef __cplusplus
sam_grove 5:3f93dd1d4cb3 9 extern "C" {
sam_grove 5:3f93dd1d4cb3 10 #endif
sam_grove 5:3f93dd1d4cb3 11
sam_grove 5:3f93dd1d4cb3 12 #include <rt_misc.h>
sam_grove 5:3f93dd1d4cb3 13 #include <stdint.h>
sam_grove 5:3f93dd1d4cb3 14
sam_grove 5:3f93dd1d4cb3 15 extern char Image$$RW_IRAM1$$ZI$$Limit[];
sam_grove 5:3f93dd1d4cb3 16
sam_grove 5:3f93dd1d4cb3 17 extern __value_in_regs struct __initial_stackheap __user_setup_stackheap(uint32_t R0, uint32_t R1, uint32_t R2, uint32_t R3) {
sam_grove 5:3f93dd1d4cb3 18 uint32_t zi_limit = (uint32_t)Image$$RW_IRAM1$$ZI$$Limit;
sam_grove 5:3f93dd1d4cb3 19 uint32_t sp_limit = __current_sp();
sam_grove 5:3f93dd1d4cb3 20
sam_grove 5:3f93dd1d4cb3 21 zi_limit = (zi_limit + 7) & ~0x7; // ensure zi_limit is 8-byte aligned
sam_grove 5:3f93dd1d4cb3 22
sam_grove 5:3f93dd1d4cb3 23 struct __initial_stackheap r;
sam_grove 5:3f93dd1d4cb3 24 r.heap_base = zi_limit;
sam_grove 5:3f93dd1d4cb3 25 r.heap_limit = sp_limit;
sam_grove 5:3f93dd1d4cb3 26 return r;
sam_grove 5:3f93dd1d4cb3 27 }
sam_grove 5:3f93dd1d4cb3 28
sam_grove 5:3f93dd1d4cb3 29 #ifdef __cplusplus
sam_grove 5:3f93dd1d4cb3 30 }
sam_grove 5:3f93dd1d4cb3 31 #endif