Search found 109 matches

by Prima
20 Jun 2017, 15:16
Forum: Linux/RTOS
Topic: M451 CAN application routines under Keil RTX
Replies: 4
Views: 41822

Re: M451 CAN application routines under Keil RTX

This is a total of several hanging in the above equipment, Is not as long as the ID can be fixed-point communication


Days Lingling spirit spirit
by Prima
20 Jun 2017, 15:16
Forum: Linux/RTOS
Topic: M451 CAN application routines under Keil RTX
Replies: 4
Views: 41822

M451 CAN application routines under Keil RTX

Function Description: 1 ) RTX system to establish two tasks, namely CAN send and CAN reception 2 ) Node0 through the expansion ID: 0x12345 every 2 seconds to send 2 bytes of data to the Node1 , then Node1 received data and then through a simple operation and then through the standard ID : 0x7FF sent...
by Prima
20 Jun 2017, 15:13
Forum: Linux/RTOS
Topic: Under KEIL RTX, access the EEPROM in an interrupted manner
Replies: 2
Views: 12088

Re: Under KEIL RTX, access the EEPROM in an interrupted manner

In rtx below, eeprom read and write their own independent task.eeprom interrupt handling in the i2c read and write.
Thank you for sharing

Lovecat2015
by Prima
20 Jun 2017, 15:12
Forum: Linux/RTOS
Topic: Under KEIL RTX, access the EEPROM in an interrupted manner
Replies: 2
Views: 12088

Re: Under KEIL RTX, access the EEPROM in an interrupted manner

Interrupt access eeprom, thank you for sharing

Thanks,
Odyssey
by Prima
20 Jun 2017, 15:12
Forum: Linux/RTOS
Topic: Under KEIL RTX, access the EEPROM in an interrupted manner
Replies: 2
Views: 12088

Under KEIL RTX, access the EEPROM in an interrupted manner

Under rtx, eeprom read and write their own independent task. eeprom in the i2c interrupt handling read and write.

Thanks,
A_ziliu
by Prima
20 Jun 2017, 12:10
Forum: Linux/RTOS
Topic: NUC240 RTX binding SPI PDMA
Replies: 12
Views: 32176

Re: NUC240 RTX binding SPI PDMA

http://bbs.21ic.com/space-uid-288409.html * @file main.c
http://bbs.21ic.com/space-uid-895143.html * @version V2.00


The url is what role it?

Thanks,
643757107
by Prima
20 Jun 2017, 12:08
Forum: Linux/RTOS
Topic: NUC240 RTX binding SPI PDMA
Replies: 12
Views: 32176

Re: NUC240 RTX binding SPI PDMA

Code: Select all

__task void task1 (void);                                                // Tasks function prototypes
__task void task2 (void);
__task void task3 (void);

Thanks,
643757107
mid-level engineer
by Prima
20 Jun 2017, 12:07
Forum: Linux/RTOS
Topic: NUC240 RTX binding SPI PDMA
Replies: 12
Views: 32176

Re: NUC240 RTX binding SPI PDMA

Code: Select all

55.    /* Set GPB multi-function pins for UART0 RXD and TXD */

56.    SYS->GPB_MFP &= ~(SYS_GPB_MFP_PB0_Msk | SYS_GPB_MFP_PB1_Msk);

57.    SYS->GPB_MFP |= (SYS_GPB_MFP_PB0_UART0_RXD | SYS_GPB_MFP_PB1_UART0_TXD);

Configure these ports as serial ports?

Thanks,
wahahaheihei
mid-level engineer
by Prima
20 Jun 2017, 12:06
Forum: Linux/RTOS
Topic: NUC240 RTX binding SPI PDMA
Replies: 12
Views: 32176

Re: NUC240 RTX binding SPI PDMA

Code: Select all

 /* Enable Internal RC 22.1184MHz clock */
    CLK_EnableXtalRC(CLK_PWRCON_OSC22M_EN_Msk);

    /* Waiting for Internal RC clock ready */
    CLK_WaitClockReady(CLK_CLKSTATUS_OSC22M_STB_Msk);

HAL library function is still very simple.

Thanks,
yiyigirl2014
Senior Engineer
by Prima
20 Jun 2017, 12:05
Forum: Linux/RTOS
Topic: NUC240 RTX binding SPI PDMA
Replies: 12
Views: 32176

Re: NUC240 RTX binding SPI PDMA

Open_SPI_Flash (void) is a function of no arguments, should with a return value.

Thanks,
wahahaheihei
mid-level engineer