AP_HAL_ChibiOS: Bitmask is now a template

This commit is contained in:
Peter Barker 2019-04-11 22:12:54 +10:00 committed by Andrew Tridgell
parent e51a0a7a52
commit 3c3b12ba77

View File

@ -50,7 +50,7 @@ private:
void _save_backup(void);
void _mark_dirty(uint16_t loc, uint16_t length);
uint8_t _buffer[CH_STORAGE_SIZE] __attribute__((aligned(4)));
Bitmask _dirty_mask{CH_STORAGE_NUM_LINES};
Bitmask<CH_STORAGE_NUM_LINES> _dirty_mask;
bool _flash_write_data(uint8_t sector, uint32_t offset, const uint8_t *data, uint16_t length);
bool _flash_read_data(uint8_t sector, uint32_t offset, uint8_t *data, uint16_t length);