mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-06-08 10:54:55 +08:00
* motors * can * cleanup unused stuff * initial clean * more clean * remove integral and derivative clamps, revert pwm driver to original * remove integral and derivative clamps, revert pwm driver to original * remove integral and derivative clamps, revert pwm driver to original * dont need this for now * clean * fix can rx and can version error * ignore body for misra mutation test * fix bus recovery, remove body rx hook
22 lines
587 B
C
22 lines
587 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
// ******************** Prototypes ********************
|
|
typedef void (*board_init)(void);
|
|
typedef void (*board_init_bootloader)(void);
|
|
typedef void (*board_enable_can_transceiver)(uint8_t transceiver, bool enabled);
|
|
|
|
struct board {
|
|
GPIO_TypeDef * const led_GPIO[3];
|
|
const uint8_t led_pin[3];
|
|
const uint8_t led_pwm_channels[3]; // leave at 0 to disable PWM
|
|
board_init init;
|
|
board_init_bootloader init_bootloader;
|
|
const bool has_spi;
|
|
};
|
|
|
|
// ******************* Definitions ********************
|
|
#define HW_TYPE_BODY 0xB1U
|