Skip to content

B96B_F446VE + NUCLEO_F446RE CAN API #1477

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 23 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
b5910de
Add asyn serial ability
adustm Nov 17, 2015
760934d
Merge remote-tracking branch 'refs/remotes/mbedmicro/master' into dev…
adustm Nov 20, 2015
8645c17
commit latest modifications in serial async (TX Interrupt ok )
adustm Nov 20, 2015
52845b8
[NUCLEO_F446RE] async serial. allow rx part
adustm Nov 23, 2015
7d6c91c
[B96B_F446VE] Add new target
adustm Nov 23, 2015
073d91a
Merge remote-tracking branch 'refs/remotes/origin/dev_B96B_F446VE' in…
adustm Nov 23, 2015
058a95c
[B96B_F446VE] add DMA to serial_asyn (not finalized)
adustm Nov 24, 2015
d58d597
Merge remote-tracking branch 'refs/remotes/mbedmicro/master' into dev…
adustm Nov 26, 2015
969b93d
[B96B_F446VE] Add DMA part to SERIAL_ASYNCH (OK with USBTX USBRX pins)
adustm Nov 27, 2015
95fb27a
[B96B_F446VE] add new platform to builders scripts
adustm Nov 27, 2015
1842001
Merge remote-tracking branch 'refs/remotes/origin/dev_B96B_F446VE' in…
adustm Nov 27, 2015
473d350
Merge remote-tracking branch 'refs/remotes/mbedmicro/master' into dev…
adustm Nov 27, 2015
3c420c0
[B96B_F446VE] Add other UARTs async support
adustm Nov 30, 2015
3763d53
[B96B_F446VE] Add HWControlFlow option
adustm Dec 3, 2015
809bbbe
Merge branch 'master' into dev_F4_asynch_serial
adustm Dec 7, 2015
9655279
[B96B_F449VE] better init for hw control flow
adustm Dec 10, 2015
9a3163e
[B96B_F446VE] Revert mbed api modification to be compliant with mbed
adustm Dec 10, 2015
1f88744
[B96B_F446VE] change led names to be aligned with board's naming
adustm Dec 10, 2015
741e7c7
[B96B_F446VE] Add define for F446VE in rtos library files to allow rt…
adustm Dec 10, 2015
e4fb268
[B96B_F446VE] add exporter files
adustm Dec 11, 2015
fe4388a
[NUCLEO_F446RE] Add CAN interface
adustm Dec 17, 2015
40f0cc1
Merge branch 'dev_F4_asynch_serial' of https://github.com/adustm/mbed…
adustm Dec 17, 2015
886981c
[B96B_F446VE] Add CAN interface
adustm Dec 17, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion libraries/mbed/hal/can_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ typedef enum {
IRQ_PASSIVE,
IRQ_ARB,
IRQ_BUS,
IRQ_READY
IRQ_READY,
IRQ_RX1
} CanIrqType;


Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
; Scatter-Loading Description File
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright (c) 2015, STMicroelectronics
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are met:
;
; 1. Redistributions of source code must retain the above copyright notice,
; this list of conditions and the following disclaimer.
; 2. Redistributions in binary form must reproduce the above copyright notice,
; this list of conditions and the following disclaimer in the documentation
; and/or other materials provided with the distribution.
; 3. Neither the name of STMicroelectronics nor the names of its contributors
; may be used to endorse or promote products derived from this software
; without specific prior written permission.
;
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; 512 KB FLASH (0x80000) + 128 KB SRAM (0x20000)
LR_IROM1 0x08000000 0x80000 { ; load region size_region

ER_IROM1 0x08000000 0x80000 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
}

; Total: 113 vectors = 452 bytes (0x1C4) to be reserved in RAM
RW_IRAM1 (0x20000000+0x1C4) (0x20000-0x1C4) { ; RW data
.ANY (+RW +ZI)
}

}

Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/* mbed Microcontroller Library - stackheap
* Setup a fixed single stack/heap memory model,
* between the top of the RW/ZI region and the stackpointer
*******************************************************************************
* Copyright (c) 2015, STMicroelectronics
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of STMicroelectronics nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************
*/

#ifdef __cplusplus
extern "C" {
#endif

#include <rt_misc.h>
#include <stdint.h>

extern char Image$$RW_IRAM1$$ZI$$Limit[];

extern __value_in_regs struct __initial_stackheap __user_setup_stackheap(uint32_t R0, uint32_t R1, uint32_t R2, uint32_t R3) {
uint32_t zi_limit = (uint32_t)Image$$RW_IRAM1$$ZI$$Limit;
uint32_t sp_limit = __current_sp();

zi_limit = (zi_limit + 7) & ~0x7; // ensure zi_limit is 8-byte aligned

struct __initial_stackheap r;
r.heap_base = zi_limit;
r.heap_limit = sp_limit;
return r;
}

#ifdef __cplusplus
}
#endif
Loading