prepare system struct
This commit is contained in:
parent
1a7fb2487e
commit
7671a35127
@ -57,27 +57,16 @@ extern FILE uart_stdout;
|
|||||||
uint8_t debug_level = (DEBUG | DEBUG_USB | DEBUG_CRC | DEBUG_SHM );
|
uint8_t debug_level = (DEBUG | DEBUG_USB | DEBUG_CRC | DEBUG_SHM );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
uint32_t req_addr = 0;
|
|
||||||
uint32_t req_addr_end = 0;
|
|
||||||
uint8_t req_bank;
|
|
||||||
uint32_t req_bank_size;
|
|
||||||
uint16_t req_bank_cnt;
|
|
||||||
uint8_t req_percent;
|
|
||||||
uint8_t req_percent_last;
|
|
||||||
uint8_t req_state = REQ_STATUS_IDLE;
|
|
||||||
uint8_t rx_remaining = 0;
|
|
||||||
uint8_t tx_remaining = 0;
|
|
||||||
uint16_t sync_errors = 0;
|
|
||||||
uint8_t tx_buffer[32];
|
|
||||||
uint8_t rx_buffer[8];
|
|
||||||
*/
|
*/
|
||||||
|
typedef struct system_t {
|
||||||
|
uint8_t bus_mode;
|
||||||
|
uint8_t rom_mode;
|
||||||
|
uint8_t req_bank;
|
||||||
|
} system_t;
|
||||||
|
|
||||||
|
|
||||||
usb_transaction_t usb_trans;
|
usb_transaction_t usb_trans;
|
||||||
|
|
||||||
|
|
||||||
usbMsgLen_t usbFunctionSetup(uchar data[8])
|
usbMsgLen_t usbFunctionSetup(uchar data[8])
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@ -37,10 +37,10 @@ uint8_t pwm_sine_table[] = {
|
|||||||
0x01,0x01,0x03,0x07,0x0b,0x11,0x17,0x1f,0x28,0x31,0x3b,0x46,0x52,0x5e,0x6a,0x76
|
0x01,0x01,0x03,0x07,0x0b,0x11,0x17,0x1f,0x28,0x31,0x3b,0x46,0x52,0x5e,0x6a,0x76
|
||||||
};
|
};
|
||||||
|
|
||||||
volatile uint8_t pwm_setting; // Einstellungen für die einzelnen PWM-Kanäle
|
volatile uint8_t pwm_setting;
|
||||||
volatile uint16_t pwm_overflow; // Einstellungen für die einzelnen PWM-Kanäle
|
volatile uint16_t pwm_overflow;
|
||||||
volatile uint8_t pwm_idx; // Einstellungen für die einzelnen PWM-Kanäle
|
volatile uint8_t pwm_idx;
|
||||||
volatile uint16_t pwm_overflow_max; // Einstellungen für die einzelnen PWM-Kanäle
|
volatile uint16_t pwm_overflow_max;
|
||||||
|
|
||||||
ISR(TIMER2_COMPA_vect) {
|
ISR(TIMER2_COMPA_vect) {
|
||||||
static uint8_t pwm_cnt=0;
|
static uint8_t pwm_cnt=0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user