move some stuff in to ccm (#2645)

* stuff in ccm

* used memory
This commit is contained in:
Matthew Kennedy 2021-05-07 06:35:57 -07:00 committed by GitHub
parent 461903f7e4
commit ca7308e910
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -690,7 +690,7 @@ struct EtbThread final : public PeriodicController<512> {
} }
}; };
static EtbThread etbThread; static EtbThread etbThread CCM_OPTIONAL;
#endif #endif

View File

@ -705,7 +705,7 @@ void initEngineContoller(DECLARE_ENGINE_PARAMETER_SUFFIX) {
#define RAM_UNUSED_SIZE 4000 #define RAM_UNUSED_SIZE 4000
#endif #endif
#ifndef CCM_UNUSED_SIZE #ifndef CCM_UNUSED_SIZE
#define CCM_UNUSED_SIZE 2000 #define CCM_UNUSED_SIZE 300
#endif #endif
static char UNUSED_RAM_SIZE[RAM_UNUSED_SIZE]; static char UNUSED_RAM_SIZE[RAM_UNUSED_SIZE];
static char UNUSED_CCM_SIZE[CCM_UNUSED_SIZE] CCM_OPTIONAL; static char UNUSED_CCM_SIZE[CCM_UNUSED_SIZE] CCM_OPTIONAL;

View File

@ -162,8 +162,8 @@ private:
CANRxFrame m_buffer; CANRxFrame m_buffer;
}; };
static CanRead canRead; static CanRead canRead CCM_OPTIONAL;
static CanWrite canWrite; static CanWrite canWrite CCM_OPTIONAL;
static void canInfo(void) { static void canInfo(void) {
if (!isCanEnabled) { if (!isCanEnabled) {