See https://github.com/ArcEye/machinekit/tree/hal_spi_base I have used the simplest strategy. As only the _PERI_BASE seems to be different, I have changed the #define to an unsigned int variable. This is then set to either 0x20000000 or 0x3F000000 depending upon version detected. Just added code for number_of_cores() and included cpu_info.c to get the others. It builds but needs testing If you get problems, add some DBG prints to see what revision and number of cores is being returned regards On 29/09/18 17:56, mngr wrote:
-- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout. |
- Re: [Machinekit] using hal_spi module mngr
- Re: [Machinekit] using hal_spi module mngr
- Re: [Machinekit] using hal_spi module schoone...@gmail.com
- Re: [Machinekit] using hal_spi module mngr
- Re: [Machinekit] using hal_spi module schoone...@gmail.com
- Re: [Machinekit] using hal_spi module thematsche
- Re: [Machinekit] using hal_spi module mngr
- Re: [Machinekit] using hal_spi module schoone...@gmail.com
- Re: [Machinekit] using hal_spi module mngr
- Re: [Machinekit] using hal_spi module schoone...@gmail.com
- Re: [Machinekit] using hal_spi module schoone...@gmail.com
- Re: [Machinekit] using hal_spi module mngr
- Re: [Machinekit] using hal_spi module schoone...@gmail.com
- Re: [Machinekit] using hal_spi module mngr
- Re: [Machinekit] using hal_spi module schoone...@gmail.com
- Re: [Machinekit] using hal_spi module mngr
- Re: [Machinekit] using hal_spi module mngr
- Re: [Machinekit] using hal_spi module schoone...@gmail.com
- Re: [Machinekit] using hal_spi module mngr