Search found 6 matches

by WaL
Tue May 22, 2018 8:41 am
Forum: STM32 Support
Topic: Thread parameter - struct
Replies: 4
Views: 919

Re: Thread parameter - struct

Thanks, it really work!
by WaL
Tue May 22, 2018 7:43 am
Forum: STM32 Support
Topic: Thread parameter - struct
Replies: 4
Views: 919

Thread parameter - struct

Hello! I'm trying to pass parameters in the thread. I already understood that this requires a structure, but then I stopped /* * Поток мигания светодиодом */ static THD_WORKING_AREA(waThreadBlink, 128); static msg_t ThreadBlink(void *arg) { (void)arg; chRegSetThreadName("blinker"); palSetP...
by WaL
Tue May 15, 2018 8:18 pm
Forum: STM32 Support
Topic: one-wire on UART
Replies: 9
Views: 2907

Re: one-wire on UART

In fact, it seems that the first byte at 9600 baud does not have time to be transmitted in this case
by WaL
Tue May 15, 2018 8:10 pm
Forum: STM32 Support
Topic: one-wire on UART
Replies: 9
Views: 2907

Re: one-wire on UART

Yes, it really works, thanks! But for some reason the sensor still does not answer me! I send him the following data but I do not get a response static SerialConfig uartCfg1 = { 9600, // bit rate }; static SerialConfig uartCfg2 = { 115200, // bit rate }; uint8_t reset_onewire=0xF0; uint8_t readrom_c...
by WaL
Tue May 15, 2018 2:36 pm
Forum: STM32 Support
Topic: one-wire on UART
Replies: 9
Views: 2907

Re: one-wire on UART

Thanks! My code: #define GPIOA_USART1_TX 9 #define GPIOA_USART1_RX 10 and #define VAL_GPIOACRH 0x888884B8 /* PA15...PA8 */ But as such, UART transmission works. The question is how to change the baud rate without restarting the driver, since it takes a long time to restart it! Maybe I do not underst...
by WaL
Tue May 15, 2018 12:10 pm
Forum: STM32 Support
Topic: one-wire on UART
Replies: 9
Views: 2907

one-wire on UART

Hello! I'm just starting to program and I do not understand much :oops: The task was to read the code from DS1990 I tried to do this on UART, but nothing comes out I can send a reset signal and get a response from DS1990. I did it on USART and on UART, for example: halconf.h #if !defined(SERIAL_DEFA...

Go to advanced search