Going for __ARM__ to distinguish host and firmware builds is not
sufficient here, since we might be building on a ARM host, so there is
now a OCTSIMFWBUILD define.
Change-Id: Ib07a58b6102b1709f295d08a764c6f118a2d0b9e
The debug uart is shared with slot 7, so in order to use sim slot 7 the
pin config and the uart config needs to be changed. Going back to using
the debug uart works by defining ENABLE_DBG_UART7
Change-Id: I8f3c7c60306941159c35307a5c1e38c2a2bd2fe1
It's really bad practsie to generate different output files from one
target, which breaks dependency generation and the like. Let's have
separate Makefile targets for each output file we generate, all
depending on the .elf file.
Change-Id: Ie83722a9b61cfcd9865950ab4c088f59a15427ba
I really hate the Atmel copy+paste style makefile where every include path
is specified three times, rather than using variables.
Change-Id: I39dd880ced341aaea54e30e8b670dbaea445aa8b
We do so using our own 'raw' log target to avoid the 4k-on-stack
buffer of libosmocore _output() function.
Change-Id: I7a10b5b2b50bcee0154a1fa3fc43756aec836226
Use structures to define the USB descriptors of the sysmoOCTSIM device.
While at it, turn it from a pure CDC-ACM to a CDC-ACM + CCID interface,
so we can expose a virtual UART at the same time as the chip card reader
device.
Change-Id: I0423d733476f37c16bdb6abc651b7ad5ca7ac63e
This tries to implement a USB CCID (Chip Card Interface Device) Class
core driver in "ASF4 style". Code is currently mainly untested.
Change-Id: Ia4d8a6cdc3de26fdc83dcbf89db894b513915a9a
talloc is a hirearchical memory allocator which Osmocom uses a lot
for its userspace programs on Linux. Experiments show that it's
actually very much possible to use it inside of microcontroller firmware
projects, particularly the small subset which we generally use.
Change-Id: Ibd31b40d5b75b3fc1783a6b02b0e97da430e0f60
the standard async library expected the caller to wait until the
transmission was complete (by counting using the transmit callback
or checking using usart_async_get_status) before freeing/reusing
the memory holding the data to be transmitted.
this is not practical when using stdio on top of the peripheral
since printf returns directly and reuses the memory.
the new USART async library has a ring buffer for the data to be
transmitted (similar to the data being received).
WARNING: write is blocking when the TX buffer is full.
this prevents loosing data.
Change-Id: Iafd5295b90ef9f428f640314c24f6c31ee82c9d6
as the code will use alternative libraries, the examples will not
be able to compile anymore.
plus they are not required for the firmware and the example code
can be downloaded from Atmel start.
Change-Id: If53df47089de9eb8498734c19d6a0420c1e79031
This is form Atmel Start and provides functionality for hardware-based
DMA copies from memory to memory.
Change-Id: Ib07755b2c5974af70817f5460fb0f358c631452a
This is a very simplistic command line interface parser which
various parts of the code can use to register textual commands
on the debug UART.
Change-Id: I2d289228fb97ecde5602e9756f3d7c51fa65a3b7
This adds an I2C bit-banging layer, defines the four busses on the
sysmoOCTSIM and adds some high-level functions to control the NCN8025
for each SIM slot.
Change-Id: Ic5287cf80d2be2070c504e9d40f7c6fc0d37d8b9
without this relocation the DFU bootloader can jump to the
application but following executed code would not be the one from
the application.
Change-Id: Ieeefcf80918fd10e48debab6ff08505f6588811c
the SAM E54 Xplained Pro development board uses a SAM E54P20N
micro-controller.
the sysmocom sysmoOCTSIM prototype uses a SAM E54N19A
micro-controller.
the system LED and UART debug GPIO are different, else the code
is the same.
the Atmel START definitions have been updated accordingly.
Change-Id: Ifd15f6759c51b42a8d11b09f9f495d7e7a5b6afc
also remove unused armcc.
only the GCC cross-compiler is used.
the ARMCC Makefile would not be maintained.
Change-Id: Ib6ec525885943afba9b24df88a5bee8009df95b5
currently only the SERCOM peripheral driver is added an configured,
but it is not being used.
UART debug will be done through the EDBG COM port, on PB24/PB25 of
SAM E54 Xplained Pro board
Change-Id: Id7af37ce1dd2d0a356e019c96bf6438ce459411b
this is the Atmel START USB CDC Echo example project for the
SAM E54 Xplained Pro board using an Atmel ATSAME54P20A
microcontroller.
Atmel START information:
- Version: 1.4.1810 (Dec 18, 2018, 5:52 AM GMT+1)
- Server: 1.4.93
- Content version: 1.0.1340
This will serve as basis for the sysmoOCTSIM project
A jenkins contrib script has also been added to the
osmo-ccid-firmware project to build the sysmoOCTSIM firmware
Change-Id: I356de75e7b730d63fb819248e71d36f785932199