2022-11-30 12:17:30 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
2022-09-25 08:58:59 +00:00
|
|
|
#ifndef _BLISP_CHIP_H
|
|
|
|
#define _BLISP_CHIP_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
2023-01-07 10:50:51 +00:00
|
|
|
#include <stdint.h>
|
2022-09-25 08:58:59 +00:00
|
|
|
|
2023-01-07 15:57:45 +00:00
|
|
|
enum blisp_chip_type {
|
|
|
|
BLISP_CHIP_BL60X,
|
|
|
|
BLISP_CHIP_BL70X,
|
|
|
|
BLISP_CHIP_BL606P,
|
|
|
|
BLISP_CHIP_BL808,
|
|
|
|
BLISP_CHIP_BL61X,
|
|
|
|
};
|
2022-09-25 08:58:59 +00:00
|
|
|
|
2023-01-07 10:50:51 +00:00
|
|
|
struct blisp_chip { // TODO: Move elsewhere?
|
|
|
|
enum blisp_chip_type type;
|
|
|
|
const char* type_str;
|
|
|
|
bool usb_isp_available;
|
|
|
|
float handshake_byte_multiplier;
|
2023-01-07 15:57:45 +00:00
|
|
|
const char* default_xtal; // TODO: Make this selectable
|
|
|
|
bool needs_eflash_loader;
|
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;
|
2023-01-07 15:57:45 +00:00
|
|
|
extern struct blisp_chip blisp_chip_bl808;
|
|
|
|
extern struct blisp_chip blisp_chip_bl61x;
|
2022-09-25 08:58:59 +00:00
|
|
|
|
|
|
|
#endif
|