You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
420 B
20 lines
420 B
#ifndef SHARED_MEM_H
|
|
#define SHARED_MEM_H
|
|
|
|
#include <stdio.h>
|
|
#include "../../MarlinCore.h"
|
|
#include "../../inc/MarlinConfig.h"
|
|
|
|
#ifdef STM32F1
|
|
#define SHARED_MEM_1KB_COUNT 8
|
|
#define SHARED_MEM_SIZE SHARED_MEM_1KB_COUNT*1024
|
|
#endif
|
|
|
|
#ifdef STM32F4
|
|
#define SHARED_MEM_1KB_COUNT 16
|
|
#define SHARED_MEM_SIZE SHARED_MEM_1KB_COUNT*1024
|
|
#endif
|
|
|
|
extern volatile uint8_t shared_mem[SHARED_MEM_SIZE];
|
|
|
|
#endif
|