-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98f30fb
commit 2e6d00a
Showing
129 changed files
with
1,269 additions
and
230 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
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
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
121 changes: 121 additions & 0 deletions
121
app/example/mikroe_e_paper_154_inch/brd4182a/sl_spidrv_mikroe_config.h
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 |
---|---|---|
@@ -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 |
Oops, something went wrong.