Small changes.
git-svn-id: https://svn.code.sf.net/p/chibios/svn2/trunk@11582 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
parent
e372b812a0
commit
92d9ec18b5
|
@ -419,7 +419,7 @@
|
|||
*
|
||||
* @note The default is @p FALSE.
|
||||
*/
|
||||
#define CH_DBG_ENABLE_ASSERTS FALSE
|
||||
#define CH_DBG_ENABLE_ASSERTS TRUE
|
||||
|
||||
/**
|
||||
* @brief Debug option, trace buffer.
|
||||
|
@ -603,13 +603,6 @@
|
|||
/* Port-specific settings (override port settings defaulted in chcore.h). */
|
||||
/*===========================================================================*/
|
||||
|
||||
/**
|
||||
* @brief Trust zone configuration.
|
||||
* @details If enabled the kernel is configured for the secure world
|
||||
* and can access specific devices.
|
||||
*/
|
||||
#define CH_CFG_SEC_WORLD TRUE
|
||||
|
||||
#endif /* CHCONF_H */
|
||||
|
||||
/** @} */
|
||||
|
|
|
@ -29,7 +29,7 @@ static const SPIConfig hs_spicfg = {
|
|||
NULL, /* callback if present */
|
||||
0, /* cs pad number */
|
||||
SPI_MR_MODFDIS | SPI_MR_LLB, /* mr register */
|
||||
SPI_CSR_SCBR(3) /* csr */
|
||||
SPI_CSR_SCBR(1) /* csr */
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -39,13 +39,13 @@ static const SPIConfig ls_spicfg = {
|
|||
NULL, /* callback if present */
|
||||
0, /* cs pad number */
|
||||
SPI_MR_MODFDIS | SPI_MR_LLB, /* mr register */
|
||||
SPI_CSR_SCBR(166) /* csr */
|
||||
SPI_CSR_SCBR(1) /* csr */
|
||||
};
|
||||
|
||||
/*
|
||||
* SPI bus contender 1.
|
||||
*/
|
||||
static THD_WORKING_AREA(spi_thread_1_wa, 256);
|
||||
static THD_WORKING_AREA(spi_thread_1_wa, 1024);
|
||||
static THD_FUNCTION(spi_thread_1, p) {
|
||||
|
||||
(void)p;
|
||||
|
@ -65,7 +65,7 @@ static THD_FUNCTION(spi_thread_1, p) {
|
|||
/*
|
||||
* SPI bus contender 2.
|
||||
*/
|
||||
static THD_WORKING_AREA(spi_thread_2_wa, 256);
|
||||
static THD_WORKING_AREA(spi_thread_2_wa, 1024);
|
||||
static THD_FUNCTION(spi_thread_2, p) {
|
||||
|
||||
(void)p;
|
||||
|
@ -75,7 +75,7 @@ static THD_FUNCTION(spi_thread_2, p) {
|
|||
spiAcquireBus(&FSPID2); /* Acquire ownership of the bus. */
|
||||
palSetLine(LINE_LED_RED); /* LED OFF. */
|
||||
spiStart(&FSPID2, &ls_spicfg); /* Setup transfer parameters. */
|
||||
spiExchange(&FSPID2, 512,
|
||||
spiExchange(&FSPID2, BUFFER_SIZE,
|
||||
txbuf, rxbuf); /* Atomic transfer operations. */
|
||||
cacheInvalidateRegion(&rxbuf, sizeof(rxbuf));
|
||||
spiReleaseBus(&FSPID2); /* Ownership release. */
|
||||
|
|
Loading…
Reference in New Issue