Skip to content

Commit ae59641

Browse files
JorgeGzmAlan C. Assis
authored andcommitted
arm/linum-stm32h753bi: Add support to RFID MFRC522
Signed-off-by: Jorge Guzman [email protected]
1 parent dc7d347 commit ae59641

File tree

9 files changed

+503
-139
lines changed

9 files changed

+503
-139
lines changed

Documentation/platforms/arm/stm32h7/boards/linum-stm32h753bi/index.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,3 +787,29 @@ To test the sdram use the command **ramtest**::
787787
RAMTest: Pattern test: c0000000 8388608 66666666 99999999
788788
RAMTest: Pattern test: c0000000 8388608 33333333 cccccccc
789789
RAMTest: Address-in-address test: c0000000 8388608
790+
791+
mfrc522
792+
--------
793+
794+
Configures the board to use the SPI4 and enables RFID driver with MFRC522::
795+
796+
nsh> ls /dev/
797+
/dev:
798+
console
799+
null
800+
rfid0
801+
rtc0
802+
ttyS0
803+
nsh> rfid_readuid
804+
Trying to READ: Card is not present!
805+
Trying to READ: Card is not present!
806+
Trying to READ: RFID CARD UID = 0x3DB3F169
807+
808+
======== =====
809+
MFRC522 PINS
810+
======== =====
811+
SCK PE2
812+
MISO PE5
813+
MOSI PE6
814+
CS PE4
815+
======== =====
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
#
2+
# This file is autogenerated: PLEASE DO NOT EDIT IT.
3+
#
4+
# You can use "make menuconfig" to make any modifications to the installed .config file.
5+
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
6+
# modifications.
7+
#
8+
# CONFIG_NSH_DISABLE_IFCONFIG is not set
9+
# CONFIG_NSH_DISABLE_PS is not set
10+
# CONFIG_STANDARD_SERIAL is not set
11+
# CONFIG_STM32H7_USE_LEGACY_PINMAP is not set
12+
CONFIG_ARCH="arm"
13+
CONFIG_ARCH_BOARD="linum-stm32h753bi"
14+
CONFIG_ARCH_BOARD_LINUM_STM32H753BI=y
15+
CONFIG_ARCH_CHIP="stm32h7"
16+
CONFIG_ARCH_CHIP_STM32H753BI=y
17+
CONFIG_ARCH_CHIP_STM32H7=y
18+
CONFIG_ARCH_CHIP_STM32H7_CORTEXM7=y
19+
CONFIG_ARCH_STACKDUMP=y
20+
CONFIG_ARMV7M_DCACHE=y
21+
CONFIG_ARMV7M_DCACHE_WRITETHROUGH=y
22+
CONFIG_ARMV7M_DTCM=y
23+
CONFIG_ARMV7M_ICACHE=y
24+
CONFIG_BOARD_LOOPSPERMSEC=43103
25+
CONFIG_BUILTIN=y
26+
CONFIG_CL_MFRC522=y
27+
CONFIG_DEBUG_FEATURES=y
28+
CONFIG_DEBUG_SYMBOLS=y
29+
CONFIG_DRIVERS_CONTACTLESS=y
30+
CONFIG_EXAMPLES_ALARM=y
31+
CONFIG_EXAMPLES_RFID_READUID=y
32+
CONFIG_INIT_ENTRYPOINT="nsh_main"
33+
CONFIG_INTELHEX_BINARY=y
34+
CONFIG_LIBM=y
35+
CONFIG_MM_REGIONS=4
36+
CONFIG_NSH_ARCHINIT=y
37+
CONFIG_NSH_BUILTIN_APPS=y
38+
CONFIG_NSH_FILEIOSIZE=512
39+
CONFIG_NSH_LINELEN=64
40+
CONFIG_NSH_READLINE=y
41+
CONFIG_PREALLOC_TIMERS=4
42+
CONFIG_RAM_SIZE=245760
43+
CONFIG_RAM_START=0x20010000
44+
CONFIG_RAW_BINARY=y
45+
CONFIG_RR_INTERVAL=200
46+
CONFIG_RTC_ALARM=y
47+
CONFIG_RTC_DATETIME=y
48+
CONFIG_RTC_DRIVER=y
49+
CONFIG_SCHED_WAITPID=y
50+
CONFIG_START_DAY=6
51+
CONFIG_START_MONTH=12
52+
CONFIG_START_YEAR=2011
53+
CONFIG_STM32H7_PWR=y
54+
CONFIG_STM32H7_RTC=y
55+
CONFIG_STM32H7_SPI4=y
56+
CONFIG_STM32H7_USART1=y
57+
CONFIG_SYSTEM_NSH=y
58+
CONFIG_TASK_NAME_SIZE=0
59+
CONFIG_USART1_SERIAL_CONSOLE=y

0 commit comments

Comments
 (0)