replaced gtest + mockme with CPPUtest + subhook
Part 1
This commit is contained in:
parent
95af4ce0d8
commit
8709bcb465
284 changed files with 87 additions and 113526 deletions
34
platforms/platform-test-f4-ll/platform/cmsis.h
Normal file
34
platforms/platform-test-f4-ll/platform/cmsis.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
* cmsis.h
|
||||
*
|
||||
* Created on: Nov 22, 2019
|
||||
* Author: abody
|
||||
*/
|
||||
|
||||
#ifndef PLATFORM_CMSIS_H_
|
||||
#define PLATFORM_CMSIS_H_
|
||||
#include <stddef.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define __IO volatile
|
||||
#define SET_BIT(REG, BIT) ((REG) |= (BIT))
|
||||
#define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT))
|
||||
#define READ_BIT(REG, BIT) ((REG) & (BIT))
|
||||
#define CLEAR_REG(REG) ((REG) = (0x0))
|
||||
#define WRITE_REG(REG, VAL) ((REG) = (VAL))
|
||||
#define READ_REG(REG) ((REG))
|
||||
#define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK)))
|
||||
|
||||
void __disable_irq();
|
||||
uint32_t __get_PRIMASK();
|
||||
void __set_PRIMASK(uint32_t priMask);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* PLATFORM_CMSIS_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue