You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
415 B

/*
* helpers.h
*
* Created on: Dec 7, 2017
* Author: maximilian
*/
#ifndef OS_HELPERS_H_
#define OS_HELPERS_H_
#include "stm32f10x.h"
#include <stdlib.h>
inline int osPowInt(int ibase, int iexponent)
{
int result =1;
for(int i=0; i < iexponent; i++)
{
result *= ibase;
}
return result;
}
uint8_t osItoa(int iint, char* iochar, size_t ibuffsize, size_t* obuffsize);
#endif /* OS_HELPERS_H_ */