Code: Select all
struct Button {
const uint8_t PIN;
volatile uint32_t numberKeyPresses;
volatile bool pressed;
};
Code: Select all
struct Button {
const uint8_t PIN;
volatile uint32_t numberKeyPresses;
volatile bool pressed;
};
Thanks for the reply. What is the correct syntax for this. This is illegal
Code: Select all
RTC_DATA_ATTR struct Button {
const uint8_t PIN;
volatile uint32_t numberKeyPresses;
volatile bool pressed;
};
Code: Select all
struct Button {
RTC_DATA_ATTR const uint8_t PIN;
RTC_DATA_ATTR volatile uint32_t numberKeyPresses;
RTC_DATA_ATTR volatile bool pressed;
};
Code: Select all
struct Button {
const uint8_t PIN;
volatile uint32_t numberKeyPresses;
volatile bool pressed;
};
RTC_DATA_ATTR struct Button my_button;
Users browsing this forum: No registered users and 80 guests