Skip to content

Commit

Permalink
Third Party Hardware Drivers v3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
silabs-HopN authored and silabs-DanielN committed Nov 22, 2024
1 parent 98f30fb commit 2e6d00a
Show file tree
Hide file tree
Showing 129 changed files with 1,269 additions and 230 deletions.
1,075 changes: 977 additions & 98 deletions README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/adafruit_neotrellis_keypad_atsamd09/image/connection.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ define:
- name: DEBUG_EFM
sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0
other_file:
- path: ../../documentation/example/adafruit_rgb_led_is31fl3741/image/connection.png
directory: "image"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/adafruit_tft_lcd_hxd8357d/image/create_example_with_dma_mode.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/adafruit_tft_lcd_hxd8357d/image/create_example_with_dma_mode.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/adafruit_tft_lcd_hxd8357d_lvgl/image/create_example.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/adafruit_tft_lcd_hxd8357d_lvgl/image/create_example.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/adafruit_tft_lcd_ili9341/image/create_example.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/adafruit_tft_lcd_ili9341/image/create_example.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

configuration:
- name: LV_BUFFER_MODE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

configuration:
- name: LV_BUFFER_MODE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/adafruit_tft_lcd_st7789/image/create_example.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/adafruit_tft_lcd_st7789/image/create_example.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/adafruit_tft_lcd_st7789_lvgl_dma/image/create_example.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/adafruit_touchscreen_tsc2007/image/calib.png
Expand Down
2 changes: 1 addition & 1 deletion app/example/bthome_v2/bthome_v2.slcp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 2.0.0
version: 3.1.0

other_file:
- path: ../../documentation/example/bthome_v2/image/app1.png
Expand Down
2 changes: 1 addition & 1 deletion app/example/bthome_v2_server/bthome_v2_server.slcp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/bthome_v2_server/image/connection.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/maxim_fuel_gauge_max17048/image/overview.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/mikroe_accel5_bma400/image/hardware_connection.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/mikroe_accel5_bma400/image/hardware_connection.png
Expand Down
2 changes: 1 addition & 1 deletion app/example/mikroe_alcohol_mq3/mikroe_alcohol_mq3.slcp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/mikroe_alcohol_mq3/image/create_example_1.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ component:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0
- id: wiseconnect3_sdk
version: 3.2.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/mikroe_barcode2_em3080w/image/hardware_connection.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/mikroe_brushless16_lb11685av/image/create_example.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/mikroe_buzz2_cmt_8540s_smt/image/create_example.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ component:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0
- id: wiseconnect3_sdk
version: 3.2.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/mikroe_captouch2_cap1166/image/hardware_connection.png
Expand Down
2 changes: 1 addition & 1 deletion app/example/mikroe_co_mq7/mikroe_co_mq7.slcp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

ui_hints:
highlight:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/mikroe_dcmotor24_l9958/image/create_example.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/mikroe_dcmotor26_tb9053ftg/image/create_project.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ define:

sdk_extension:
- id: third_party_hw_drivers
version: 3.0.1
version: 3.1.0

other_file:
- path: ../../documentation/example/mikroe_dcmotor3_tb6549fg/image/create_example.png
Expand Down
121 changes: 121 additions & 0 deletions app/example/mikroe_e_paper_154_inch/brd4182a/sl_spidrv_mikroe_config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/***************************************************************************//**
* @file
* @brief SPIDRV Config
*******************************************************************************
* # License
* <b>Copyright 2019 Silicon Laboratories Inc. www.silabs.com</b>
*******************************************************************************
*
* SPDX-License-Identifier: Zlib
*
* The licensor of this software is Silicon Laboratories Inc.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
******************************************************************************/

#ifndef SL_SPIDRV_MIKROE_CONFIG_H
#define SL_SPIDRV_MIKROE_CONFIG_H

#include "spidrv.h"

// <<< Use Configuration Wizard in Context Menu >>>
// <h> SPIDRV settings

// <o SL_SPIDRV_MIKROE_BITRATE> SPI bitrate
// <i> Default: 1000000
#define SL_SPIDRV_MIKROE_BITRATE 1000000

// <o SL_SPIDRV_MIKROE_FRAME_LENGTH> SPI frame length <4-16>
// <i> Default: 8
#define SL_SPIDRV_MIKROE_FRAME_LENGTH 8

// <o SL_SPIDRV_MIKROE_TYPE> SPI mode
// <spidrvMaster=> Master
// <spidrvSlave=> Slave
#define SL_SPIDRV_MIKROE_TYPE spidrvMaster

// <o SL_SPIDRV_MIKROE_BIT_ORDER> Bit order on the SPI bus
// <spidrvBitOrderLsbFirst=> LSB transmitted first
// <spidrvBitOrderMsbFirst=> MSB transmitted first
#define SL_SPIDRV_MIKROE_BIT_ORDER spidrvBitOrderMsbFirst

// <o SL_SPIDRV_MIKROE_CLOCK_MODE> SPI clock mode
// <spidrvClockMode0=> SPI mode 0: CLKPOL=0, CLKPHA=0
// <spidrvClockMode1=> SPI mode 1: CLKPOL=0, CLKPHA=1
// <spidrvClockMode2=> SPI mode 2: CLKPOL=1, CLKPHA=0
// <spidrvClockMode3=> SPI mode 3: CLKPOL=1, CLKPHA=1
#define SL_SPIDRV_MIKROE_CLOCK_MODE spidrvClockMode0

// <o SL_SPIDRV_MIKROE_CS_CONTROL> SPI master chip select (CS) control scheme.
// <spidrvCsControlAuto=> CS controlled by the SPI driver
// <spidrvCsControlApplication=> CS controlled by the application
#define SL_SPIDRV_MIKROE_CS_CONTROL spidrvCsControlAuto

// <o SL_SPIDRV_MIKROE_SLAVE_START_MODE> SPI slave transfer start scheme
// <spidrvSlaveStartImmediate=> Transfer starts immediately
// <spidrvSlaveStartDelayed=> Transfer starts when the bus is idle (CS deasserted)
// <i> Only applies if instance type is spidrvSlave
#define SL_SPIDRV_MIKROE_SLAVE_START_MODE spidrvSlaveStartImmediate
// </h>
// <<< end of configuration section >>>

// <<< sl:start pin_tool >>>
// <usart signal=TX,RX,CLK,(CS)> SL_SPIDRV_MIKROE
// $[USART_SL_SPIDRV_MIKROE]
#ifndef SL_SPIDRV_MIKROE_PERIPHERAL
#define SL_SPIDRV_MIKROE_PERIPHERAL USART0
#endif
#ifndef SL_SPIDRV_MIKROE_PERIPHERAL_NO
#define SL_SPIDRV_MIKROE_PERIPHERAL_NO 0
#endif

// USART0 TX on PC00
#ifndef SL_SPIDRV_MIKROE_TX_PORT
#define SL_SPIDRV_MIKROE_TX_PORT gpioPortC
#endif
#ifndef SL_SPIDRV_MIKROE_TX_PIN
#define SL_SPIDRV_MIKROE_TX_PIN 0
#endif

// USART0 RX on PC01
#ifndef SL_SPIDRV_MIKROE_RX_PORT
#define SL_SPIDRV_MIKROE_RX_PORT gpioPortC
#endif
#ifndef SL_SPIDRV_MIKROE_RX_PIN
#define SL_SPIDRV_MIKROE_RX_PIN 1
#endif

// USART0 CLK on PC02
#ifndef SL_SPIDRV_MIKROE_CLK_PORT
#define SL_SPIDRV_MIKROE_CLK_PORT gpioPortC
#endif
#ifndef SL_SPIDRV_MIKROE_CLK_PIN
#define SL_SPIDRV_MIKROE_CLK_PIN 2
#endif

// USART0 CS on PC03
#ifndef SL_SPIDRV_MIKROE_CS_PORT
#define SL_SPIDRV_MIKROE_CS_PORT gpioPortC
#endif
#ifndef SL_SPIDRV_MIKROE_CS_PIN
#define SL_SPIDRV_MIKROE_CS_PIN 3
#endif
// [USART_SL_SPIDRV_MIKROE]$
// <<< sl:end pin_tool >>>

#endif // SL_SPIDRV_MIKROE_CONFIG_H
Loading

0 comments on commit 2e6d00a

Please sign in to comment.