generated from hulk/gd32e23x_template
rs485
This commit is contained in:
parent
3ed6a69014
commit
e1277c9c7a
@ -41,8 +41,6 @@ int main(void) {
|
||||
while (1) {
|
||||
|
||||
// delay_ms(10);
|
||||
ldc1612_drvie_current_detect(CHANNEL_0);
|
||||
delay_ms(999);
|
||||
fwdgt_counter_reload();
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ uint8_t package_header[3] = {0xB5, 0xF0, 0x04};
|
||||
uint8_t package_data[4] = {0};
|
||||
|
||||
void rs485_config(void) {
|
||||
#ifdef RS485_MAX13487
|
||||
#ifndef RS485_MAX13487
|
||||
rcu_periph_clock_enable(RS485_GPIO_RCU);
|
||||
rcu_periph_clock_enable(RS485_RCU);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user