diff --git a/ion/include/ion.h b/ion/include/ion.h index f9daca5ae..3c7b281ad 100644 --- a/ion/include/ion.h +++ b/ion/include/ion.h @@ -8,11 +8,11 @@ #include #include #include +#include #include #include #include - /* ION is not your regular library. It is a library you link against, but it * will take care of configuring the whole environment for you. In POSIX terms, * ION will implement the "main" function. diff --git a/ion/include/ion/log.h b/ion/include/ion/log.h new file mode 100644 index 000000000..0cd94ad5a --- /dev/null +++ b/ion/include/ion/log.h @@ -0,0 +1,12 @@ +#ifndef ION_LOG_H +#define ION_LOG_H + +namespace Ion { +namespace Log { + +void print(const char * message); + +} +} + +#endif diff --git a/ion/src/device/regs/gpio.h b/ion/src/device/regs/gpio.h index 4469e5887..367607300 100644 --- a/ion/src/device/regs/gpio.h +++ b/ion/src/device/regs/gpio.h @@ -46,7 +46,7 @@ public: class ODR : Register32 { public: - bool get(int index) { return (bool)getBitRange(index, index); } + bool get(int index) volatile { return (bool)getBitRange(index, index); } void set(int index, bool state) volatile { setBitRange(index, index, state); } }; diff --git a/ion/src/shared/log.cpp b/ion/src/shared/log.cpp new file mode 100644 index 000000000..867d38088 --- /dev/null +++ b/ion/src/shared/log.cpp @@ -0,0 +1,6 @@ +#include +#include + +void Ion::Log::print(const char * message) { + printf("%s\n", message); +}