Numworks Epsilon  1.4.1
Graphing Calculator Operating System
boot.cpp
Go to the documentation of this file.
1 #include <ion.h>
2 #include <stdlib.h>
3 #include <signal.h>
4 #include "events.h"
5 #include "display.h"
6 
7 constexpr int kHeapSize = 131072;
8 char heap[kHeapSize];
9 extern "C" {
10  char * _heap_start = (char *)heap;
12  int main(int argc, char * argv[]);
13 }
14 
15 int main(int argc, char * argv[]) {
16  for (int i=1; i<argc; i++) {
17  if (strcmp(argv[i], "--logAfter") == 0 && argc > i+1) {
19  Ion::Events::Blackbox::logAfter(atoi(argv[i+1]));
20  }
21  }
23  ion_main(argc, argv);
24  return 0;
25 }
void ion_main(int argc, char *argv[])
Definition: main.cpp:4
char * _heap_end
Definition: boot.cpp:11
void logAfter(int numberOfEvents)
Definition: events.cpp:40
int main(int argc, char *argv[])
Definition: boot.cpp:15
constexpr int kHeapSize
Definition: boot.cpp:7
void setFrameBufferActive(bool enabled)
Definition: display.cpp:42
char * _heap_start
Definition: boot.cpp:10
int strcmp(const char *s1, const char *s2)
Definition: strcmp.c:3
char heap[kHeapSize]
Definition: boot.cpp:8
void dumpEventCount(int i)
Definition: events.cpp:36