| 9120e874 Andy McCall |
1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
#ifndef _SMC_H_ |
| 6 |
#define _SMC_H_ |
| 7 |
|
| 8 |
#define SMC_VERSION_MAJOR 47 |
| 9 |
#define SMC_VERSION_MINOR 0 |
| 10 |
#define SMC_VERSION_PATCH 0 |
| 11 |
|
| 12 |
#include <stdint.h> |
| 13 |
#include <stdbool.h> |
| 14 |
|
| 15 |
#ifdef __cplusplus |
| 16 |
extern "C" { |
| 17 |
#endif |
| 18 |
|
| 19 |
extern void nmi6502(); |
| 20 |
void smc_i2c_data(uint8_t v); |
| 21 |
uint8_t smc_read(); |
| 22 |
void smc_write(); |
| 23 |
|
| 24 |
extern bool smc_requested_reset; |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
#define SMC_I2C_DATA_LEN 16 |
| 31 |
|
| 32 |
typedef struct { |
| 33 |
uint8_t default_read_op; |
| 34 |
uint8_t activity_led; |
| 35 |
uint8_t i2c_data[SMC_I2C_DATA_LEN]; |
| 36 |
uint8_t i2c_data_pos; |
| 37 |
uint8_t mse_count; |
| 38 |
bool requested_reset; |
| 39 |
uint8_t kbd_fill; |
| 40 |
uint8_t mse_fill; |
| 41 |
} smc_debug_state_t; |
| 42 |
|
| 43 |
void smc_debug_get_state(smc_debug_state_t *out); |
| 44 |
|
| 45 |
#ifdef __cplusplus |
| 46 |
} |
| 47 |
#endif |
| 48 |
|
| 49 |
#endif |