-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
19804: cpu/nrf{53,9160}: add periph_rtt support r=benpicco a=dylad ### Contribution description This PR enables support for `periph_rtt` on both nRF9160 and nRF53. This PR is based on #19803 I was only able to test on nrf5340dk-app as I don't have access to any nrf9160-based board. Here is `test/periph/rtt` output for reference on `nrf5340dk-app`: ### Testing procedure flash `tests/periph/rtt` on `nrf9160dk` or `nrf5340dk-app` and check the results. ``` s 2023-07-06 16:11:16,471 # START 2023-07-06 16:11:16,479 # main(): This is RIOT! (Version: 2023.07-devel-765-g02c65-cpu/nrf53/add_rtt_support) 2023-07-06 16:11:16,480 # 2023-07-06 16:11:16,482 # RIOT RTT low-level driver test 2023-07-06 16:11:16,483 # RTT configuration: 2023-07-06 16:11:16,485 # RTT_MAX_VALUE: 0x00ffffff 2023-07-06 16:11:16,487 # RTT_FREQUENCY: 1024 2023-07-06 16:11:16,487 # 2023-07-06 16:11:16,494 # Testing the tick conversion (with rounding if RTT_FREQUENCY is not power of 2) 2023-07-06 16:11:16,498 # Trying to convert 1 to seconds and back 2023-07-06 16:11:16,501 # Trying to convert 256 to seconds and back 2023-07-06 16:11:16,505 # Trying to convert 65536 to seconds and back 2023-07-06 16:11:16,509 # Trying to convert 16777216 to seconds and back 2023-07-06 16:11:16,514 # Trying to convert 2147483648 to seconds and back 2023-07-06 16:11:16,514 # All ok 2023-07-06 16:11:16,514 # 2023-07-06 16:11:16,517 # Initializing the RTT driver 2023-07-06 16:11:16,835 # This test will now display 'Hello' every 5 seconds 2023-07-06 16:11:16,835 # 2023-07-06 16:11:16,836 # RTT now: 4 2023-07-06 16:11:16,840 # Setting initial alarm to now + 5 s (5124) 2023-07-06 16:11:16,841 # rtt_get_alarm() PASSED 2023-07-06 16:11:16,846 # Done setting up the RTT, wait for many Hellos 2023-07-06 16:11:16,852 # { "threads": [{ "name": "main", "stack_size": 1536, "stack_used": 404 }]} 2023-07-06 16:11:21,833 # Hello 2023-07-06 16:11:26,831 # Hello 2023-07-06 16:11:31,830 # Hello 2023-07-06 16:11:36,828 # Hello 2023-07-06 16:11:41,826 # Hello 2023-07-06 16:11:46,825 # Hello 2023-07-06 16:11:51,823 # Hello 2023-07-06 16:11:56,821 # Hello 2023-07-06 16:12:01,821 # Hello 2023-07-06 16:12:06,819 # Hello 2023-07-06 16:12:11,817 # Hello 2023-07-06 16:12:16,815 # Hello 2023-07-06 16:12:21,813 # Hello 2023-07-06 16:12:26,811 # Hello ``` ### Issues/PRs references based on #19803 19807: boards/esp32s2-lilygo-ttgo-t8: fix display configuration r=benpicco a=gschorcht ### Contribution description This PR fixes the display configuration for the ESP32-S2 LilyGO TTGO T8 (also known as LilyGo T-Display S2) which uses a ST7789 as display driver IC that is compatible with the ST7735. For that purpose the ST7735 driver is extended by a pseudomodule definition `st7789` for the ST7789 which is enabled by the board and enables automatically the `st7789` (f57b6b7). Vise versa, board's `Makefile.dep` enables automatically the `st7789` pseudomodule if the `st7735` is used. The pseudomodule `st7789` is just used to increase the upper limit for supported lines. ### Testing procedure ``` BOARD=esp32s2-lilygo-ttgo-t8 make -C tests/drivers/st7735/ flash ``` should work: ![IMG_20230707_112616](https://github.com/RIOT-OS/RIOT/assets/31932013/4393866b-27d9-4a6a-96fc-7c460be35cde) ### Issues/PRs references 19809: cpu/nrf53: add usbdev support r=benpicco a=dylad ### Contribution description This PR enables `periph_usbdev` support on nRF5340DK-app board. Since the IP is the same as nRF52, the driver and its related data and structs were moved from `cpu/nrf52` to `cpu/nrf5x_common` ### Testing procedure Test any USBUS related test application on `nrf5340dk-app` `CFLAGS='-DSECTOR_COUNT=64' USEMODULE='mtd_emulated' make BOARD=nrf5340dk-app -C tests/sys/usbus_msc flash` dmesg output: ``` [ 7466.262760] usb 1-2.1: new full-speed USB device number 16 using xhci_hcd [ 7466.483916] usb 1-2.1: New USB device found, idVendor=1209, idProduct=7d01, bcdDevice= 1.00 [ 7466.483925] usb 1-2.1: New USB device strings: Mfr=3, Product=2, SerialNumber=4 [ 7466.483928] usb 1-2.1: Product: nrf5340dk-app [ 7466.483931] usb 1-2.1: Manufacturer: RIOT-os.org [ 7466.483933] usb 1-2.1: SerialNumber: AD0FD4AE806080C2 [ 7466.487010] usb-storage 1-2.1:1.0: USB Mass Storage device detected [ 7466.487348] scsi host2: usb-storage 1-2.1:1.0 [ 7467.516789] scsi 2:0:0:0: Direct-Access RIOT-OS RIOT_MSC_DISK 1.0 PQ: 0 ANSI: 1 [ 7467.517152] sd 2:0:0:0: Attached scsi generic sg3 type 0 [ 7467.517501] sd 2:0:0:0: [sdd] 64 512-byte logical blocks: (32.8 kB/32.0 KiB) [ 7467.517732] sd 2:0:0:0: [sdd] Write Protect is off [ 7467.517733] sd 2:0:0:0: [sdd] Mode Sense: 03 00 00 00 [ 7467.517906] sd 2:0:0:0: [sdd] No Caching mode page found [ 7467.517910] sd 2:0:0:0: [sdd] Assuming drive cache: write through [ 7467.532159] sd 2:0:0:0: [sdd] Attached SCSI removable disk ``` I also tested `tests/sys/usbus_cdc_ecm` and `tests/sys/usbus/usbus_hid` succesfully. ### Issues/PRs references Co-authored-by: Dylan Laduranty <dylan.laduranty@mesotic.com> Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
- Loading branch information
Showing
22 changed files
with
123 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
PSEUDOMODULES += st7789 | ||
|
||
USEMODULE_INCLUDES_st7735 := $(LAST_MAKEFILEDIR)/include | ||
USEMODULE_INCLUDES += $(USEMODULE_INCLUDES_st7735) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters