--- a/LPCBus/MC9_Devices_decl.c Sat Mar 14 20:19:18 2015 +0100
+++ b/LPCBus/MC9_Devices_decl.c Mon Jun 15 15:04:14 2015 +0200
@@ -208,7 +208,7 @@
-#define MAX_UART_DEVICES 52
+#define MAX_UART_DEVICES 68 /* UART bus read and write buffer size */
@@ -505,14 +505,42 @@
uartPortDevices[i] = &UARTDevice;
uartPortTim[i].toValue = msTOns(50); /* 50ms */
uartPortTim[i].status = TIM_EN_RUNNING;
- case(130): /* P01, P02, P01V, P02V */
+// case(130): /* P01, P02, P01V, P02V */ --- a/MC9target/plc_MC9_main_retain.c Sat Mar 14 20:19:18 2015 +0100
+++ b/MC9target/plc_MC9_main_retain.c Mon Jun 15 15:04:14 2015 +0200
@@ -109,11 +109,9 @@
- printf("Configure the bus :\n");
uint = TEST_SPI_CLK_PHASE;
- printf("> (SET) Clock phase : %d \n", uint);
if (rt_dev_ioctl(fd_spi, RTDM_SPI_CLKPHASE_SET, &uint) < 0) {
printf("Failed to configure the clock phase\n");
@@ -122,11 +120,9 @@
printf("Failed to get the clock phase\n");
- printf("> (GET) Clock phase : %d \n", uint);
uint = TEST_SPI_CLK_POLARITY;
- printf("> (SET) Clock polarity : %d \n", uint);
if (rt_dev_ioctl(fd_spi, RTDM_SPI_CLKPOLARITY_SET, &uint) < 0) {
printf("Failed to configure the clock polarity\n");
@@ -135,11 +131,9 @@
printf("Failed to get the clock polarity\n");
- printf("> (GET) Clock polarity : %d \n", uint);
- printf("> (SET) Frequency : %d \n", ulong);
if (rt_dev_ioctl(fd_spi, RTDM_SPI_FREQ_SET, &ulong) < 0) {
printf("Failed to configure the frequency\n");
@@ -148,11 +142,9 @@
printf("Failed to get the frequency\n");
- printf("> (GET) Frequency : %lu \n", ulong);
uint = TEST_SPI_BITS_PER_WORD;
- printf("> (SET) Bits per word : %d \n", uint);
if (rt_dev_ioctl(fd_spi, RTDM_SPI_BITSPERWORD_SET, &uint) < 0) {
printf("Failed to configure the BPW\n");
@@ -161,11 +153,9 @@
printf("Failed to get the BPW\n");
- printf("> (GET) Bits per word : %d \n", uint);
uint = TEST_SPI_CHIPSELECT1;
- printf("> (SET) Chip select : %d \n", uint);
if (rt_dev_ioctl(fd_spi, RTDM_SPI_CHIPSELECT_SET, &uint) < 0) {
printf("Failed to configure the chip select\n");
@@ -174,11 +164,9 @@
printf("Failed to get the chip select\n");
- printf("> (GET) Chip select : %d \n", uint);
/* DMA usage definition */
uint = TEST_SPI_DMA_BYTES_MIN;
- printf("> (SET) Use the DMA from %d bytes\n", uint);
if (rt_dev_ioctl(fd_spi, RTDM_SPI_DMA_SET, &uint) < 0) {
printf("Failed to configure the DMA threshold\n");
@@ -187,8 +175,6 @@
printf("Failed to get the DMA threshold\n");
- printf("> (GET) DMA threshold : %d bytes \n", uint);
/* Prepare for future write commands */