2012-01-14 20:39:59 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
|
2014-01-19 16:30:17 +00:00
|
|
|
#ifndef __HAL_COMPAT_H
|
|
|
|
#define __HAL_COMPAT_H
|
2012-01-14 20:39:59 +00:00
|
|
|
|
|
|
|
#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);
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-19 16:30:17 +00:00
|
|
|
#endif // __HAL_COMPAT_H
|