![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Versão do protegemed que calcula o tempo em ms da fuga, calcula o numero de onverflow (valores muito baixo) e underflow (valores muito altos). Além disso, calcula um valor médio a partir dos valores capturados e não apenas pela fft.
Dependencies: EthernetInterface mbed-rtos mbed
Functions/limites.c@2:86c3cb25577b, 2014-07-21 (annotated)
- Committer:
- rebonatto
- Date:
- Mon Jul 21 00:58:34 2014 +0000
- Revision:
- 2:86c3cb25577b
Problemas com objeto para aquisi??o da rfid (serial)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rebonatto | 2:86c3cb25577b | 1 | /* |
rebonatto | 2:86c3cb25577b | 2 | * limites.c |
rebonatto | 2:86c3cb25577b | 3 | * |
rebonatto | 2:86c3cb25577b | 4 | * Created on: 20/07/2014 |
rebonatto | 2:86c3cb25577b | 5 | * Author: rebonatto |
rebonatto | 2:86c3cb25577b | 6 | */ |
rebonatto | 2:86c3cb25577b | 7 | |
rebonatto | 2:86c3cb25577b | 8 | #include "limites.h" |
rebonatto | 2:86c3cb25577b | 9 | |
rebonatto | 2:86c3cb25577b | 10 | |
rebonatto | 2:86c3cb25577b | 11 | // These external symbols are maintained by the linker to indicate the |
rebonatto | 2:86c3cb25577b | 12 | // location of various regions in the device's memory. They will be used by |
rebonatto | 2:86c3cb25577b | 13 | // DisplayRAMBanks() to dump the size of each RAM bank to stdout. |
rebonatto | 2:86c3cb25577b | 14 | extern unsigned int Image$$RW_IRAM1$$Base; |
rebonatto | 2:86c3cb25577b | 15 | extern unsigned int Image$$RW_IRAM1$$ZI$$Limit; |
rebonatto | 2:86c3cb25577b | 16 | extern unsigned int Image$$RW_IRAM2$$Base; |
rebonatto | 2:86c3cb25577b | 17 | extern unsigned int Image$$RW_IRAM2$$ZI$$Limit; |
rebonatto | 2:86c3cb25577b | 18 | extern unsigned int Image$$RW_IRAM3$$Base; |
rebonatto | 2:86c3cb25577b | 19 | extern unsigned int Image$$RW_IRAM3$$ZI$$Limit; |
rebonatto | 2:86c3cb25577b | 20 | |
rebonatto | 2:86c3cb25577b | 21 | |
rebonatto | 2:86c3cb25577b | 22 | // Displays the size of static allocations for each RAM bank as indicated by |
rebonatto | 2:86c3cb25577b | 23 | // ARM linker to stdout. |
rebonatto | 2:86c3cb25577b | 24 | void DisplayRAMBanks(void) |
rebonatto | 2:86c3cb25577b | 25 | { |
rebonatto | 2:86c3cb25577b | 26 | printf("Static RAM bank allocations\r\n"); |
rebonatto | 2:86c3cb25577b | 27 | printf(" Main RAM = %u\r\n", (unsigned int)&Image$$RW_IRAM1$$ZI$$Limit - |
rebonatto | 2:86c3cb25577b | 28 | (unsigned int)&Image$$RW_IRAM1$$Base); |
rebonatto | 2:86c3cb25577b | 29 | printf(" RAM0 = %u\r\n", (unsigned int)&Image$$RW_IRAM2$$ZI$$Limit - |
rebonatto | 2:86c3cb25577b | 30 | (unsigned int)&Image$$RW_IRAM2$$Base); |
rebonatto | 2:86c3cb25577b | 31 | printf(" RAM1 = %u\r\n", (unsigned int)&Image$$RW_IRAM3$$ZI$$Limit - |
rebonatto | 2:86c3cb25577b | 32 | (unsigned int)&Image$$RW_IRAM3$$Base); |
rebonatto | 2:86c3cb25577b | 33 | } |