Search found 9 matches

by oattao
Wed Jan 09, 2013 3:53 am
Forum: General Support
Topic: External clock for timer
Replies: 4
Views: 3281

External clock for timer

Hi all,
I want to use Timer in counter mode, but I don't find how to config to use external clock for Timer. Please help me.
Thanks in advance.
by oattao
Wed Dec 12, 2012 11:25 am
Forum: General Support
Topic: Problem in PWM: PWM_OUTPUT_MASK
Replies: 1
Views: 1716

Problem in PWM: PWM_OUTPUT_MASK

Hi all,
I'm using PWM in STM32. I read in pwm.h file:

Code: Select all

/**
 * @brief   Standard output modes mask.
 */
#define PWM_OUTPUT_MASK                         0x0F

I don't understand the "output modes mask" of PWM. Please explain to me.
Thanks in advance.
by oattao
Tue Dec 11, 2012 10:18 am
Forum: General Support
Topic: How can use CMSIS in Chibios?
Replies: 11
Views: 8244

How can use CMSIS in Chibios?

Hi all.
I've studied ChibiOS for some weeks. I used to work with CMSIS library on STM32 microcontroller. I have a question: Can I use CMSIS library in ChibiOS to work with STM32?
Sorry if my question is stupid.
Thanks in advance.
by oattao
Thu Dec 06, 2012 7:46 am
Forum: General Support
Topic: Send and receive in thread
Replies: 4
Views: 3984

Re: Send and receive in thread

Thank you very much. I understand now. This forum is very helpfull. I like it.
by oattao
Thu Dec 06, 2012 3:43 am
Forum: General Support
Topic: Send and receive in thread
Replies: 4
Views: 3984

Re: Send and receive in thread

Thank you very much for your help. I don't understand much about deadlock but my code can work now (I can send and receive message with a thread).
by oattao
Wed Dec 05, 2012 5:05 am
Forum: General Support
Topic: MailBox: Different between chMBPostAheadS and chMBPostAheadI
Replies: 1
Views: 1908

MailBox: Different between chMBPostAheadS and chMBPostAheadI

Hi all. I have a problem with MailBox. I don't know what is the different between two functions of MaiBox:
chMBPostAheadS (Mailbox *mbp, msg_t msg, systime_t time)
//Posts an high priority message into a mailbox.
chMBPostAheadI (Mailbox *mbp, msg_t msg)
//Posts an high priority message into ...
by oattao
Wed Dec 05, 2012 4:45 am
Forum: General Support
Topic: Send and receive in thread
Replies: 4
Views: 3984

Send and receive in thread

Hi all, I need help about MailBox. I create two thread. One post message, another fetch message, when it receive message, it with turn on or turn off LED3 (I'm using STM32l-Discovery). Here the code I used and it done well (LED3 on or off as I expected).
#include "ch.h"
#include "hal.h ...
by oattao
Tue Dec 04, 2012 3:39 pm
Forum: General Support
Topic: Problem with PWM
Replies: 2
Views: 2188

Re: Problem with PWM

Giovanni, thank you very much. I can solve problem now. :D
by oattao
Tue Dec 04, 2012 3:36 am
Forum: General Support
Topic: Problem with PWM
Replies: 2
Views: 2188

Problem with PWM

I have a STM32L-Discovery kit. I want to control the brightness of Led4 (connect with pin PB6). I used this code:
#include "ch.h"
#include "hal.h"

static PWMConfig pwmcfg = {
10000, /* 10kHz PWM clock frequency. */
10000, /* Initial PWM period 1S. */
NULL,
{
{PWM_OUTPUT ...