btstack/platforms/msp-exp430f5438-cc2564b/hal_compat.h
2014-11-06 23:11:45 +00:00

26 lines
503 B
C

/**
* various functions to deal with flaws and portability issues
*
* @author Matthias Ringwald
*/
// mspgcc LTS doesn't support 20-bit pointer yet -> put const data into .fartext
#ifndef __HAL_COMPAT_H
#define __HAL_COMPAT_H
#include <stdint.h>
void waitAboutOneSecond(void);
// single byte read
uint8_t FlashReadByte (uint32_t addr);
// argument order matches memcpy
void FlashReadBlock(uint8_t *buffer, uint32_t addr, uint16_t len);
#endif // __HAL_COMPAT_H