IRlib on STM32?

Can someone help me port this library?
User avatar
mrburnette
Posts: 1774
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: IRlib on STM32?

Postby mrburnette » Wed Apr 13, 2016 1:39 pm

stevech wrote:<...>
So, I certainly missed the point of the posting.


Time changes everything ... it has been over 7+ years since the Maple was introduced:
The Maple, an Arduino-style STM32 microcontroller board, was LeafLab's first product, released in 2009. It was one of the first ARM Cortex-M3 microcontroller boards that was accessible to hobbyists and engineers outside of the embedded industry.


Wow, 7 years is a long, long time and everything changes. My point and Roger's is that Leaflabs did not utilize ST's proprietary standard peripheral library because they could not at the time.

Today, I'm sure they would have taken a less-painful road-to-market. But maybe not.

Have you guys noticed that this forum is not being recommended by Leaflabs? Cool.

You can still read the docs. The forums will remain active until August 2016, but at that point they will be converted to a static archive. Consider checking out the resources and community at www.stm32duino.com instead.


Ray

User avatar
ahull
Posts: 1422
Joined: Mon Apr 27, 2015 11:04 pm
Location: Sunny Scotland
Contact:

Re: IRlib on STM32?

Postby ahull » Wed Apr 13, 2016 4:14 pm

mrburnette wrote:Have you guys noticed that this forum is not being recommended by Leaflabs? Cool.

You can still read the docs. The forums will remain active until August 2016, but at that point they will be converted to a static archive. Consider checking out the resources and community at http://www.stm32duino.com instead.


Ray


"is not"? Surely.. is being recommended....
- Andy Hull -

User avatar
mrburnette
Posts: 1774
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: IRlib on STM32?

Postby mrburnette » Wed Apr 13, 2016 9:39 pm

ahull wrote:
mrburnette wrote:Have you guys noticed that this forum is not being recommended by Leaflabs? Cool.

You can still read the docs. The forums will remain active until August 2016, but at that point they will be converted to a static archive. Consider checking out the resources and community at http://www.stm32duino.com instead.


Ray


"is not"? Surely.. is being recommended....



Affirmative.
now ---> not when spellchecker hiccuped. Technology is a two-edged sword :D

Ray

User avatar
ahull
Posts: 1422
Joined: Mon Apr 27, 2015 11:04 pm
Location: Sunny Scotland
Contact:

Re: IRlib on STM32?

Postby ahull » Wed Apr 13, 2016 9:54 pm

Years ago I *almost* sent a thank you card to someone who had popped in with a homemade cake with the line "thank you for the cake, it was very nasty"... a brain fart rather than spell checker mistake. It should have read.. .. cake was very nice.... Fortunately the mistake was spotted before the insult was posted. :oops:
- Andy Hull -

zmemw16
Posts: 1067
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: IRlib on STM32?

Postby zmemw16 » Wed Apr 13, 2016 10:36 pm

tasty ???

User avatar
RogerClark
Posts: 5470
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: IRlib on STM32?

Postby RogerClark » Wed Apr 13, 2016 10:46 pm

Paistry ?

User avatar
ahull
Posts: 1422
Joined: Mon Apr 27, 2015 11:04 pm
Location: Sunny Scotland
Contact:

Re: IRlib on STM32?

Postby ahull » Wed Apr 13, 2016 11:01 pm

zmemw16 wrote:tasty ???


Probably the old grey cells decided nice, tasty... nice'n tasty => nasty ... one of the all to frequent occasions when my brain was not quite firing on all cylinders. :roll:
- Andy Hull -

User avatar
mrburnette
Posts: 1774
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: IRlib on STM32?

Postby mrburnette » Wed Apr 13, 2016 11:47 pm

ahull wrote:Years ago I *almost* sent a thank you card to someone who had popped in with a homemade cake with the line "thank you for the cake, it was very nasty"... a brain fart rather than spell checker mistake. It should have read.. .. cake was very nice.... Fortunately the mistake was spotted before the insult was posted. :oops:



This could also be known as a "Freudian Slip" ... just depending on the true situation with the cake; maybe those fingers had it correctly typed before the brain did a recall :shock:


Ray
Last edited by mrburnette on Thu Apr 14, 2016 1:10 pm, edited 1 time in total.

User avatar
RogerClark
Posts: 5470
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: IRlib on STM32?

Postby RogerClark » Thu Apr 14, 2016 12:37 am


User avatar
rexnanet
Posts: 189
Joined: Wed Mar 16, 2016 10:34 am

Re: IRlib on STM32?

Postby rexnanet » Tue Apr 26, 2016 6:04 pm

Has anyone tried a go on "IRremote" library?

It has a lot of things already implemented. I think the "only work" needed to be done is to replace the interrupt an configuration calls that are made directly to AVR HW for ones to STM32 HW...

I've downloaded and I'm getting these errors:

Code: Select all

G:\User\Documents\Arduino\libraries\IRremote\irRecv.cpp: In member function 'void IRrecv::enableIRIn()':
G:\User\Documents\Arduino\libraries\IRremote\irRecv.cpp:115:6: error: 'cli' was not declared in this scope
  cli();
      ^
In file included from G:\User\Documents\Arduino\libraries\IRremote\IRremote.h:24:0,
                 from G:\User\Documents\Arduino\libraries\IRremote\irRecv.cpp:1:
G:\User\Documents\Arduino\libraries\IRremote\IRremoteInt.h:246:3: error: 'TCCR2A' was not declared in this scope
   TCCR2A = _BV(WGM21); \
   ^
G:\User\Documents\Arduino\libraries\IRremote\irRecv.cpp:120:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
  TIMER_CONFIG_NORMAL();
  ^
In file included from G:\User\Downloads\arduino-1.6.5-r5\hardware\Arduino_STM32\STM32F1\cores\maple/Arduino.h:30:0,
                 from G:\User\Documents\Arduino\libraries\IRremote\IRremoteInt.h:24,
                 from G:\User\Documents\Arduino\libraries\IRremote\IRremote.h:24,
                 from G:\User\Documents\Arduino\libraries\IRremote\irRecv.cpp:1:
G:\User\Documents\Arduino\libraries\IRremote\IRremoteInt.h:246:16: error: 'WGM21' was not declared in this scope
   TCCR2A = _BV(WGM21); \
                ^
G:\User\Downloads\arduino-1.6.5-r5\hardware\Arduino_STM32\STM32F1\cores\maple/wirish.h:103:25: note: in definition of macro '_BV'
 #define _BV(bit) (1 << (bit))
                         ^
G:\User\Documents\Arduino\libraries\IRremote\irRecv.cpp:120:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
  TIMER_CONFIG_NORMAL();
  ^
In file included from G:\User\Documents\Arduino\libraries\IRremote\IRremote.h:24:0,
                 from G:\User\Documents\Arduino\libraries\IRremote\irRecv.cpp:1:
G:\User\Documents\Arduino\libraries\IRremote\IRremoteInt.h:247:3: error: 'TCCR2B' was not declared in this scope
   TCCR2B = _BV(CS21); \
   ^
G:\User\Documents\Arduino\libraries\IRremote\irRecv.cpp:120:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
  TIMER_CONFIG_NORMAL();
  ^
In file included from G:\User\Downloads\arduino-1.6.5-r5\hardware\Arduino_STM32\STM32F1\cores\maple/Arduino.h:30:0,
                 from G:\User\Documents\Arduino\libraries\IRremote\IRremoteInt.h:24,
                 from G:\User\Documents\Arduino\libraries\IRremote\IRremote.h:24,
                 from G:\User\Documents\Arduino\libraries\IRremote\irRecv.cpp:1:
G:\User\Documents\Arduino\libraries\IRremote\IRremoteInt.h:247:16: error: 'CS21' was not declared in this scope
   TCCR2B = _BV(CS21); \
                ^
G:\User\Downloads\arduino-1.6.5-r5\hardware\Arduino_STM32\STM32F1\cores\maple/wirish.h:103:25: note: in definition of macro '_BV'
 #define _BV(bit) (1 << (bit))
                         ^
G:\User\Documents\Arduino\libraries\IRremote\irRecv.cpp:120:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
  TIMER_CONFIG_NORMAL();
  ^
In file included from G:\User\Documents\Arduino\libraries\IRremote\IRremote.h:24:0,
                 from G:\User\Documents\Arduino\libraries\IRremote\irRecv.cpp:1:
G:\User\Documents\Arduino\libraries\IRremote\IRremoteInt.h:248:3: error: 'OCR2A' was not declared in this scope
   OCR2A  = TIMER_COUNT_TOP / 8; \
   ^
G:\User\Documents\Arduino\libraries\IRremote\irRecv.cpp:120:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
  TIMER_CONFIG_NORMAL();
  ^
G:\User\Documents\Arduino\libraries\IRremote\IRremoteInt.h:249:3: error: 'TCNT2' was not declared in this scope
   TCNT2  = 0; \
   ^
G:\User\Documents\Arduino\libraries\IRremote\irRecv.cpp:120:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
  TIMER_CONFIG_NORMAL();
  ^
G:\User\Documents\Arduino\libraries\IRremote\IRremoteInt.h:222:30: error: 'TIMSK2' was not declared in this scope
 #define TIMER_ENABLE_INTR   (TIMSK2 = _BV(OCIE2A))
                              ^
G:\User\Documents\Arduino\libraries\IRremote\irRecv.cpp:123:2: note: in expansion of macro 'TIMER_ENABLE_INTR'
  TIMER_ENABLE_INTR;
  ^
In file included from G:\User\Downloads\arduino-1.6.5-r5\hardware\Arduino_STM32\STM32F1\cores\maple/Arduino.h:30:0,
                 from G:\User\Documents\Arduino\libraries\IRremote\IRremoteInt.h:24,
                 from G:\User\Documents\Arduino\libraries\IRremote\IRremote.h:24,
                 from G:\User\Documents\Arduino\libraries\IRremote\irRecv.cpp:1:
G:\User\Documents\Arduino\libraries\IRremote\IRremoteInt.h:222:43: error: 'OCIE2A' was not declared in this scope
 #define TIMER_ENABLE_INTR   (TIMSK2 = _BV(OCIE2A))
                                           ^
G:\User\Downloads\arduino-1.6.5-r5\hardware\Arduino_STM32\STM32F1\cores\maple/wirish.h:103:25: note: in definition of macro '_BV'
 #define _BV(bit) (1 << (bit))
                         ^
G:\User\Documents\Arduino\libraries\IRremote\irRecv.cpp:123:2: note: in expansion of macro 'TIMER_ENABLE_INTR'
  TIMER_ENABLE_INTR;
  ^
G:\User\Documents\Arduino\libraries\IRremote\irRecv.cpp:127:6: error: 'sei' was not declared in this scope
  sei();  // enable interrupts
      ^



Return to “Libary request”

Who is online

Users browsing this forum: No registered users and 1 guest