Mouse code for the MacroRat

Dependencies:   ITG3200 QEI

Committer:
sahilmgandhi
Date:
Sat Jun 03 00:22:44 2017 +0000
Revision:
46:b156ef445742
Parent:
18:6a4db94011d3
Final code for internal battlebot competition.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sahilmgandhi 18:6a4db94011d3 1 /* mbed Microcontroller Library - stackheap
sahilmgandhi 18:6a4db94011d3 2 * Copyright (C) 2009-2011 ARM Limited. All rights reserved.
sahilmgandhi 18:6a4db94011d3 3 *
sahilmgandhi 18:6a4db94011d3 4 */
sahilmgandhi 18:6a4db94011d3 5
sahilmgandhi 18:6a4db94011d3 6 #include "sys_helper.h"
sahilmgandhi 18:6a4db94011d3 7
sahilmgandhi 18:6a4db94011d3 8 /* This function specifies the amount of memory of the internal RAM to
sahilmgandhi 18:6a4db94011d3 9 reserve for the stack. The default implementation will reserve 0 bytes
sahilmgandhi 18:6a4db94011d3 10 which gives the normal behaviour where the stack and heap share all the
sahilmgandhi 18:6a4db94011d3 11 internal RAM.
sahilmgandhi 18:6a4db94011d3 12
sahilmgandhi 18:6a4db94011d3 13 You can override this function in your code to reserve a number of bytes
sahilmgandhi 18:6a4db94011d3 14 for the stack.
sahilmgandhi 18:6a4db94011d3 15 */
sahilmgandhi 18:6a4db94011d3 16 extern "C" __attribute__((weak)) uint32_t __reserved_stack_size();
sahilmgandhi 18:6a4db94011d3 17 extern "C" __attribute__((weak)) uint32_t __reserved_stack_size() {
sahilmgandhi 18:6a4db94011d3 18 return 0; // return 0 to indicate that nothing is reserved
sahilmgandhi 18:6a4db94011d3 19 }