Search found 15 matches
- Fri Dec 29, 2017 10:25 am
- Forum: STM32 Support
- Topic: a project with pwm and adc
- Replies: 9
- Views: 4632
a project with pwm and adc
I use the pwm to control the motor and adc to get Sampling current. 1.in pwm chanel callback static void pwmc1cb(PWMDriver *pwmp) { (void)pwmp; chSysLockFromISR(); adcStartConversionI(&ADCD1, &adcgrpcfg, samples, ADC_GRP_BUF_DEPTH); chSysUnlockFromISR(); } 2. in adc callback static void adcc...
- Wed Dec 20, 2017 8:47 am
- Forum: STM32 Support
- Topic: qusetion about uart and shell
- Replies: 4
- Views: 2001
Re: qusetion about uart and shell
Thanks again for your help
- Wed Dec 20, 2017 8:38 am
- Forum: STM32 Support
- Topic: qusetion about uart and shell
- Replies: 4
- Views: 2001
Re: qusetion about uart and shell
Thanks for your help.by the way are there have any documentation about the chprintf or shell ?
- Wed Dec 20, 2017 8:31 am
- Forum: Bug Reports
- Topic: the Documentation bug Topic is solved
- Replies: 1
- Views: 1744
the Documentation bug Topic is solved
there have some bug in the documentation ChibiOS/RT 3.0 The Ultimate Guide-->Chapter 15 - RT I/O Queues-->Output Queues-->Reading Data maybe this title should be Writing Data? because the content is "The write operation sends the specified amount of data to the output queue waiting if necessary...
- Wed Dec 20, 2017 8:25 am
- Forum: STM32 Support
- Topic: qusetion about uart and shell
- Replies: 4
- Views: 2001
qusetion about uart and shell
1.i can run the shell with usb,but how to use shell with uart? 2.when i use chprintf like this chprintf((BaseSequentialStream *)&UARTD2,"hello!"); it doesn't work,and sometimes chprintf((BaseSequentialStream *)&USBD1,"hello!"); also doesn't work. are there have any docume...