Search found 121 matches

by wurstnase
Thu Dec 05, 2019 2:41 pm
Forum: ChibiOS/HAL
Topic: Abstract File Stream
Replies: 7
Views: 932

Abstract File Stream

Hi, I'm currently working on a file stream implementation for an interface between fatfs and my sd-card driver. The interface has a close function but now open function. While probably this is intended, maybe you can hint me why? For now I extend the fileStream to some kind of fileObject. Extend thi...
by wurstnase
Mon Nov 25, 2019 10:03 am
Forum: Bug Reports
Topic: chTimeIsInRangeX always false? Topic is solved
Replies: 15
Views: 3048

Re: chTimeIsInRangeX always false? Topic is solved

Hi Giovanni, the driver is working now. Only the default delay is still running into a SV#4. The i2cMasterTransmit call an osalSysLock. Then it will start the transmit with i2c_lld_master_transmit_timeout. E.g. in the i2c_write_start you will have: palClearLine(i2cp->config->sda); i2c_delay(i2cp); p...
by wurstnase
Fri Nov 22, 2019 8:03 pm
Forum: Bug Reports
Topic: chTimeIsInRangeX always false? Topic is solved
Replies: 15
Views: 3048

Re: chTimeIsInRangeX always false? Topic is solved

Please check also my current patch. (Still testing) diff --git a/os/hal/lib/fallback/I2C/hal_i2c_lld.c b/os/hal/lib/fallback/I2C/hal_i2c_lld.c index 1482d52f5..209506365 100644 --- a/os/hal/lib/fallback/I2C/hal_i2c_lld.c +++ b/os/hal/lib/fallback/I2C/hal_i2c_lld.c @@ -94,7 +94,7 @@ static inline msg...
by wurstnase
Fri Nov 22, 2019 7:23 pm
Forum: Bug Reports
Topic: chTimeIsInRangeX always false? Topic is solved
Replies: 15
Views: 3048

Re: chTimeIsInRangeX always false? Topic is solved

If I'm correct I could now use in the fallback i2c driver? i2cp->start = osalOsGetSystemTimeX(); i2cp->end = i2cp->start + timeout; /* or i2cp->end = osalTimeAddX(i2cp->start, timeout); */ instead of this "wrong" code? i2cp->start = osalOsGetSystemTimeX(); i2cp->end = i2cp->start; if (time...
by wurstnase
Fri Nov 22, 2019 2:08 pm
Forum: Bug Reports
Topic: chTimeIsInRangeX always false? Topic is solved
Replies: 15
Views: 3048

chTimeIsInRangeX always false? Topic is solved

Hi, I've some issues with the following code: /** * @brief Checks if the specified time is within the specified time range. * @note When start==end then the function returns always true because the * whole time range is specified. * * @param[in] time the time to be verified * @param[in] start the st...
by wurstnase
Fri Nov 15, 2019 9:29 pm
Forum: ChibiOS/RT
Topic: encoding GPIO ports
Replies: 11
Views: 1396

Re: encoding GPIO ports

Giovanni wrote:Just a detail, you can map multiple event sources to the same eventmask_t bit. Your handler can then poll the various listeners for available flags. RAM usage is true.


I can't follow you with this completely. Do you have a minimal example, please?
by wurstnase
Thu Nov 14, 2019 11:50 am
Forum: ChibiOS/RT
Topic: encoding GPIO ports
Replies: 11
Views: 1396

Re: encoding GPIO ports

For something similar I'm using the PORT_LINE PAL_LINE macro. Probably this is what are you searching for.
by wurstnase
Sun Nov 10, 2019 3:50 pm
Forum: Bug Reports
Topic: Possible bug in ADC lld
Replies: 4
Views: 923

Re: Possible bug in ADC lld

I've seen that sometimes my ADC will not start. Could this be an issue with that part of code?

Unfortunately it is sometimes at some tools. Not anytime at any tool.
by wurstnase
Fri Nov 08, 2019 11:04 am
Forum: Bug Reports
Topic: uartSendFullTimeout wrong transmitted bytes Topic is solved
Replies: 1
Views: 223

uartSendFullTimeout wrong transmitted bytes Topic is solved

While uartSendTimeout is correct: /* Waiting for result.*/ msg = osalThreadSuspendTimeoutS(&uartp->threadtx, timeout); if (msg != MSG_OK) { *np -= uartStopSendI(uartp); } uartSendFullTimeout is wrong: /* Waiting for result.*/ msg = osalThreadSuspendTimeoutS(&uartp->threadtx, timeout); if (ms...

Go to advanced search