blisp/include/blisp_chip.h

23 lines
495 B
C
Raw Normal View History

2022-09-25 08:58:59 +00:00
#ifndef _BLISP_CHIP_H
#define _BLISP_CHIP_H
#include <stdint.h>
#include <stdbool.h>
enum blisp_chip_type {
2022-11-08 21:06:14 +00:00
BLISP_CHIP_BL60X,
2022-09-25 08:58:59 +00:00
BLISP_CHIP_BL70X
};
struct blisp_chip { // TODO: Move elsewhere?
enum blisp_chip_type type;
2022-10-05 09:35:44 +00:00
const char* type_str;
2022-09-25 08:58:59 +00:00
bool usb_isp_available;
2022-11-08 21:06:14 +00:00
float handshake_byte_multiplier;
const char* default_eflash_loader_xtal; // TODO: Make this selectable
2022-09-25 08:58:59 +00:00
};
2022-11-08 21:06:14 +00:00
extern struct blisp_chip blisp_chip_bl60x;
2022-09-25 08:58:59 +00:00
extern struct blisp_chip blisp_chip_bl70x;
#endif