Coder Social home page Coder Social logo

hoverboard-hack-foc-for-split-boards's People

Contributors

matixan avatar

Stargazers

 avatar  avatar

Watchers

 avatar

hoverboard-hack-foc-for-split-boards's Issues

keil default compile error

Build started: Project: Hoverboard
*** Using Compiler 'V6.19', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
Build target 'Target 1'
Src/bldc.c(25): error: 'rtwtypes.h' file not found
#include "rtwtypes.h"
         ^~~~~~~~~~~~
1 error generated.
compiling bldc.c...
Src/main.c(42): error: 'defines.h' file not found
#include "defines.h"
         ^~~~~~~~~~~
1 error generated.
compiling main.c...
Src/setup.c(376): error: passing 'dma_parameter_struct' to parameter of incompatible type 'dma_parameter_struct *'; take the address with &
        dma_init(DMA_CH0, dma_init_struct_adc);
                          ^~~~~~~~~~~~~~~~~~~
                          &
C:/Users/qgb/AppData/Local/Arm/Packs/GigaDevice/GD32F1x0_DFP/3.2.1/Device/Firmware/Peripherals/inc\gd32f1x0_dma.h(224): note: passing argument to parameter 'init_struct' here
void dma_init(dma_channel_enum channelx, dma_parameter_struct* init_struct);
                                                               ^
Src/setup.c(401): error: use of undeclared identifier 'ADC_EXTTRIG_REGULAR_SWRCST'
        adc_external_trigger_source_config(ADC_REGULAR_CHANNEL, ADC_EXTTRIG_REGULAR_SWRCST);
                                                                ^
2 errors generated.
compiling setup.c...
Src/it.c(32): error: 'it.h' file not found
#include "it.h"
         ^~~~~~
1 error generated.
compiling it.c...
ArmClang: error: no such file or directory: 'Src/commsBluetooth.c'
ArmClang: error: no input files
compiling commsBluetooth.c...
Src/comms.c(32): error: 'defines.h' file not found
#include "defines.h"
         ^~~~~~~~~~~
1 error generated.
compiling comms.c...
ArmClang: error: no such file or directory: 'Src/commsSteering.c'
ArmClang: error: no input files
compiling commsSteering.c...
ArmClang: error: no such file or directory: 'Src/commsMasterSlave.c'
ArmClang: error: no input files
compiling commsMasterSlave.c...
compiling led.c...
compiling gd32f1x0_dbg.c...
RTE/Device/GD32F130C8/gd32f1x0_dma.c(53): error: conflicting types for 'dma_init'
void dma_init(dma_channel_enum channelx, dma_parameter_struct init_struct)
     ^
C:/Users/qgb/AppData/Local/Arm/Packs/GigaDevice/GD32F1x0_DFP/3.2.1/Device/Firmware/Peripherals/inc\gd32f1x0_dma.h(224): note: previous declaration is here
void dma_init(dma_channel_enum channelx, dma_parameter_struct* init_struct);
     ^
RTE/Device/GD32F130C8/gd32f1x0_dma.c(341): error: conflicting types for 'dma_transfer_direction_config'
void dma_transfer_direction_config(dma_channel_enum channelx, uint8_t direction)
     ^
C:/Users/qgb/AppData/Local/Arm/Packs/GigaDevice/GD32F1x0_DFP/3.2.1/Device/Firmware/Peripherals/inc\gd32f1x0_dma.h(262): note: previous declaration is here
void dma_transfer_direction_config(dma_channel_enum channelx, uint32_t direction);
     ^
2 errors generated.
compiling gd32f1x0_dma.c...
compiling gd32f1x0_adc.c...
compiling gd32f1x0_fwdgt.c...
RTE/Device/GD32F130C8/gd32f1x0_i2c.c(228): error: use of undeclared identifier 'I2C_DUADEN_ENABLE'
    if(I2C_DUADEN_ENABLE == dualaddr){
       ^
RTE/Device/GD32F130C8/gd32f1x0_i2c.c(354): error: use of undeclared identifier 'I2C_CTL0_DISSTRC'
    ctl &= ~(I2C_CTL0_DISSTRC); 
             ^
RTE/Device/GD32F130C8/gd32f1x0_i2c.c(425): error: conflicting types for 'i2c_flag_get'
FlagStatus i2c_flag_get(uint32_t i2c_periph, uint32_t flag)
           ^
C:/Users/qgb/AppData/Local/Arm/Packs/GigaDevice/GD32F1x0_DFP/3.2.1/Device/Firmware/Peripherals/inc\gd32f1x0_i2c.h(381): note: previous declaration is here
FlagStatus i2c_flag_get(uint32_t i2c_periph, i2c_flag_enum flag);
           ^
RTE/Device/GD32F130C8/gd32f1x0_i2c.c(463): error: conflicting types for 'i2c_flag_clear'
void i2c_flag_clear(uint32_t i2c_periph, uint32_t flag)
     ^
C:/Users/qgb/AppData/Local/Arm/Packs/GigaDevice/GD32F1x0_DFP/3.2.1/Device/Firmware/Peripherals/inc\gd32f1x0_i2c.h(383): note: previous declaration is here
void i2c_flag_clear(uint32_t i2c_periph, i2c_flag_enum flag);
     ^
RTE/Device/GD32F130C8/gd32f1x0_i2c.c(484): error: conflicting types for 'i2c_interrupt_enable'
void i2c_interrupt_enable(uint32_t i2c_periph, uint32_t inttype)
     ^
C:/Users/qgb/AppData/Local/Arm/Packs/GigaDevice/GD32F1x0_DFP/3.2.1/Device/Firmware/Peripherals/inc\gd32f1x0_i2c.h(385): note: previous declaration is here
void i2c_interrupt_enable(uint32_t i2c_periph, i2c_interrupt_enum interrupt);
     ^
RTE/Device/GD32F130C8/gd32f1x0_i2c.c(499): error: conflicting types for 'i2c_interrupt_disable'
void i2c_interrupt_disable(uint32_t i2c_periph, uint32_t inttype)
     ^
C:/Users/qgb/AppData/Local/Arm/Packs/GigaDevice/GD32F1x0_DFP/3.2.1/Device/Firmware/Peripherals/inc\gd32f1x0_i2c.h(387): note: previous declaration is here
void i2c_interrupt_disable(uint32_t i2c_periph, i2c_interrupt_enum interrupt);
     ^
RTE/Device/GD32F130C8/gd32f1x0_i2c.c(638): error: use of undeclared identifier 'I2C_STAT1_ECV'; did you mean 'I2C_INT_EV'?
    return (uint8_t)((I2C_STAT1(i2c_periph) & I2C_STAT1_ECV)>>8);
                                              ^~~~~~~~~~~~~
                                              I2C_INT_EV
C:/Users/qgb/AppData/Local/Arm/Packs/GigaDevice/GD32F1x0_DFP/3.2.1/Device/Firmware/Peripherals/inc\gd32f1x0_i2c.h(238): note: 'I2C_INT_EV' declared here
    I2C_INT_EV = I2C_REGIDX_BIT(I2C_CTL1_REG_OFFSET, 9U),                      /*!< event interrupt enable */
    ^
7 errors generated.
compiling gd32f1x0_i2c.c...
compiling gd32f1x0_gpio.c...
compiling gd32f1x0_misc.c...
compiling gd32f1x0_opa.c...
compiling gd32f1x0_pmu.c...
compiling gd32f1x0_rcu.c...
compiling gd32f1x0_syscfg.c...
RTE/Device/GD32F130C8/gd32f1x0_timer.c(125): error: use of undeclared identifier 'TIMER_COUNTER_ENABLE'
    TIMER_CTL0(timer_periph) |= (uint32_t)TIMER_COUNTER_ENABLE;
                                          ^
RTE/Device/GD32F130C8/gd32f1x0_timer.c(136): error: use of undeclared identifier 'TIMER_COUNTER_DISABLE'
    TIMER_CTL0(timer_periph) &= (uint32_t)TIMER_COUNTER_DISABLE;
                                          ^
RTE/Device/GD32F130C8/gd32f1x0_timer.c(147): error: use of undeclared identifier 'TIMER_ARSE_ENABLE'
    TIMER_CTL0(timer_periph) |= (uint32_t) TIMER_ARSE_ENABLE;
                                           ^
RTE/Device/GD32F130C8/gd32f1x0_timer.c(158): error: use of undeclared identifier 'TIMER_ARSE_DISABLE'
    TIMER_CTL0(timer_periph) &= (uint32_t) TIMER_ARSE_DISABLE;
                                           ^
RTE/Device/GD32F130C8/gd32f1x0_timer.c(169): error: use of undeclared identifier 'TIMER_UPDIS_ENABLE'
    TIMER_CTL0(timer_periph) |= (uint32_t) TIMER_UPDIS_ENABLE;
                                           ^
RTE/Device/GD32F130C8/gd32f1x0_timer.c(180): error: use of undeclared identifier 'TIMER_UPDIS_DISABLE'
    TIMER_CTL0(timer_periph) &= (uint32_t) TIMER_UPDIS_DISABLE;
                                           ^
RTE/Device/GD32F130C8/gd32f1x0_timer.c(262): error: conflicting types for 'timer_autoreload_value_config'
void timer_autoreload_value_config(uint32_t timer_periph, uint16_t autoreload)
     ^
C:/Users/qgb/AppData/Local/Arm/Packs/GigaDevice/GD32F1x0_DFP/3.2.1/Device/Firmware/Peripherals/inc\gd32f1x0_timer.h(636): note: previous declaration is here
void timer_autoreload_value_config(uint32_t timer_periph, uint32_t autoreload);
     ^
RTE/Device/GD32F130C8/gd32f1x0_timer.c(274): error: conflicting types for 'timer_counter_value_config'
void timer_counter_value_config(uint32_t timer_periph, uint16_t counter)
     ^
C:/Users/qgb/AppData/Local/Arm/Packs/GigaDevice/GD32F1x0_DFP/3.2.1/Device/Firmware/Peripherals/inc\gd32f1x0_timer.h(638): note: previous declaration is here
void timer_counter_value_config(uint32_t timer_periph , uint32_t counter);
     ^
RTE/Device/GD32F130C8/gd32f1x0_timer.c(1171): error: conflicting types for 'timer_channel_output_state_config'
void timer_channel_output_state_config(uint32_t timer_periph, uint16_t channel, uint16_t state)
     ^
C:/Users/qgb/AppData/Local/Arm/Packs/GigaDevice/GD32F1x0_DFP/3.2.1/Device/Firmware/Peripherals/inc\gd32f1x0_timer.h(716): note: previous declaration is here
void timer_channel_output_state_config(uint32_t timer_periph, uint16_t channel, uint32_t state);
     ^
RTE/Device/GD32F130C8/gd32f1x0_timer.c(1349): error: conflicting types for 'timer_channel_input_capture_prescaler_config'
void timer_channel_input_capture_prescaler_config(uint32_t timer_periph, uint16_t channel, uint32_t prescaler)
     ^
C:/Users/qgb/AppData/Local/Arm/Packs/GigaDevice/GD32F1x0_DFP/3.2.1/Device/Firmware/Peripherals/inc\gd32f1x0_timer.h(726): note: previous declaration is here
void timer_channel_input_capture_prescaler_config(uint32_t timer_periph, uint16_t channel, uint16_t prescaler);
     ^
RTE/Device/GD32F130C8/gd32f1x0_timer.c(1842): error: conflicting types for 'timer_channel_remap_config'
void timer_channel_remap_config(uint32_t timer_periph, uint16_t channel, uint32_t remap)
     ^
C:/Users/qgb/AppData/Local/Arm/Packs/GigaDevice/GD32F1x0_DFP/3.2.1/Device/Firmware/Peripherals/inc\gd32f1x0_timer.h(760): note: previous declaration is here
void timer_channel_remap_config(uint32_t timer_periph,uint32_t remap);
     ^
11 errors generated.
compiling gd32f1x0_timer.c...
compiling gd32f1x0_wwdgt.c...
compiling gd32f1x0_usart.c...
assembling startup_gd32f1x0.s...
compiling system_gd32f1x0.c...
".\Objects\Hoverboard.axf" - 32 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:07

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.