mirror of
https://github.com/kelvinlawson/atomthreads.git
synced 2026-01-11 18:33:16 +01:00
Use stdint.h by default
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
; Copyright (c) 2016 Dr. Philipp Klaus Krause
|
||||
|
||||
; Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
; The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
.area CODE
|
||||
|
||||
; uint8_t get_cc(void);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2010, Kelvin Lawson. All rights reserved.
|
||||
* Copyright (c) 2016, Dr. Philipp Klaus Krause.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@@ -45,20 +46,23 @@
|
||||
/* Required number of system ticks per second (normally 100 for 10ms tick) */
|
||||
#define SYSTEM_TICKS_PER_SEC 100
|
||||
|
||||
/* Size of each stack entry / stack alignment size (8 bits on STM8) */
|
||||
#define STACK_ALIGN_SIZE sizeof(u8)
|
||||
|
||||
/**
|
||||
* Architecture-specific types.
|
||||
*/
|
||||
#if defined(__CSMC__) || defined (__RCSTM8__) /* Cosmic and Raisonance do not have the C99 stdint.h header*/
|
||||
#define int8_t s8
|
||||
#define int16_t s16
|
||||
#define int32_t s32
|
||||
#define uint8_t u8
|
||||
#define uint16_t u16
|
||||
#define uint32_t u32
|
||||
#else
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
#define POINTER void *
|
||||
|
||||
/* Size of each stack entry / stack alignment size (8 bits on STM8) */
|
||||
#define STACK_ALIGN_SIZE sizeof(uint8_t)
|
||||
|
||||
/**
|
||||
* Critical region protection: this should disable interrupts
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
* stack for application code local variables etc.
|
||||
*
|
||||
* With all OS tests implemented to date on the STM8, the Main thread
|
||||
* stack has not exceeded 256 bytes. To allow all tests to run we set
|
||||
* stack has not exceeded 384 bytes. To allow all tests to run we set
|
||||
* a minimum main thread stack size of 204 bytes. This may increase in
|
||||
* future as the codebase changes but for the time being is enough to
|
||||
* cope with all of the automated tests.
|
||||
|
||||
Reference in New Issue
Block a user