Search found 137 matches

by BennehBoy
Thu Jan 23, 2020 12:16 pm
Forum: General discussion
Topic: [SOLVED]Timer changes since 1.6
Replies: 14
Views: 10618

Re: Timer changes since 1.6

maybe you need this MyTim->setMode(2, TIMER_OUTPUT_COMPARE); https://www.stm32duino.com/viewtopic.php?f=62&t=117 I just need to fire an interrupt every millisecond, if I was doing the pin handling myself (and not using a library) then yeah a comparison would be the way to go. EDIT As it stands ...
by BennehBoy
Thu Jan 23, 2020 11:59 am
Forum: General discussion
Topic: [SOLVED]Timer changes since 1.6
Replies: 14
Views: 10618

Re: Timer changes since 1.6

OK so I think I know what I need to do... I want a time based interrupt that will fire every millisecond, so I just need to set up a 1000 hz timer? Based on the below example code? MyTim->setOverflow(10, HERTZ_FORMAT); // 10 Hz MyTim->attachInterrupt(Update_IT_callback); MyTim->resume(); I'll give i...
by BennehBoy
Thu Jan 23, 2020 11:43 am
Forum: General discussion
Topic: [SOLVED]Timer changes since 1.6
Replies: 14
Views: 10618

Re: Timer changes since 1.6

I forgot about the wiki :D
by BennehBoy
Thu Jan 23, 2020 10:22 am
Forum: General discussion
Topic: [SOLVED]Timer changes since 1.6
Replies: 14
Views: 10618

[SOLVED]Timer changes since 1.6

Hi Fred, I'm revisiting an older project that users a click encoder. I used to set up the timer like this: #define TIMER_ENC TIM4 static stimer_t TimHandle; /* Set TIMx instance. */ TimHandle.timer = TIMER_ENC; /* Timer set to 1ms */ TimerHandleInit(&TimHandle, 1000 - 1, ((uint32_t)(getTimerClkF...
by BennehBoy
Tue Jan 21, 2020 7:47 am
Forum: General discussion
Topic: SPI remapping
Replies: 6
Views: 8712

Re: SPI remapping

Some peripherals can be switched to 'alternate' pins, it's still the same peripheral though hence why it shows as SPI1 for both pin sets. How to do it depends on which core you've used, Rogers/Steve's maple based cores, or the official STM HAL based core.
by BennehBoy
Wed Jan 15, 2020 11:56 pm
Forum: Libraries & Hardware
Topic: USB Composite library
Replies: 19
Views: 36886

Re: USB Composite library

+2
by BennehBoy
Mon Jan 13, 2020 3:15 pm
Forum: General discussion
Topic: USB Keyboard controller
Replies: 5
Views: 7781

Re: USB Keyboard controller

Yeah a lot can be done to 'add value' - for me in keyboard macro definitions would be great.

Teensy seems to have done a lot already in this realm -> https://www.pjrc.com/teensy/td_keyboard.html

I may have a look to see if any of that can be hacked over...
by BennehBoy
Mon Jan 13, 2020 3:00 pm
Forum: IDE's
Topic: arduino pro ide alpha
Replies: 12
Views: 21148

Re: arduino pro ide alpha

You would think they would simply align to someone else's IDE so that they can concentrate on the core rather than reinventing the wheel. Still anything is an improvement over stock.
by BennehBoy
Sat Jan 11, 2020 4:08 pm
Forum: STM32F4 based boards
Topic: STM32F407VE SDfat error compiling
Replies: 18
Views: 16774

Re: STM32F407VE SDfat error compiling

Fine to know that STM32 core is compatible with SDFat fro Greiman. Anyway, this topic is linked to use it with @stevestrong core for F4, if I'm not wrong? It's compatible only if using SPI, SDIO is broken - or was the last time I checked. It can be fixed with a small merge in of a file from the STM...
by BennehBoy
Thu Jan 09, 2020 11:24 pm
Forum: Libraries & Hardware
Topic: USB Composite library
Replies: 19
Views: 36886

Re: USB Composite library

Sounds great.

Go to advanced search