Search found 19 matches
- Mon Mar 23, 2015 9:27 pm
- Forum: User Projects
- Topic: chibios + elua
- Replies: 10
- Views: 11507
Re: chibios + elua
chradev, hi yes makefile tested under linux only, i don't use windows, sorry Probably Lua installed in the host is needed as well. yes, elua build system based on lua, you may refer to elua documentation, how to build image under windows. the romfiles.h is generated by elua after following commands ...
- Thu Mar 12, 2015 6:47 pm
- Forum: User Projects
- Topic: chibios + elua
- Replies: 10
- Views: 11507
chibios + elua
Hi!
just want to share example how to use chibios with elua.
Example for STM32F4 discovery
https://github.com/linvinus/chibios_with_elua
example lua
just want to share example how to use chibios with elua.
Example for STM32F4 discovery
https://github.com/linvinus/chibios_with_elua
example lua
Code: Select all
function test()
print("Start")
chibios.thd.SleepMilliseconds(1000)
print("End after 1 sec")
end
test()
- Sat Sep 24, 2011 7:42 pm
- Forum: Development and Feedback
- Topic: stm32F1x serial_usb circular buffer
- Replies: 26
- Views: 17244
Re: stm32F1x serial_usb circular buffer
Hi, That kind of mixing platform-specific code and generic code may work but it is not acceptable from an architectural point of view. i know, it was just for example. =) i'm also post example of low level function which should exist to make this code platform-independent. Anyway it is an interesti...
- Sat Sep 24, 2011 6:56 pm
- Forum: Development and Feedback
- Topic: stm32F1x serial_usb circular buffer
- Replies: 26
- Views: 17244
Re: stm32F1x serial_usb circular buffer
Giovanni, hi! I modify original function, so now it accepts data when enough space available in buffer, even if some process already begun reading data from buffer, may be it is good compromise between packet and transaction mode. Take a look. serial_usb.c: void sduDataReceived(USBDriver *usbp, usbe...
- Thu Sep 22, 2011 5:07 pm
- Forum: Development and Feedback
- Topic: stm32F1x serial_usb circular buffer
- Replies: 26
- Views: 17244
Re: stm32F1x serial_usb circular buffer
Now another question :) why queue callback don't have possibility to pass addition parameters? If it will have that, then you will not need for dirty trick with passing sdup through iqueue.q_wrptr? For example typedef void (*qnotify_t)(GenericQueue *qp,void* data); I'm don't understand for what use...
- Thu Sep 22, 2011 4:32 pm
- Forum: Development and Feedback
- Topic: The USB topic
- Replies: 76
- Views: 44975
Re: USB enable connection API
Hello, Thanks a lot for USB driver. This is a feedback from a user. I think that it would be better to provide a API to enable USB connection. In STM32 example, there is a line like: palClearPad(GPIOC, GPIOC_USB_DISC); but, in case of my board (STBee Mini), it's GPIOA which controls USB line. Some ...
- Wed Sep 21, 2011 8:13 pm
- Forum: Development and Feedback
- Topic: stm32F1x serial_usb circular buffer
- Replies: 26
- Views: 17244
Re: stm32F1x serial_usb circular buffer
i'm finished writing my test program :) there is my results: (just for fun) $ ./latency_test3 port /dev/ttyACM0 opened Test parameters: parts count:5 repeat count:1 waiting for board to be ready: .ok package size @ 5/5 bytes, latency: 1.97 ms average, 1.97 ms maximum, tatal=5 bytes, speed=2449 bytes...
- Wed Sep 21, 2011 6:24 pm
- Forum: Development and Feedback
- Topic: stm32F1x serial_usb circular buffer
- Replies: 26
- Views: 17244
Re: stm32F1x serial_usb circular buffer
For some reason the USB callback is called twice and the application tries to reinitialize the endpoints, I will look into this.
no,
i'm check, it happens on startup, when usbInitEndpointI called first time.
second time it happens if reconnect usb cable.
- Wed Sep 21, 2011 6:12 pm
- Forum: Development and Feedback
- Topic: stm32F1x serial_usb circular buffer
- Replies: 26
- Views: 17244
Re: stm32F1x serial_usb circular buffer
ok, thanks for help! i didn't understand did you read about Assert in CDC example? It happens when debugging options enabled. It enabled by default, so by default CDC example don't work. by the way CDC example hangs on chDbgAssert(usbp->epc[ep] != NULL, "usbEnableEndpointI(), #2", "al...
- Wed Sep 21, 2011 4:13 pm
- Forum: Development and Feedback
- Topic: stm32F1x serial_usb circular buffer
- Replies: 26
- Views: 17244
Re: stm32F1x serial_usb circular buffer
Now another question :) why queue callback don't have possibility to pass addition parameters? If it will have that, then you will not need for dirty trick with passing sdup through iqueue.q_wrptr? For example typedef void (*qnotify_t)(GenericQueue *qp, void* data ); I'm don't understand for what us...