2019-08-15 10:45:18 +02:00
|
|
|
#ifndef __KERNEL_DEFS_H_
|
|
|
|
#define __KERNEL_DEFS_H_
|
2018-09-22 19:52:52 +02:00
|
|
|
|
2019-08-15 10:45:18 +02:00
|
|
|
#include <stdint.h>
|
2018-09-22 19:52:52 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2019-03-01 19:31:45 +01:00
|
|
|
typedef struct _sr_table_t {
|
2018-09-22 19:52:52 +02:00
|
|
|
uint32_t value[16];
|
|
|
|
uint32_t sdr1;
|
|
|
|
} sr_table_t;
|
|
|
|
|
2019-03-01 19:31:45 +01:00
|
|
|
typedef struct _bat_t {
|
2018-09-22 19:52:52 +02:00
|
|
|
uint32_t h;
|
|
|
|
uint32_t l;
|
|
|
|
} bat_t;
|
|
|
|
|
2019-03-01 19:31:45 +01:00
|
|
|
typedef struct _bat_table_t {
|
2018-09-22 19:52:52 +02:00
|
|
|
bat_t bat[8];
|
|
|
|
} bat_table_t;
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // __KERNEL_DEFS_H_
|