Skip to content

[WIP] net: change enc28j60 to new SPI API #651

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 26 commits into from

Conversation

locomuco
Copy link
Contributor

Signed-off-by: Matthias Boesl [email protected]

@nashif nashif requested a review from tbursztyka June 30, 2017 18:10
Copy link
Member

@nashif nashif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be submitted to master branch

Geoffrey Le Gourriérec and others added 25 commits June 30, 2017 15:52
Signed-off-by: Geoffrey Le Gourriérec <[email protected]>
Signed-off-by: Yannis Damigos <[email protected]>
Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
Signed-off-by: Yannis Damigos <[email protected]>
Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
Add the EXTI lines number for the STM32F303XC

Signed-off-by: Yannis Damigos <[email protected]>
Add support for STM32F3DISCOVERY board.

Origin: original

Signed-off-by: Yannis Damigos <[email protected]>
+ VBLUno51 board
    nRF51822
    Bluetooth Low Energy
    DAPLink interface
    UNO pinout
    4 power

+ Wiki: https://vngiotlab.github.io/vbluno/

+ The following samples were tested:
    hello_world
    basic/button
    basic/blinky
    bluetooth/peripheral_hr
    bluetooth/beacon

Signed-off-by: Nam Do <[email protected]>
Signed-off-by: Kumar Gala <[email protected]>
Fix typo in soc_config.c

Signed-off-by: Yannis Damigos <[email protected]>
Enabling the HAL and the LL flags duplicate definitions when
compiling in driver.

Since the i2c HAL is not needed, disable it.
This is a HAL issue that needs to be addressed (not zephyr)

Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
Signed-off-by: Yannis Damigos <[email protected]>
Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
Supports STM32 F1/F4 (v1 controller) and STM32 F3/L4X (v2
controller)

v1 could also support L1X.
v2 could also support F7X.

Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
Signed-off-by: Yannis Damigos <[email protected]>
Reviewed-by: Yannis Damigos <[email protected]>
Tested-by: Yannis Damigos <[email protected]>
Tested-by: Jorge Ramirez-Ortiz <[email protected]>
Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
Signed-off-by: Yannis Damigos <[email protected]>
Current implementation of LL_SPI_TransmitData16 on F3/F7/L4 family
generates following warning:
"warning: dereferencing type-punned pointer will break strict-aliasing
rules [-Wstrict-aliasing]"
Besides being forbidden by rule, this cast is not needed, as register is
16 bits wide. Modification has been tested on L4 SoC.
stm32yyxx_ll_spi.h being included in soc.h file, warning is generated
at each compiled object, this commit allows a clean build.
This issue is referenced in ST and tracked under
reference  13359. Code will be updated on upcoming stm32cube updates.

Change-Id: I3ca54a81d849d4852eca86b52b6825b60e18b752
Signed-off-by: Erwan Gouriou <[email protected]>
Signed-off-by: Neil Armstrong <[email protected]>
Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
Signed-off-by: Neil Armstrong <[email protected]>
Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
Signed-off-by: Neil Armstrong <[email protected]>
Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
Signed-off-by: Neil Armstrong <[email protected]>
Some drivers would need some specific configuration flags,
re-introduce a vendor specific field for this purpose.

Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
Signed-off-by: Neil Armstrong <[email protected]>
Add a SPI master and slave driver for the L4, F4 and F3 STM32
SoCs families.

Change-Id: I1faf5c97f992c91eba852fd126e7d3b83158993d
Origin: Original
Signed-off-by: Neil Armstrong <[email protected]>
Tested-by: Jorge Ramirez-Ortiz <[email protected]>
Tested-by: Lee Jones <[email protected]>
Add SPI pin for the nucleo_f401re pinmux.

Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
Signed-off-by: Neil Armstrong <[email protected]>
Following implementation of LL based SPI driver,
add SPI support on nucleo_f334r8 board of STM32F3 series.

Change-Id: Ifbe39b1f2cecdd7db23be9c6943a914a155ebd77
Signed-off-by: Erwan Gouriou <[email protected]>
Signed-off-by: Neil Armstrong <[email protected]>
Handle the case when the async transceive call returns ENOTSUP.

Signed-off-by: Neil Armstrong <[email protected]>
The STM32 lower frequency is different, let us specify a different one.

Signed-off-by: Neil Armstrong <[email protected]>
Add support for the STM32 SoCs.

Signed-off-by: Neil Armstrong <[email protected]>
@locomuco locomuco changed the base branch from arm to master July 1, 2017 08:43
@locomuco locomuco changed the base branch from master to arm July 1, 2017 08:46
@locomuco locomuco changed the base branch from arm to master July 1, 2017 08:49
@locomuco
Copy link
Contributor Author

locomuco commented Jul 1, 2017

closed in favor of #662

@locomuco locomuco closed this Jul 1, 2017
nagineni pushed a commit to nagineni/zephyr that referenced this pull request Nov 20, 2017
…yrproject-rtos#663)

Also fixing the return type to be int, since that's what
zephyr returns.

Signed-off-by: Geoff Gustafson <[email protected]>
@locomuco locomuco deleted the enc28j60-spi branch May 5, 2018 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants