Skip to content

STM32F1 - *'struct GPIO_TypeDef' has no member named 'regs' * #12

@samigroup

Description

@samigroup

File: https://github.com/aster94/logic-analyzer/tree/master/Microcontroller_Code/STM32F1
I changed the name for "STM32F1.ino" to "STM31F1_LogicAnalyzer.ino"

C:\Temp_Sami\Arduino_Examples\STM31F1_LogicAnalyzer\STM31F1_LogicAnalyzer.ino: In function 'void startLA()':
STM31F1_LogicAnalyzer:48:20: error: 'struct GPIO_TypeDef' has no member named 'regs'
initial = GPIOB->regs->IDR >> 12;
^~~~
C:\Temp_Sami\Arduino_Examples\STM31F1_LogicAnalyzer\STM31F1_LogicAnalyzer.ino: In function 'void loop()':
STM31F1_LogicAnalyzer:56:18: error: 'struct GPIO_TypeDef' has no member named 'regs'
state = GPIOB->regs->IDR >> 12;
^~~~
C:\Temp_Sami\Arduino_Examples\STM31F1_LogicAnalyzer\STM31F1_LogicAnalyzer.ino: In function 'void reset_timer()':
STM31F1_LogicAnalyzer:87:3: error: 'systick_uptime_millis' was not declared in this scope
systick_uptime_millis = -1;
^~~~~~~~~~~~~~~~~~~~~
STM31F1_LogicAnalyzer:88:3: error: 'SYSTICK_BASE' was not declared in this scope
SYSTICK_BASE->CNT = 0;
^~~~~~~~~~~~
C:\Temp_Sami\Arduino_Examples\STM31F1_LogicAnalyzer\STM31F1_LogicAnalyzer.ino:88:3: note: suggested alternative: 'TIM1_BASE'
SYSTICK_BASE->CNT = 0;
^~~~~~~~~~~~
TIM1_BASE
exit status 1
'struct GPIO_TypeDef' has no member named 'regs'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions